Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Workspace addModelItemsToWindowMenu:
Last updated at 6:56 pm UTC on 8 April 2019
The method #addModelItemsToWindowMenu: aMenu is responsible for adding the last entries of the blue drop-down menu in a Workspace SystemWindow.

It may be adapted to show more entries like an additional text box for 'isNoteCard'.

addModelItemsToWindowMenu: aMenu 
	
	aMenu addLine.
	aMenu
		add: 'save contents to file...'
		target: self
		action: #saveContentsInFile.
	aMenu
		add: 'inspect variables'
		target: self
		action: #inspectBindings.
	aMenu
		add: 'reset variables'
		target: self
		action: #initializeBindings.
	aMenu
		addUpdating: #mustDeclareVariableWording
		target: self
		action: #toggleVariableDeclarationMode.
	aMenu
		addUpdating: #acceptDroppedMorphsWording
		target: self
		action: #toggleDroppingMorphForReference.

	self addToggleStylingMenuItemTo: aMenu.

	aMenu
		addUpdating: #noteCardWording
		target: self
		action: #toggleIsNotiCard.