Bert Freudenberg uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-bf.212.mcz==================== Summary ====================
Name: Tools-bf.212
Author: bf
Time: 18 March 2010, 2:11:28.697 pm
UUID: 6809d92d-3bba-4540-97c2-ba5ed5ce6169
Ancestors: Tools-cmm.211
- remove now-unused wildcard code
=============== Diff against Tools-cmm.211 ===============
Item was changed:
----- Method: Browser>>findMethod (in category 'class functions') -----
findMethod
"Pop up a list of the current class's methods, and select the one chosen by the user"
| aClass selectors reply cat messageCatIndex messageIndex |
self classListIndex = 0 ifTrue: [^ self].
self okToChange ifFalse: [^ self].
aClass := self selectedClassOrMetaClass.
selectors := aClass selectors asSortedArray.
selectors isEmpty ifTrue: [self inform: aClass name, ' has no methods.'. ^ self].
reply := UIManager default
chooseFrom: selectors
values: selectors
lines: #(1).
reply == nil ifTrue: [^ self].
- reply = 'Enter Wildcard'
- ifTrue: [
- reply := UIManager default request: 'Enter partial method name:'.
- (reply isNil or: [reply isEmpty])
- ifTrue: [^self].
- (reply includes: $*)
- ifFalse: [reply := '*', reply, '*'].
- selectors := selectors select: [:each | reply match: each].
- selectors isEmpty ifTrue: [self inform: aClass name, ' has no matching methods.'. ^ self].
- reply := selectors size = 1
- ifTrue: [selectors first]
- ifFalse: [
- UIManager default
- chooseFrom: selectors
- values: selectors].
- reply == nil ifTrue: [^ self]].
cat := aClass whichCategoryIncludesSelector: reply.
messageCatIndex := self messageCategoryList indexOf: cat.
self messageCategoryListIndex: messageCatIndex.
messageIndex := (self messageList indexOf: reply).
self messageListIndex: messageIndex!