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

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

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

Name: Tools-dtl.176
Author: dtl
Time: 10 February 2010, 12:01:44.088 am
UUID: 22af5327-70de-40b8-ae45-7bde50958dea
Ancestors: Tools-dtl.175

Remove MVC/Morphic dependencies from Browser>>couldBrowseAnyClass. The change removes two #isKindOf: and adds one #respondsTo: arguably yeilding a slight net reduction in total cruftiness.

=============== Diff against Tools-dtl.175 ===============

Item was changed:
  ----- Method: Browser>>couldBrowseAnyClass (in category 'accessing') -----
  couldBrowseAnyClass
  "Answer whether the receiver is equipped to browse any class. This is in support of the system-brower feature that allows the browser to be redirected at the selected class name.  This implementation is clearly ugly, but the feature it enables is handsome enough.  3/1/96 sw"
 
  self dependents
+ detect: [:d | (d respondsTo: #getListSelector)
+ and: [d getListSelector == #systemCategoryList]]
- detect: [:d |
- ((d isKindOf: PluggableListView) or: [d isKindOf: PluggableListMorph]) and:
- [d getListSelector == #systemCategoryList]]
  ifNone: [^ false].
+ ^ true!
- ^ true
- !