On Aug 7, 2010, at 12:22 PM, Carla F. Griggio wrote:

> Hello!
> 
> I want to add an item to the menu that appears when you right click on a 
> category in the System Browser window.
> 
> I think that menu is built here:
> 
> Morph>>buildMetaMenu: evt
> 
> But I don't want to touch that method, not SystemWindow>>buildMetaMenu: evt 
> either, because that option would have to be visible only if my project has 
> been loaded.

exactly nobody should change the core methods just declare intention.
> 
> Is there a way to do that?

sure.
you should use a pragma <menu> 

here is for example how this is done for ScriptLoader

menuCommandOn: aBuilder 
        <worldMenu> 
        
        (aBuilder item: #'Integrator Menu')
                order: 1.5;
                precondition: [self currentlyIntegratingChanges];
                parent: #System;  
                action: [ScriptLoader releaseMenu]



> 
> Thanks!
> Carla
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to