The Trunk: Tools-mt.679.mcz

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

The Trunk: Tools-mt.679.mcz

commits-2
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.679.mcz

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

Name: Tools-mt.679
Author: mt
Time: 16 March 2016, 2:36:07.723033 pm
UUID: f184dac2-4ba4-4030-a394-4b8031592101
Ancestors: Tools-mt.678

Fixes styling bug when using the subclassing template.

=============== Diff against Tools-mt.678 ===============

Item was changed:
  ----- Method: Browser>>aboutToStyle: (in category 'code pane') -----
  aboutToStyle: aStyler
  "This is a notification that aStyler is about to re-style its text.
  Set the classOrMetaClass in aStyler, so that identifiers
  will be resolved correctly.
  Answer true to allow styling to proceed, or false to veto the styling"
  | type |
 
  self isModeStyleable ifFalse: [^false].
  type := self editSelection.
  (#(newMessage editMessage editClass newClass) includes: type) ifFalse:[^false].
+ aStyler classOrMetaClass: ((type = #editClass or: [type = #newClass]) ifFalse:[self selectedClassOrMetaClass]).
- aStyler classOrMetaClass: (type = #editClass ifFalse:[self selectedClassOrMetaClass]).
  ^true!