Yes!
I looked for other examples with the pragma, but they were for the World menu (thanks anyway!).
I meant the menu that Guille captured.

2010/8/7 Guillermo Polito <guillermopolito@gmail.com>
I think Car meant the context menu when you right-clic a category in the System Browser.� I don't know how, but maybe my screenshot help someone to help you :).


On Sat, Aug 7, 2010 at 8:11 AM, St�phane Ducasse <stephane.ducasse@inria.fr> wrote:



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
> 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


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project