The Inbox: ToolBuilder-Morphic-ct.228.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: ToolBuilder-Morphic-ct.228.mcz

commits-2
A new version of ToolBuilder-Morphic was added to project The Inbox:
http://source.squeak.org/inbox/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]!