[Pkg] The Trunk: Tools-mt.566.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 29 12:47:39 UTC 2015

Marcel Taeumel uploaded a new version of Tools to project The Trunk:

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

Name: Tools-mt.566
Author: mt
Time: 29 March 2015, 2:47:21.94 pm
UUID: ff526900-5073-ea40-8f56-f5ee42b8cde9
Ancestors: Tools-mt.565

Established a dependents-replationship between list item wrappers and list item morphs to support partial model updates.

Added support for the #contents model update in list item wrappers. That is, tree models may now update their children and notify about this. The whole tree view/morph does not have to be refreshed but only parts of it.

=============== Diff against Tools-mt.565 ===============

Item was changed:
  ----- Method: IndentingListItemMorph>>initWithContents:prior:forList:indentLevel: (in category 'initialization') -----
  initWithContents: anObject prior: priorMorph forList: hostList indentLevel: newLevel
  	container := hostList.
  	complexContents := anObject.
+ 	anObject addDependent: self.
  	self initWithContents: self getLabel font: Preferences standardListFont emphasis: nil.
  	indentLevel := 0.
  	isExpanded := false.
   	nextSibling := firstChild := nil.
  	priorMorph ifNotNil: [
  		priorMorph nextSibling: self.
  	indentLevel := newLevel.
  	icon := self getIcon.
  	self extent: self minWidth @ self minHeight!

Item was added:
+ ----- Method: IndentingListItemMorph>>update: (in category 'updating') -----
+ update: aspect
+ 	"See ListItemWrapper and subclasses for possible change aspects."
+ 	aspect = #contents ifTrue: [
+ 		self isExpanded ifTrue: [
+ 			self toggleExpandedState].
+ 			self canExpand ifTrue: [self toggleExpandedState]].
+ 	super update: aspect.!

More information about the Packages mailing list