[Pkg] SystemEditor: SystemEditor-mtf.120.mcz
squeak-dev-noreply at lists.squeakfoundation.org
squeak-dev-noreply at lists.squeakfoundation.org
Wed Oct 1 06:12:50 UTC 2008
Matthew Fulmer uploaded a new version of SystemEditor to project SystemEditor:
http://www.squeaksource.com/SystemEditor/SystemEditor-mtf.120.mcz
==================== Summary ====================
Name: SystemEditor-mtf.120
Author: mtf
Time: 25 September 2008, 6:03:49 pm
UUID: 1d442c36-bc08-4747-8ef8-40bf1b3548d9
Ancestors: SystemEditor-mtf.119
fix an infinite loop when doing ClassEditor on: nil
=============== Diff against SystemEditor-mtf.119 ===============
Item was changed:
----- Method: AbstractEditor class>>on:for:ifNotHandled: (in category 'as yet unclassified') -----
on: subject for: collectionEditor ifNotHandled: aBlock
"Try to find the most specialized subclass willing to edit, for extensibility"
| editor |
+ "nil subject is always permitted; it means new object"
+ subject ifNil: [^ self new on: subject for: collectionEditor].
self subclassesDo: [:class |
editor := class on: subject for: collectionEditor ifNotHandled: [nil].
editor ifNotNil: [^ editor]].
+ (self canEdit: subject for: collectionEditor)
- (subject isNil "nil subject is always permitted; it means new object"
- or: [self canEdit: subject for: collectionEditor])
ifTrue: [^ self new on: subject for: collectionEditor].
^ aBlock value!
More information about the Packages
mailing list