Thanks! Stef On Oct 8, 2008, at 6:52 PM, Gary Chambers wrote:
You'll need to write a class-side initialize method in one of the classes that gets loaded...
initialize "Initialize the application."
(TheWorldMenu respondsTo: #registerOpenCommand:) ifTrue: [ TheWorldMenu registerOpenCommand: { 'Report Builder' . { self . #openDefault }. 'Report bulding tool' }]
And, an unload is usually wise too...
unload "Remove the world menu open menu entry."
(TheWorldMenu respondsTo: #unregisterOpenCommand:) ifTrue: [TheWorldMenu unregisterOpenCommand: 'Report Builder']
Regards, Gary.
----- Original Message ----- From: "Stéphane Ducasse" <stephane.ducasse@inria.fr
To: "Pharo Development" <Pharo-project@lists.gforge.inria.fr> Sent: Wednesday, October 08, 2008 5:46 PM Subject: [Pharo-project] how to register a tool in the open menu?
Hi guys
does one of you know how when I load a package I can get an entry in the open... menu?
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project