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

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

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

Name: Tools-dtl.177
Author: dtl
Time: 10 February 2010, 1:06:42.358 pm
UUID: 0f0d6719-4304-4014-b410-d0cf8b212ee5
Ancestors: Tools-dtl.176

Fix SelectorBrowser>>classListIndex: to use #changed: #update: to notify MVC views that control should be terminated prior to opening a new browser. Original implemention polled dependents with #isKIndOf: and had explicit dependency on MVC PluggableListView.

=============== Diff against Tools-dtl.176 ===============

Item was changed:
  ----- Method: SelectorBrowser>>classListIndex: (in category 'as yet unclassified') -----
  classListIndex: anInteger
 
  classListIndex := anInteger.
  classListIndex > 0 ifTrue:
+ [self changed: #startNewBrowser. "MVC view will terminate control to prepare for new browser"
- [self dependents do:
- [:dep | ((dep isKindOf: PluggableListView) and:
- [dep setSelectionSelectorIs: #classListIndex:])
- ifTrue: [dep controller controlTerminate]].
  Browser fullOnClass: self selectedClass selector: self selectedMessageName.
  "classListIndex := 0"]
  !