The Trunk: Tools-dtl.178.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-dtl.178.mcz

commits-2
David T. Lewis uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-dtl.178.mcz

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

Name: Tools-dtl.178
Author: dtl
Time: 10 February 2010, 5:54:46.196 pm
UUID: d62957cc-fe6c-4370-890c-b00d6ae9be5a
Ancestors: Tools-dtl.177

Change Workspace>>saveContentsInFile to use #changed: #update: rather than traverse dependents. Removes MVC/Morphic dependency.

=============== Diff against Tools-dtl.177 ===============

Item was changed:
  ----- Method: Workspace>>saveContentsInFile (in category 'as yet unclassified') -----
  saveContentsInFile
+ "Pass along this message to the controller or morph.  (Possibly this Workspace menu item could be deleted, since it's now in the text menu.)"
- "A bit of a hack to pass along this message to the controller or morph.  (Possibly this Workspace menu item could be deleted, since it's now in the text menu.)"
- | textMorph textView |
 
+ self changed: #saveContents
- textMorph := self dependents detect: [:dep | dep isKindOf: PluggableTextMorph] ifNone: [nil].
- textMorph notNil ifTrue: [^ textMorph saveContentsInFile].
-
- textView := self dependents detect: [:dep | dep isKindOf: PluggableTextView] ifNone: [nil].
- textView notNil ifTrue: [^ textView controller saveContentsInFile].
  !