Jerome,
"Jerome Chan" <
[hidden email]> wrote in message
news:
[hidden email]...
> Any hints on where I should look in order to add things to the main
> palette (where the system transcript, view composer, workspace icons
> are), tool bars and menu bars ? I'm tired of executing
>
> TestRunner show.
>
> everytime I want to run the SUnit tester.
It's all done in class methods belonging to your main Presenter. Have a
look at the various #initialize, #uninitialize, #toolsFolderIcon and
#displayOn class methods that exist in subclasses of Presenter.
AXControlBrowser, Calculator and ProtocolBrowserShell give examples of
adding icons to the three available locations.
Adding an icon in this way automatically adds the tool to the "Tools" menu
bar option that appears for most (all?) of the development tools.
You are on your own with the toolbar though, you will have to add that
yourself. If you modify one of the existing toolbar resources,
Toolbar.Smalltalk tools is probably your best bet, then any development tool
that uses this toolbar section will automatically display your new tool as
well.
#registerTool / #unregisterTool are only needed, IIRC, when you want to have
an entry in the "Dolphin Options" tree for your application.
Ian