Adding items to Tools flap

Steve Gilbert steven.l.gilbert at lmco.com
Fri Nov 9 00:07:14 UTC 2001


I'm attempting to add the Refactoring Browser to my Tools flap.
The necessary expression that I need is: 
   RefactoringBrowser openBrowser

Using prototype(Morphic) thinking I believe that I should be able to:

1. Select an existing morph in the Tools.
2. Duplicate that morph.
3. Modify the correct stuff to invoke my desired expression.
4. Drop into Tools area.
5. Use globally like all other items inside the flap.

I'm willing to forego a pretty icon as long as I can get an Refactor
label on the bottom of it.

Progress:
1> Selected the existing Browser Icon.
2> Duplicated it.
3> Brought up the halo for the new Browser Morph(duplicate one) and
selected the debug bubble, and chose Inspect Morph.
4> Now I have an inspector on an Iconic Button.
5> Changed target attribute to RefactoringBrowser.
6> Changed arguments to #(#openBrowser).
7> Leaving icon on the desktop if I mousedown a new Refactoring Browser
comes up. (Partial Success!)
   
However, I get a MNU on setProperty:toValue: invoked in
   RefactoringBrowser class(Object)>>launchPartVia:

I still haven't dealt with getting the new Browser Iconic Button tucked
into the Tools flap, and I'd like to change the text as well.
Any clues?   Is there a better way to do this?

Steve Gilbert




More information about the Squeak-dev mailing list