I have proposed a patch ready for integration to easily change the world menu http://code.google.com/p/pharo/issues/detail?id=2930 Hilaire Le 09/09/2010 14:36, Alain Plantec a écrit :
Yes, what is missing is a way to reset the menuBuilder in the WorldState so that it creates a new one. Is it what you are looking for ? argh, no, you need to re-create the menuBuilder with the new pragma keyword. and yes it is missing :(
maybe something like:
setMenuPragmaKeywordTo: aSymbol menuBuilder := PragmaMenuBuilder pragmaKeyword: aSymbol model: self
Alain
PasteUpMorph>>resetWorldMenu menuBuilder ifNotNil: [menuBuilder reset]
to be used as follow: ---------- World resetWorldMenu ----------
Alain
Marcus
-- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Dr. Geo, to discover geometry on Linux, Windows, MAC and XO http://community.ofset.org/index.php/DrGeo