Andreas Raab uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-ar.62.mcz==================== Summary ====================
Name: ToolBuilder-Morphic-ar.62
Author: ar
Time: 5 May 2010, 10:38:09.775 pm
UUID: 43f11813-5001-ec49-b4bf-3cd98d1f0d97
Ancestors: ToolBuilder-Morphic-ar.61, ToolBuilder-Morphic-fbs.60
Merging ToolBuilder-Morphic-fbs.60:
Use PluggableListSpec's new #color.... if it's set to something non-nil.
=============== Diff against ToolBuilder-Morphic-ar.61 ===============
Item was changed:
----- Method: MorphicToolBuilder>>buildPluggableList: (in category 'pluggable widgets') -----
buildPluggableList: aSpec
| widget listClass getIndex setIndex |
aSpec getSelected ifNil:[
listClass := self listClass.
getIndex := aSpec getIndex.
setIndex := aSpec setIndex.
] ifNotNil:[
listClass := self listByItemClass.
getIndex := aSpec getSelected.
setIndex := aSpec setSelected.
].
widget := listClass on: aSpec model
list: aSpec list
selected: getIndex
changeSelected: setIndex
menu: aSpec menu
keystroke: aSpec keyPress.
self register: widget id: aSpec name.
widget getListElementSelector: aSpec listItem.
widget getListSizeSelector: aSpec listSize.
widget doubleClickSelector: aSpec doubleClick.
widget dragItemSelector: aSpec dragItem.
widget dropItemSelector: aSpec dropItem.
widget wantsDropSelector: aSpec dropAccept.
widget autoDeselect: aSpec autoDeselect.
widget keystrokePreviewSelector: aSpec keystrokePreview.
+ aSpec color isNil ifFalse: [widget color: aSpec color].
self buildHelpFor: widget spec: aSpec.
self setFrame: aSpec frame in: widget.
parent ifNotNil:[self add: widget to: parent].
panes ifNotNil:[
aSpec list ifNotNil:[panes add: aSpec list].
].
^widget!