[squeak-dev] The Trunk: ToolBuilder-Morphic-ct.228.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Aug 4 09:30:40 UTC 2019


Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-ct.228.mcz

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

Name: ToolBuilder-Morphic-ct.228
Author: ct
Time: 7 July 2019, 7:57:32.634178 pm
UUID: fa6c1281-afb6-d34d-aeb4-ca2428d2c2d8
Ancestors: ToolBuilder-Morphic-pre.227

Add optional parameter for the #aboutToStyle: call

You can now, optionally, implement #aboutToStyle:forMorph: instead of #aboutToStyle:.

=============== Diff against ToolBuilder-Morphic-pre.227 ===============

Item was changed:
  ----- Method: PluggableTextMorphPlus>>okToStyle (in category 'testing') -----
  okToStyle
  
  	^ styler
  		ifNil:[false]
+ 		ifNotNil: [:s | (model class canUnderstand: #aboutToStyle:forMorph:)
+ 			ifTrue: [model aboutToStyle: s forMorph: self]
+ 			ifFalse: [model aboutToStyle: s]]!
- 		ifNotNil: [:s | model aboutToStyle: s]!



More information about the Squeak-dev mailing list