Ok, thanks)2014-07-10 16:21 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
2014-07-10 15:45 GMT+02:00 Mark Rizun <mrizun@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.