Login  Register

How pragma works to create menu?

Posted by Mark Rizun on Jul 10, 2014; 1:45pm
URL: https://forum.world.st/How-pragma-works-to-create-menu-tp4767409.html

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