[squeak-dev] The Trunk: Tools-dtl.176.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Feb 10 05:02:17 UTC 2010

David T. Lewis uploaded a new version of Tools to project The Trunk:

==================== 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') -----
  	"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
- !

More information about the Squeak-dev mailing list