[squeak-dev] The Trunk: Morphic-mt.1296.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 23 09:36:34 UTC 2016


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1296.mcz

==================== Summary ====================

Name: Morphic-mt.1296
Author: mt
Time: 23 August 2016, 11:35:56.13446 am
UUID: 79fdc139-7292-bf44-80ca-4a9651d8dfaa
Ancestors: Morphic-mt.1295

One less use of SortedCollection.

=============== Diff against Morphic-mt.1295 ===============

Item was changed:
  ----- Method: TheWorldMainDockingBar>>listWindowsOn: (in category 'submenu - windows') -----
  listWindowsOn: menu
  
  	| windows |
+ 	windows := self allVisibleWindows sorted: [:winA :winB |
- 	windows := SortedCollection sortBlock: [:winA :winB |
  		((winA model isNil or: [winB model isNil]) or: [winA model name = winB model name])
  			ifTrue: [winA label < winB label]
  			ifFalse: [winA model name < winB model name]].
- 	windows addAll: self allVisibleWindows.
  	windows ifEmpty: [ 
  		menu addItem: [ :item | 
  			item
  				contents: 'No Windows' translated;
  				isEnabled: false ] ].
  	windows do: [ :each |
  		menu addItem: [ :item |
  			item 
  				contents: (self windowMenuItemLabelFor: each);
  				icon: (each model ifNotNil: [self colorIcon: each model windowColorToUse]);
  				target: each;
  				selector: #comeToFront;
  				subMenuUpdater: self
  				selector: #windowMenuFor:on:
  				arguments: { each };
  				action: [ each beKeyWindow; expand ] ] ].
  	menu
  		addLine;
  		add: 'Close all windows' target: self selector: #closeAllWindowsUnsafe;
  		addItem: [:item | item
  			contents: 'Close all windows without changes';
  			target: self;
  			icon: MenuIcons smallBroomIcon;
  			selector: #closeAllWindows];
  		add: 'Close all windows but workspaces' target: self selector: #closeAllWindowsButWorkspaces.!



More information about the Squeak-dev mailing list