[Pkg] The Trunk: ToolBuilder-Kernel-nice.111.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 10 15:58:04 UTC 2017


Nicolas Cellier uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-nice.111.mcz

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

Name: ToolBuilder-Kernel-nice.111
Author: nice
Time: 10 June 2017, 5:57:59.10664 pm
UUID: 2b6dafb5-3394-4149-9a1b-45d363a30c00
Ancestors: ToolBuilder-Kernel-pre.110

Massively replace ifNotNilDo: by ifNotNil:
We don't need two different selectors to do a single thing.

=============== Diff against ToolBuilder-Kernel-pre.110 ===============

Item was changed:
  ----- Method: UIManager class>>getDefault (in category 'class initialization') -----
  getDefault
  	"Ensure that a more specific manager can always be made by subclassing
  	a tool builder and implementing a more specific way of reacting to
  	#isActiveManager. For example, a BobsUIManager can subclass
  	MorphicUIManager and (if enabled, say Preferences useBobsUI) will
  	be considered before the parent (generic MorphicUIManager)."
  
  	^ (self allSubclasses
  		detect: [:any | any isActiveManager
  				and: [any subclasses
  						noneSatisfy: [:sub | sub isActiveManager]]]
  		ifNone: [])
+ 		ifNotNil: [:mgrClass | mgrClass new]!
- 		ifNotNilDo: [:mgrClass | mgrClass new]!



More information about the Packages mailing list