[squeak-dev] The Trunk: ToolBuilder-Kernel-dtl.34.mcz

commits at source.squeak.org commits at source.squeak.org
Sun May 2 22:19:43 UTC 2010


David T. Lewis uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-dtl.34.mcz

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

Name: ToolBuilder-Kernel-dtl.34
Author: dtl
Time: 2 May 2010, 6:15:49.448 pm
UUID: d9bb885a-17d0-45ae-b93e-04cdf4e05a9f
Ancestors: ToolBuilder-Kernel-MAD.33

Associate an instance of UIManager with each project, such that UIManager current refers to an appropriate instance for that type of project. Remove incomplete implementation of caching the current UIManager instance in class UIManager.

Update class comment for UIManager.

=============== Diff against ToolBuilder-Kernel-MAD.33 ===============

Item was changed:
  ----- Method: UIManager class>>default (in category 'class initialization') -----
  default
+ 	^ Project current uiManager!
- 	| mgrClass |
- 	^Default ifNil:[
- 		"Note: The way the following is phrased ensures that you can always make 'more specific' managers merely 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)."
- 		mgrClass := self allSubclasses 
- 			detect:[:any| any isActiveManager and:[
- 				any subclasses noneSatisfy:[:sub| sub isActiveManager]]] ifNone:[nil].
- 		mgrClass ifNotNil:[mgrClass new]
- 	].!

Item was changed:
  Object subclass: #UIManager
  	instanceVariableNames: ''
+ 	classVariableNames: ''
- 	classVariableNames: 'Default'
  	poolDictionaries: ''
  	category: 'ToolBuilder-Kernel'!
  
+ !UIManager commentStamp: 'dtl 5/2/2010 16:06' prior: 0!
+ UIManager is a dispatcher for various user interface requests, such as menu and dialog interactions. An instance of UIManager is associated with each Project to implement the appropriate functions for Morphic, MVC or other user interfaces.!
- !UIManager commentStamp: 'ar 12/27/2004 08:39' prior: 0!
- UIManager is a dispatcher for various UI requests.!

Item was added:
+ ----- 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: [])
+ 		ifNotNilDo: [:mgrClass | mgrClass new]!

Item was removed:
- ----- Method: UIManager class>>default: (in category 'class initialization') -----
- default: aUIManager
- 	Default := aUIManager!




More information about the Squeak-dev mailing list