Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
buildWorldMenu
Last updated at 8:25 pm UTC on 13 November 2017
Method #buildWorldMenu of the class PasteUpMorph creates a MenuMorph. The method is called by an instance of the class TheWorldMenu.

 buildWorldMenu
	"Build the menu that is put up when the screen-desktop is clicked on"
	| menu |
	menu := MenuMorph new defaultTarget: self.
	menu commandKeyHandler: self.
	self colorForDebugging: menu.
	menu addStayUpItem.

	self makeConvenient: menu.

	Smalltalk at: #ServiceGUI ifPresent:[:sgui|
		sgui worldMenu: menu.
		sgui onlyServices ifTrue: [^ menu].
	].

	self addProjectEntries: menu.

	myWorld addUndoItemsTo: menu.

	self addRestoreDisplay: menu.
	self addUtilities: menu.
	self addObjectsAndTools: menu.
	self addPrintAndDebug: menu.

	self addSaveAndQuit: menu.

	^ menu

Version 5.0
WorldMenu_Squeak5.png


See also

Subclassing TheWorldMenu