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'
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
-- View this message in context: http://forum.world.st/Proposal-for-a-category-browser-method-on-Browser-clas... Sent from the Squeak - Dev mailing list archive at Nabble.com.
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
-- View this message in context: http://forum.world.st/Proposal-for-a-category-browser-method-on-Browser-clas... Sent from the Squeak - Dev mailing list archive at Nabble.com.
please update. You can now browse message categories via
ToolSet >> #browseClass:category: ToolSet >> #browseMessageCategory:inClass:
It worked perfectly. thank you.
squeak-dev@lists.squeakfoundation.org