VM Maker: VMMakerUI-eem.15.mcz

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

VM Maker: VMMakerUI-eem.15.mcz

commits-2
 
Eliot Miranda uploaded a new version of VMMakerUI to project VM Maker:
http://source.squeak.org/VMMaker/VMMakerUI-eem.15.mcz

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

Name: VMMakerUI-eem.15
Author: eem
Time: 6 January 2020, 5:07:46.823147 pm
UUID: 9ef7629b-19ef-4086-bd2e-313ace30edc3
Ancestors: VMMakerUI-eem.14

Deal with some dangling refs to VMMaker objectsx in texts (heree, in editor histories).

=============== Diff against VMMakerUI-eem.14 ===============

Item was added:
+ ----- Method: TextEditor class>>nukeVMMakerPluggableTextAttributes (in category '*VMMakerUI-cleanup') -----
+ nukeVMMakerPluggableTextAttributes
+ self allSubInstancesDo:
+ [:editor|
+ (editor history detect:
+ [:command|
+ (self textReferencesVMMakerObjects: command contentsBefore)
+  or: [self textReferencesVMMakerObjects: command contentsAfter]]) notNil ifTrue:
+ [editor history: TextEditorCommandHistory new]]!

Item was added:
+ ----- Method: TextEditor class>>textReferencesVMMakerObjects: (in category '*VMMakerUI-cleanup') -----
+ textReferencesVMMakerObjects: text
+ ^text runs values anySatisfy:
+ [:emphasis|
+ emphasis isArray
+ and: [emphasis anySatisfy:
+ [:attribute|
+ attribute class == PluggableTextAttribute
+ and: [(attribute instVarNamed: 'evalBlock') receiver class category beginsWith: 'VMMaker']]]]!