[Pkg] The Trunk: ToolBuilder-Morphic-mt.156.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jan 23 10:41:17 UTC 2016

Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:

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

Name: ToolBuilder-Morphic-mt.156
Author: mt
Time: 23 January 2016, 11:41:12.364398 am
UUID: e35cd3fa-7c53-4b6d-a989-867783958b05
Ancestors: ToolBuilder-Morphic-kfr.155

Fixes a regression in pluggable trees. Now models can again govern the behavior of double-selections. FileList, for example, uses it to refresh the list of files.

=============== Diff against ToolBuilder-Morphic-kfr.155 ===============

Item was changed:
  ----- Method: PluggableTreeMorph>>setSelectedMorph: (in category 'selection') -----
  setSelectedMorph: aMorph
- 	"Avoid unnecessary model callbacks."
- 	self selectedMorph == aMorph ifTrue: [^ self].
  	selectedWrapper := aMorph complexContents.
  	"Let the model now about the selected object, not wrapper."
  	setSelectionSelector ifNotNil: [:symbol |
  			perform: symbol 
  			with: (selectedWrapper ifNotNil: [:w | w item])].
  	"The model may not have access to the parent object in terms of this tree structure."
  	setSelectedParentSelector ifNotNil: [:symbol |
  			perform: symbol
  			with: (selectedWrapper ifNotNil: [:w | w parent ifNotNil: [:pw | pw item]])].!

More information about the Packages mailing list