Maybe someone knows, how can I implement a context menu for MessageBrowser that would pop-up not on itemsList pane, but on sourceCode pane. Plus, I want it to use the standart one(I mean smalltalkEditorMenu), and to have additional features.
Mark 2014-07-10 16:28 GMT+02:00 Mark Rizun <mri...@gmail.com>: > Ok, thanks) > > > 2014-07-10 16:21 GMT+02:00 Nicolai Hess <nicolaih...@web.de>: > > 2014-07-10 15:45 GMT+02:00 Mark Rizun <mri...@gmail.com>: >> >> In the NautilusRefactoring class we have a method on a class side: >>> >>> sourceCodeRefactoringMenu: aBuilder >>> <nautilusGlobalSourceCodeMenu> >>> | target | >>> target := aBuilder model. >>> target selectedClass ifNotNil: [:selectedClass | selectedClass >>> sourceCodeRefactoring: aBuilder ] >>> >>> I'd like to understand how this line works: target := aBuilder model. I >>> mean, how aBuilder initializes a model? >>> Because, if you change the pragma from <nautilusGlobalSourceCodeMenu> to >>> another one, you will get another result using this particular line. >>> >>> Mark >>> >>> >> aBuilder is constructed from a PragmaMenuBuilder, this PragmaMenubuilder >> calls all methods with >> pragma <nautilusGlobalSourceCodeMenu>. >> >> The model is initializes in for example, in AbstractNautilusUI >> classMenuBuilder. >> >> >> Nicolai >> >> >> >> >> >>> >>> >>> -- >>> View this message in context: >>> http://forum.world.st/How-pragma-works-to-create-menu-tp4767409.html >>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >>> >>> >> >