[squeak-dev] Browser Menus
Damien Cassou
damien.cassou at gmail.com
Wed Mar 5 07:10:44 UTC 2008
Hi David,
On Wed, Mar 5, 2008 at 12:18 AM, David Zmick <dz0004455 at gmail.com> wrote:
> Where can I edit the menu that opens in the default squeak-dev image
> browser? I want to add an button to it, but I don't know where to do that.
> also, I am very new to morphic, so I might be having a hard time because I
> am not familiar with the common structure of things.
The default browsers in squeak-dev images are OmniBrowser based. In
OmniBrowser, we don't create menus, we install commands. To install a
new command:
- Create a class which inherits from OBCommand
- Implement #isActive, #execute and #label (look at the other subclasses)
- In OBCodeBrowser implement a method whose name starts with 'cmd'
which returns the class you've just created.
- Open a new browser
--
Damien Cassou
More information about the Squeak-dev
mailing list
|