Proposal for a 'category browser' method on Browser class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
tty
Reply | Threaded
Open this post in threaded view
|

Proposal for a 'category browser' method on Browser class

tty
Back story.

If you browse Category 'Kernel-Methods' class CompiledMethod and right click on 'accessing-pragmas & properties' then select 'browse' a Browser appears showing all the methods in that method category;

In some HelpTopic work I am doing, I want to do the same thing within the HelpTopic so the user can do a DoIt and see all the related methods I am discussing. 

I hunted around for how the system currently does it and Browser->buildMessageCategoryBrowserEditString: aString does the work.

I am able to duplicate that with

Browser openBrowserView:(
      (Browser new)
            selectSystemCategory: #'Kernel-Methods';
            selectClass: CompiledMethod;
            metaClassIndicated: false;
            selectMessageCategoryNamed: #'accessing-pragmas & properties';
            selectMessageNamed: nil;
            openMessageCatEditString:nil)
      label: 'Message Category Browser (', #'Kernel-Classes' asString, ')'.


While this works, embedding this in a HelpTopic is a bit clunky looking, so I propose adding a wrapper method such as:

Browser openCategoryBrowserFor: #'Kernel-Methods' class: CompiledMethod category:#'accessing-pragmas & properties' 






Reply | Threaded
Open this post in threaded view
|

Re: Proposal for a 'category browser' method on Browser class

marcel.taeumel
Hi, there. :)

So, besides

ToolSet class >> #browse:selector:
ToolSet class >> #browseClass:
ToolSet class >> #browseHierarchy:selector:

you want to have a

ToolSet class >> #browseClass:category:

?

Sounds like a good idea to me. Note that you should use the ToolSet to open browsers whenever possible.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal for a 'category browser' method on Browser class

marcel.taeumel
In reply to this post by tty
Hi,

please update. You can now browse message categories via

ToolSet >> #browseClass:category:
ToolSet >> #browseMessageCategory:inClass:

There are two ways to distinguish between System Browser and Message Category Browser.

Best,
Marcel
tty
Reply | Threaded
Open this post in threaded view
|

Re: Proposal for a 'category browser' method on Browser class

tty

please update. You can now browse message categories via

ToolSet >> #browseClass:category:
ToolSet >> #browseMessageCategory:inClass:


It worked perfectly. thank you.