36
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
45
|
3 |
All Rights Reserved
|
36
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
75
|
13 |
'From Smalltalk/X, Version:2.10.4 on 24-feb-1995 at 5:09:20 am'!
|
52
|
14 |
|
85
|
15 |
ApplicationModel subclass:#SystemBrowser
|
75
|
16 |
instanceVariableNames:'currentClass currentMethodCategory currentMethod currentSelector
|
|
17 |
showInstance actualClasslastMethodCategory aspect lockUpdates
|
|
18 |
autoSearch myLabel acceptClass'
|
52
|
19 |
classVariableNames:'CheckForInstancesWhenRemovingClasses'
|
|
20 |
poolDictionaries:''
|
|
21 |
category:'Interface-Browsers'
|
36
|
22 |
!
|
|
23 |
|
75
|
24 |
!SystemBrowser class methodsFor:'initialization'!
|
|
25 |
|
|
26 |
initialize
|
|
27 |
"Browser configuration;
|
|
28 |
(values can be changed from your private startup file)"
|
45
|
29 |
|
85
|
30 |
self classResources.
|
|
31 |
|
75
|
32 |
"
|
|
33 |
setting this to false, the removeClass function will remove
|
|
34 |
classes WITHOUT checking for instances. Otherwise,
|
|
35 |
it will check and let you confirm in case there are instances.
|
|
36 |
Checking for instances may be a bit time consuming, though.
|
|
37 |
The default is true - therefore, it will check
|
|
38 |
"
|
|
39 |
CheckForInstancesWhenRemovingClasses := true
|
|
40 |
|
|
41 |
"
|
|
42 |
CheckForInstancesWhenRemovingClasses := true
|
|
43 |
CheckForInstancesWhenRemovingClasses := false
|
|
44 |
|
85
|
45 |
SystemBrowser initialize
|
75
|
46 |
"
|
|
47 |
! !
|
36
|
48 |
|
|
49 |
!SystemBrowser class methodsFor:'documentation'!
|
|
50 |
|
|
51 |
copyright
|
|
52 |
"
|
|
53 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
45
|
54 |
All Rights Reserved
|
36
|
55 |
|
|
56 |
This software is furnished under a license and may be used
|
|
57 |
only in accordance with the terms of that license and with the
|
|
58 |
inclusion of the above copyright notice. This software may not
|
|
59 |
be provided or otherwise made available to, or used by, any
|
|
60 |
other person. No title to or ownership of the software is
|
|
61 |
hereby transferred.
|
|
62 |
"
|
|
63 |
!
|
|
64 |
|
|
65 |
version
|
|
66 |
"
|
132
|
67 |
$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.39 1995-09-07 12:53:45 claus Exp $
|
36
|
68 |
"
|
|
69 |
!
|
|
70 |
|
|
71 |
documentation
|
|
72 |
"
|
|
73 |
this class implements all kinds of class browsers.
|
52
|
74 |
Typically, it is started with 'SystemBrowser open', but there are many other
|
|
75 |
startup messages, to launch special browsers.
|
|
76 |
See the categories 'startup' and 'special search startup' in the classes
|
|
77 |
protocol.
|
|
78 |
|
|
79 |
Alse, see the extra document 'doc/misc/sbrowser.doc' or the HTML online doc
|
|
80 |
for how to use the browser.
|
36
|
81 |
|
93
|
82 |
written winter 89 by claus.
|
|
83 |
|
|
84 |
Notice: SystemBrowser is currently being rewritten to be an instance
|
|
85 |
of ApplicationModel - this transition is not yet complete and you see
|
106
|
86 |
here an intermediate version. The instance variables defined here are NOT
|
93
|
87 |
currently used - instead, everything is really done in the BrowserView
|
106
|
88 |
which (currently) keeps the real state of the browser.
|
93
|
89 |
This will certainly change ...
|
36
|
90 |
"
|
|
91 |
! !
|
|
92 |
|
75
|
93 |
!SystemBrowser class methodsFor:'instance creation'!
|
52
|
94 |
|
93
|
95 |
openOnDevice:aDisplay
|
75
|
96 |
"launch a standard browser on another display.
|
|
97 |
Does not work currently - still being developped."
|
|
98 |
|
85
|
99 |
^ self newWithLabel:(self classResources string:'System Browser')
|
75
|
100 |
setupBlock:[:browser | browser setupForAll]
|
93
|
101 |
onDevice:aDisplay
|
|
102 |
|
|
103 |
"|d|
|
36
|
104 |
|
93
|
105 |
d := XWorkstation new initializeFor:'porty:0'.
|
|
106 |
d startDispatch.
|
|
107 |
SystemBrowser openOnDevice:d
|
52
|
108 |
"
|
75
|
109 |
!
|
52
|
110 |
|
75
|
111 |
open
|
|
112 |
"launch a standard browser"
|
|
113 |
|
105
|
114 |
^ self openOnDevice:(Screen current)
|
75
|
115 |
|
93
|
116 |
"
|
|
117 |
SystemBrowser open
|
|
118 |
"
|
36
|
119 |
! !
|
|
120 |
|
|
121 |
!SystemBrowser class methodsFor:'startup'!
|
|
122 |
|
|
123 |
browseMethods:aList title:aString
|
52
|
124 |
"launch a browser for an explicit list of class/selectors.
|
|
125 |
Each entry in the list must consist of the classes name and the selector,
|
|
126 |
separated by spaces. For class methods, the string 'class' must be
|
|
127 |
appended to the classname."
|
36
|
128 |
|
|
129 |
(aList size == 0) ifTrue:[
|
45
|
130 |
self showNoneFound:aString.
|
|
131 |
^ nil
|
36
|
132 |
].
|
|
133 |
aList sort.
|
93
|
134 |
^ self
|
|
135 |
newWithLabel:aString
|
|
136 |
setupSelector:#setupForList:
|
|
137 |
arg:aList
|
36
|
138 |
|
|
139 |
"
|
93
|
140 |
SystemBrowser
|
|
141 |
browseMethods:#('Object printOn:' 'Collection add:')
|
|
142 |
title:'some methods'
|
36
|
143 |
"
|
|
144 |
"
|
93
|
145 |
SystemBrowser
|
|
146 |
browseMethods:#('Behavior new:' 'Setclass new:')
|
|
147 |
title:'some new: methods'
|
52
|
148 |
"
|
36
|
149 |
!
|
|
150 |
|
|
151 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title
|
|
152 |
"launch a browser for all instance- (if wantInst is true) and/or
|
|
153 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses,
|
|
154 |
where aBlock evaluates to true.
|
|
155 |
The block is called with 3 arguments, class, method and seelctor."
|
|
156 |
|
45
|
157 |
|list|
|
36
|
158 |
|
|
159 |
"
|
|
160 |
since this may take a long time, lower my priority ...
|
|
161 |
"
|
45
|
162 |
Processor activeProcess withLowerPriorityDo:[
|
|
163 |
|checkedClasses checkBlock|
|
|
164 |
|
|
165 |
checkedClasses := IdentitySet new.
|
|
166 |
list := OrderedCollection new.
|
|
167 |
|
|
168 |
checkBlock := [:cls |
|
|
169 |
|methodArray selectorArray|
|
|
170 |
|
|
171 |
(checkedClasses includes:cls) ifFalse:[
|
|
172 |
methodArray := cls methodArray.
|
|
173 |
selectorArray := cls selectorArray.
|
|
174 |
|
|
175 |
1 to:methodArray size do:[:index |
|
|
176 |
|method sel|
|
|
177 |
|
|
178 |
method := methodArray at:index.
|
|
179 |
sel := selectorArray at:index.
|
|
180 |
(aBlock value:cls value:method value:sel) ifTrue:[
|
|
181 |
list add:(cls name , ' ' , sel)
|
|
182 |
]
|
|
183 |
].
|
|
184 |
checkedClasses add:cls.
|
|
185 |
]
|
|
186 |
].
|
|
187 |
|
|
188 |
aCollectionOfClasses do:[:aClass |
|
52
|
189 |
"
|
|
190 |
output disabled - it slows down things too much (when searching for
|
|
191 |
implementors or senders)
|
|
192 |
"
|
108
|
193 |
wantInst ifTrue:[
|
|
194 |
"/ Transcript show:'searching '; show:aClass name; showCr:' ...'; endEntry.
|
|
195 |
checkBlock value:aClass
|
|
196 |
].
|
|
197 |
wantClass ifTrue:[
|
|
198 |
"/ Transcript show:'searching '; show:aClass class name; showCr:' ...'; endEntry.
|
|
199 |
checkBlock value:(aClass class)
|
|
200 |
].
|
45
|
201 |
Processor yield
|
|
202 |
]
|
36
|
203 |
].
|
|
204 |
|
|
205 |
^ self browseMethods:list title:title
|
|
206 |
!
|
|
207 |
|
52
|
208 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title
|
|
209 |
"launch a browser for all instance- and classmethods from
|
|
210 |
all classes in aCollectionOfClasses where aBlock evaluates to true.
|
|
211 |
The block is called with 3 arguments, class, method and seelctor."
|
|
212 |
|
|
213 |
^ self browseMethodsIn:aCollectionOfClasses inst:true class:true where:aBlock title:title
|
75
|
214 |
|
52
|
215 |
!
|
|
216 |
|
|
217 |
browseClassCategory:aClassCategory
|
|
218 |
"launch a browser for all classes under aCategory"
|
|
219 |
|
93
|
220 |
^ self
|
|
221 |
newWithLabel:aClassCategory
|
|
222 |
setupSelector:#setupForClassCategory:
|
|
223 |
arg:aClassCategory
|
52
|
224 |
|
|
225 |
"SystemBrowser browseClassCategory:'Kernel-Objects'"
|
|
226 |
!
|
|
227 |
|
|
228 |
browseFullClasses
|
|
229 |
"launch a browser showing all methods at once"
|
|
230 |
|
93
|
231 |
^ self
|
|
232 |
newWithLabel:'Full Class Browser'
|
|
233 |
setupBlock:[:newBrowser | newBrowser setupForFullClass]
|
52
|
234 |
|
|
235 |
"SystemBrowser browseFullClasses"
|
|
236 |
!
|
|
237 |
|
|
238 |
browseClass:aClass
|
|
239 |
"launch a browser for aClass"
|
|
240 |
|
93
|
241 |
^ self
|
|
242 |
newWithLabel:aClass name
|
|
243 |
setupSelector:#setupForClass:
|
|
244 |
arg:aClass
|
52
|
245 |
|
|
246 |
"SystemBrowser browseClass:Object"
|
|
247 |
!
|
|
248 |
|
|
249 |
browseClass:aClass selector:selector
|
|
250 |
"launch a browser for the method at selector in aClass"
|
|
251 |
|
|
252 |
^ self
|
|
253 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector)
|
93
|
254 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector]
|
52
|
255 |
|
|
256 |
"
|
|
257 |
SystemBrowser browseClass:Object selector:#printString
|
|
258 |
"
|
|
259 |
!
|
|
260 |
|
|
261 |
browseClassHierarchy:aClass
|
|
262 |
"launch a browser for aClass and all its superclasses.
|
|
263 |
this is different from the fullProtocol browser."
|
|
264 |
|
93
|
265 |
^ self
|
|
266 |
newWithLabel:(aClass name , '-' , 'hierarchy')
|
|
267 |
setupSelector:#setupForClassHierarchy:
|
|
268 |
arg:aClass
|
52
|
269 |
|
|
270 |
"
|
|
271 |
SystemBrowser browseClassHierarchy:Number
|
|
272 |
"
|
|
273 |
!
|
|
274 |
|
|
275 |
browseFullClassProtocol:aClass
|
|
276 |
"launch a browser for aClasses full protocol.
|
|
277 |
This is different from hierarchy browsing."
|
|
278 |
|
93
|
279 |
^ self
|
|
280 |
newWithLabel:(aClass name , '-' , 'full protocol')
|
|
281 |
setupSelector:#setupForFullClassProtocol:
|
|
282 |
arg:aClass
|
52
|
283 |
|
|
284 |
"
|
|
285 |
SystemBrowser browseFullClassProtocol:Number
|
|
286 |
"
|
|
287 |
!
|
|
288 |
|
|
289 |
browseClasses:aList title:title
|
|
290 |
"launch a browser for all classes in aList"
|
|
291 |
|
93
|
292 |
^ self
|
|
293 |
newWithLabel:title
|
|
294 |
setupSelector:#setupForClassList:
|
|
295 |
arg:aList
|
52
|
296 |
|
|
297 |
"
|
|
298 |
SystemBrowser browseClasses:(Array with:Object
|
|
299 |
with:Float)
|
|
300 |
title:'two classes'
|
|
301 |
"
|
|
302 |
!
|
|
303 |
|
|
304 |
browseClass:aClass methodCategory:aCategory
|
|
305 |
"launch a browser for all methods under aCategory in aClass"
|
|
306 |
|
|
307 |
^ self newWithLabel:(aClass name , ' ' , aCategory)
|
|
308 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory]
|
|
309 |
|
|
310 |
"SystemBrowser browseClass:String methodCategory:'copying'"
|
|
311 |
!
|
|
312 |
|
|
313 |
browseMethodCategory:aCategory
|
|
314 |
"launch a browser for all methods where category = aCategory"
|
|
315 |
|
|
316 |
|searchBlock|
|
|
317 |
|
|
318 |
aCategory includesMatchCharacters ifTrue:[
|
|
319 |
searchBlock := [:c :m :s | aCategory match:m category].
|
|
320 |
] ifFalse:[
|
|
321 |
searchBlock := [:c :m :s | m category = aCategory]
|
|
322 |
].
|
|
323 |
|
|
324 |
self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory)
|
|
325 |
|
|
326 |
"
|
|
327 |
SystemBrowser browseMethodCategory:'printing & storing'
|
|
328 |
SystemBrowser browseMethodCategory:'print*'
|
|
329 |
"
|
|
330 |
!
|
|
331 |
|
|
332 |
browseAllSelect:aBlock
|
|
333 |
"launch a browser for all methods where aBlock returns true.
|
|
334 |
The block is called with 3 arguments, class, method and seelctor."
|
|
335 |
|
|
336 |
^ self browseMethodsWhere:aBlock title:'selected messages'
|
|
337 |
|
|
338 |
"
|
|
339 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3]
|
|
340 |
"
|
|
341 |
!
|
|
342 |
|
|
343 |
browseMethodsWhere:aBlock title:title
|
|
344 |
"launch a browser for all methods where aBlock returns true.
|
|
345 |
The block is called with 3 arguments, class, method and seelctor."
|
|
346 |
|
|
347 |
^ self browseMethodsIn:(Smalltalk allClasses) where:aBlock title:title
|
|
348 |
!
|
|
349 |
|
|
350 |
browseMethodsOf:aClass where:aBlock title:title
|
|
351 |
"launch a browser for all instance- and classmethods in aClass
|
|
352 |
where aBlock evaluates to true.
|
|
353 |
The block is called with 3 arguments, class, method and seelctor."
|
|
354 |
|
|
355 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title
|
|
356 |
!
|
|
357 |
|
|
358 |
browseMethodsFrom:aClass where:aBlock title:title
|
|
359 |
"launch a browser for all instance- and classmethods in aClass
|
|
360 |
and all its subclasses where aBlock evaluates to true.
|
|
361 |
The block is called with 3 arguments, class, method and seelctor."
|
|
362 |
|
|
363 |
^ self browseMethodsIn:(aClass withAllSubclasses) where:aBlock title:title
|
|
364 |
!
|
|
365 |
|
36
|
366 |
browseInstMethodsOf:aClass where:aBlock title:title
|
|
367 |
"launch a browser for all instance methods in aClass
|
|
368 |
where aBlock evaluates to true"
|
|
369 |
|
|
370 |
^ self browseMethodsIn:(Array with:aClass) inst:true class:false where:aBlock title:title
|
|
371 |
!
|
|
372 |
|
|
373 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title
|
|
374 |
"launch a browser for all instance methods of all classes in
|
|
375 |
aCollectionOfClasses where aBlock evaluates to true"
|
|
376 |
|
|
377 |
^ self browseMethodsIn:aCollectionOfClasses inst:true class:false
|
45
|
378 |
where:aBlock title:title
|
52
|
379 |
!
|
|
380 |
|
|
381 |
browseInstMethodsFrom:aClass where:aBlock title:title
|
|
382 |
"launch a browser for all instance methods in aClass and all subclasses
|
|
383 |
where aBlock evaluates to true"
|
|
384 |
|
|
385 |
^ self browseMethodsIn:(aClass withAllSubclasses) inst:true class:false where:aBlock title:title
|
36
|
386 |
! !
|
|
387 |
|
90
|
388 |
!SystemBrowser class methodsFor:'startup with query'!
|
|
389 |
|
|
390 |
getClassThenPerform:aSelector
|
|
391 |
|enterBox|
|
|
392 |
|
|
393 |
enterBox := EnterBox title:(self classResources at:'Browse which class:') withCRs.
|
|
394 |
enterBox okText:(self classResources at:'browse').
|
118
|
395 |
enterBox entryCompletionBlock:[
|
|
396 |
|s what m|
|
|
397 |
|
|
398 |
s := enterBox contents asString withoutSpaces.
|
|
399 |
what := Smalltalk classnameCompletion:s.
|
|
400 |
enterBox contents:what first.
|
|
401 |
].
|
90
|
402 |
enterBox action:[:className |
|
|
403 |
|cls|
|
|
404 |
|
|
405 |
cls := Smalltalk classNamed:className.
|
|
406 |
cls isNil ifTrue:[
|
|
407 |
self warn:(self classResources at:'no such class').
|
|
408 |
] ifFalse:[
|
|
409 |
self perform:aSelector with:cls
|
|
410 |
]
|
|
411 |
].
|
|
412 |
enterBox showAtPointer
|
|
413 |
|
|
414 |
"
|
|
415 |
SystemBrowser getClassThenPerform:#browseClass:
|
|
416 |
"
|
|
417 |
!
|
|
418 |
|
|
419 |
askThenBrowseClass
|
|
420 |
self getClassThenPerform:#browseClass:
|
|
421 |
|
|
422 |
"
|
|
423 |
SystemBrowser askThenBrowseClass
|
|
424 |
"
|
|
425 |
!
|
|
426 |
|
|
427 |
askThenBrowseClassHierarchy
|
|
428 |
self getClassThenPerform:#browseClassHierarchy:
|
|
429 |
|
|
430 |
"
|
|
431 |
SystemBrowser askThenBrowseClassHierarchy
|
|
432 |
"
|
|
433 |
!
|
|
434 |
|
|
435 |
askThenBrowseFullClassProtocol
|
|
436 |
self getClassThenPerform:#browseFullClassProtocol:
|
|
437 |
|
|
438 |
"
|
|
439 |
SystemBrowser askThenBrowseFullClassProtocol
|
|
440 |
"
|
|
441 |
! !
|
|
442 |
|
36
|
443 |
!SystemBrowser class methodsFor:'special search startup'!
|
|
444 |
|
52
|
445 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses title:title
|
|
446 |
"launch a browser for all senders of aSelector in aCollectionOfClasses"
|
|
447 |
|
|
448 |
|sel browser searchBlock|
|
|
449 |
|
|
450 |
((aSelectorString ~= '*') and:[aSelectorString includesMatchCharacters]) ifTrue:[
|
|
451 |
"a matchString"
|
93
|
452 |
searchBlock := [:class :method :s |
|
|
453 |
|lits found|
|
52
|
454 |
|
93
|
455 |
lits := method literals.
|
52
|
456 |
found := false.
|
|
457 |
lits notNil ifTrue:[
|
|
458 |
lits do:[:aLiteral |
|
|
459 |
found ifFalse:[
|
|
460 |
(aLiteral isMemberOf:Symbol) ifTrue:[
|
|
461 |
found := (aSelectorString match:aLiteral)
|
|
462 |
]
|
|
463 |
]
|
|
464 |
]
|
|
465 |
].
|
|
466 |
found
|
|
467 |
].
|
|
468 |
] ifFalse:[
|
66
|
469 |
sel := aSelectorString asSymbolIfInterned.
|
|
470 |
sel isNil ifTrue:[
|
52
|
471 |
"
|
|
472 |
Transcript showCr:'none found.'.
|
|
473 |
"
|
|
474 |
self showNoneFound:title.
|
|
475 |
^ nil
|
|
476 |
].
|
93
|
477 |
searchBlock := [:class :method :s | method sends:sel].
|
52
|
478 |
].
|
93
|
479 |
browser := self browseMethodsIn:aCollectionOfClasses
|
|
480 |
where:searchBlock
|
|
481 |
title:title.
|
52
|
482 |
|
|
483 |
browser notNil ifTrue:[
|
|
484 |
|s|
|
|
485 |
|
|
486 |
"
|
|
487 |
kludge for now, if its a multipart selector,
|
|
488 |
no easy search is (as yet) possible
|
|
489 |
"
|
|
490 |
s := aSelectorString.
|
|
491 |
(s includes:$:) ifTrue:[
|
|
492 |
s := s copyTo:(s indexOf:$:)
|
|
493 |
].
|
|
494 |
browser autoSearch:s
|
|
495 |
].
|
|
496 |
^ browser
|
|
497 |
!
|
|
498 |
|
|
499 |
browseImplementorsOf:aSelectorString
|
|
500 |
"launch a browser for all implementors of aSelector"
|
|
501 |
|
|
502 |
^ self browseImplementorsOf:aSelectorString
|
|
503 |
in:(Smalltalk allClasses)
|
|
504 |
title:('implementors of: ' , aSelectorString)
|
|
505 |
|
|
506 |
"
|
|
507 |
SystemBrowser browseImplementorsOf:#+
|
|
508 |
"
|
|
509 |
!
|
|
510 |
|
36
|
511 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses title:title
|
|
512 |
"launch a browser for all implementors of aSelector in
|
|
513 |
the classes contained in aCollectionOfClasses and its metaclasses"
|
|
514 |
|
|
515 |
|list sel|
|
|
516 |
|
|
517 |
list := OrderedCollection new.
|
|
518 |
|
|
519 |
((aSelectorString ~= '*') and:[aSelectorString includesMatchCharacters]) ifTrue:[
|
45
|
520 |
"a matchString"
|
|
521 |
|
|
522 |
aCollectionOfClasses do:[:aClass |
|
|
523 |
aClass selectorArray do:[:aSelector |
|
|
524 |
(aSelectorString match:aSelector) ifTrue:[
|
|
525 |
list add:(aClass name , ' ' , aSelector)
|
|
526 |
]
|
|
527 |
].
|
132
|
528 |
aClass isMeta ifFalse:[
|
|
529 |
aClass class selectorArray do:[:aSelector |
|
|
530 |
(aSelectorString match:aSelector) ifTrue:[
|
|
531 |
list add:(aClass name , 'class ' , aSelector)
|
|
532 |
]
|
45
|
533 |
]
|
|
534 |
]
|
|
535 |
]
|
36
|
536 |
] ifFalse:[
|
45
|
537 |
"can do a faster search"
|
|
538 |
|
66
|
539 |
sel := aSelectorString asSymbolIfInterned.
|
|
540 |
sel isNil ifTrue:[
|
45
|
541 |
self showNoneFound:title.
|
|
542 |
^ nil
|
|
543 |
].
|
|
544 |
|
|
545 |
aCollectionOfClasses do:[:aClass |
|
|
546 |
(aClass implements:sel) ifTrue:[
|
|
547 |
list add:(aClass name , ' ' , aSelectorString)
|
|
548 |
].
|
132
|
549 |
aClass isMeta ifFalse:[
|
|
550 |
(aClass class implements:sel) ifTrue:[
|
|
551 |
list add:(aClass name , 'class ' , aSelectorString)
|
|
552 |
]
|
45
|
553 |
]
|
|
554 |
]
|
36
|
555 |
].
|
|
556 |
^ self browseMethods:list title:title
|
|
557 |
|
|
558 |
"
|
|
559 |
SystemBrowser browseImplementorsOf:#+
|
45
|
560 |
in:(Array with:Number
|
|
561 |
with:Float
|
|
562 |
with:SmallInteger)
|
|
563 |
title:'some implementors of +'
|
36
|
564 |
"
|
132
|
565 |
|
|
566 |
"Modified: 4.9.1995 / 17:33:39 / claus"
|
36
|
567 |
!
|
|
568 |
|
|
569 |
browseAllCallsOn:aSelectorString
|
|
570 |
"launch a browser for all senders of aSelector"
|
|
571 |
|
|
572 |
^ self browseAllCallsOn:aSelectorString
|
45
|
573 |
in:(Smalltalk allClasses)
|
|
574 |
title:('senders of ' , aSelectorString)
|
36
|
575 |
|
|
576 |
"
|
|
577 |
SystemBrowser browseAllCallsOn:#+
|
|
578 |
"
|
|
579 |
!
|
|
580 |
|
|
581 |
browseCallsOn:aSelectorString under:aClass
|
|
582 |
"launch a browser for all senders of aSelector in aClass and subclasses"
|
|
583 |
|
|
584 |
^ self browseAllCallsOn:aSelectorString
|
45
|
585 |
in:(aClass withAllSubclasses)
|
|
586 |
title:('senders of: ' ,
|
|
587 |
aSelectorString ,
|
|
588 |
' (in or below ' , aClass name , ')')
|
36
|
589 |
|
|
590 |
"
|
|
591 |
SystemBrowser browseAllCallsOn:#+ under:Number
|
|
592 |
"
|
|
593 |
!
|
|
594 |
|
52
|
595 |
browseImplementorsOf:aSelectorString under:aClass
|
|
596 |
"launch a browser for all implementors of aSelector in aClass
|
|
597 |
and its subclasses"
|
|
598 |
|
|
599 |
^ self browseImplementorsOf:aSelectorString
|
|
600 |
in:(aClass withAllSubclasses)
|
|
601 |
title:('implementors of: ' ,
|
|
602 |
aSelectorString ,
|
|
603 |
' (in or below ' , aClass name , ')')
|
|
604 |
|
|
605 |
"
|
|
606 |
SystemBrowser browseImplementorsOf:#+ under:Integer
|
|
607 |
"
|
|
608 |
!
|
|
609 |
|
36
|
610 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn
|
|
611 |
"launch a browser for all methods referencing aSymbol"
|
|
612 |
|
|
613 |
|browser searchBlock sym|
|
|
614 |
|
|
615 |
(aSymbol includesMatchCharacters) ifTrue:[
|
45
|
616 |
"a matchString"
|
93
|
617 |
searchBlock := [:c :m :s |
|
|
618 |
|found lits|
|
45
|
619 |
|
93
|
620 |
lits := m literals.
|
45
|
621 |
found := false.
|
|
622 |
lits notNil ifTrue:[
|
|
623 |
lits do:[:aLiteral |
|
|
624 |
found ifFalse:[
|
|
625 |
(aLiteral isMemberOf:Symbol) ifTrue:[
|
|
626 |
found := (aSymbol match:aLiteral)
|
|
627 |
]
|
|
628 |
]
|
|
629 |
]
|
|
630 |
].
|
|
631 |
found
|
|
632 |
].
|
36
|
633 |
] ifFalse:[
|
45
|
634 |
"
|
|
635 |
can do a faster search
|
|
636 |
"
|
66
|
637 |
sym := aSymbol asSymbolIfInterned.
|
|
638 |
sym isNil ifTrue:[
|
45
|
639 |
self showNoneFound:title.
|
|
640 |
^ nil
|
|
641 |
].
|
|
642 |
|
93
|
643 |
searchBlock := [:c :m :s |
|
|
644 |
|found lits|
|
45
|
645 |
|
93
|
646 |
lits := m literals.
|
45
|
647 |
found := false.
|
|
648 |
lits notNil ifTrue:[
|
|
649 |
lits do:[:aLiteral |
|
|
650 |
found ifFalse:[
|
|
651 |
(aLiteral isMemberOf:Symbol) ifTrue:[
|
|
652 |
found := (sym == aLiteral)
|
|
653 |
]
|
|
654 |
]
|
|
655 |
]
|
|
656 |
].
|
|
657 |
found
|
|
658 |
].
|
36
|
659 |
].
|
93
|
660 |
browser := self browseMethodsWhere:searchBlock title:title.
|
36
|
661 |
browser notNil ifTrue:[
|
52
|
662 |
browser autoSearch:aSymbol
|
36
|
663 |
].
|
|
664 |
^ browser
|
|
665 |
!
|
|
666 |
|
93
|
667 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly
|
|
668 |
"return a searchblock for variable references"
|
52
|
669 |
|
|
670 |
|searchBlock|
|
|
671 |
|
|
672 |
searchBlock := [:c :m :s |
|
93
|
673 |
|src result parser vars needMatch|
|
52
|
674 |
|
|
675 |
needMatch := varName includesMatchCharacters.
|
|
676 |
|
|
677 |
src := m source.
|
|
678 |
src isNil ifTrue:[
|
|
679 |
result := false
|
|
680 |
] ifFalse:[
|
|
681 |
needMatch ifFalse:[
|
|
682 |
"
|
|
683 |
before doing a slow parse, quickly scan the
|
|
684 |
methods source for the variables name ...
|
|
685 |
"
|
|
686 |
result := (src findString:varName) ~~ 0.
|
|
687 |
] ifTrue:[
|
|
688 |
result := true.
|
|
689 |
].
|
|
690 |
result ifTrue:[
|
|
691 |
result := false.
|
53
|
692 |
parser := Parser parseMethod:src in:c warnings:false.
|
52
|
693 |
parser notNil ifTrue:[
|
93
|
694 |
classVars ifFalse:[
|
|
695 |
modsOnly ifTrue:[
|
|
696 |
vars := parser modifiedInstVars
|
|
697 |
] ifFalse:[
|
|
698 |
vars := parser usedInstVars
|
|
699 |
].
|
|
700 |
] ifTrue:[
|
|
701 |
modsOnly ifTrue:[
|
|
702 |
vars := parser modifiedClassVars
|
|
703 |
] ifFalse:[
|
|
704 |
vars := parser usedClassVars
|
|
705 |
].
|
52
|
706 |
].
|
93
|
707 |
vars notNil ifTrue:[
|
52
|
708 |
needMatch ifTrue:[
|
93
|
709 |
vars do:[:cv |
|
|
710 |
(varName match:cv) ifTrue:[result := true]
|
52
|
711 |
]
|
|
712 |
] ifFalse:[
|
93
|
713 |
result := vars includes:varName
|
52
|
714 |
]
|
|
715 |
]
|
93
|
716 |
].
|
52
|
717 |
].
|
|
718 |
].
|
|
719 |
Processor yield.
|
|
720 |
result
|
|
721 |
].
|
|
722 |
^ searchBlock
|
|
723 |
!
|
|
724 |
|
36
|
725 |
browseForSymbol:aSymbol
|
|
726 |
"launch a browser for all methods referencing aSymbol"
|
|
727 |
|
|
728 |
^ self browseForSymbol:aSymbol title:('users of ' , aSymbol) warnIfNone:true
|
|
729 |
!
|
|
730 |
|
|
731 |
browseReferendsOf:aGlobalName warnIfNone:doWarn
|
|
732 |
"launch a browser for all methods referencing a global
|
|
733 |
named aGlobalName.
|
|
734 |
"
|
|
735 |
|
|
736 |
^ self browseForSymbol:aGlobalName title:('users of: ' , aGlobalName) warnIfNone:doWarn
|
75
|
737 |
|
36
|
738 |
!
|
|
739 |
|
|
740 |
browseReferendsOf:aGlobalName
|
|
741 |
"launch a browser for all methods referencing a global
|
|
742 |
named aGlobalName.
|
|
743 |
"
|
|
744 |
|
|
745 |
^ self browseReferendsOf:aGlobalName warnIfNone:true
|
|
746 |
|
|
747 |
"
|
|
748 |
Browser browseReferendsOf:#Transcript
|
|
749 |
"
|
75
|
750 |
|
36
|
751 |
!
|
|
752 |
|
52
|
753 |
browseUsesOf:aClass
|
|
754 |
|dict owners offsets
|
|
755 |
sz "{ Class: SmallInteger }"
|
|
756 |
n "{ Class: SmallInteger }"
|
|
757 |
removeSet newDict|
|
|
758 |
|
|
759 |
owners := ObjectMemory whoReferencesInstancesOf:aClass.
|
|
760 |
|
|
761 |
"
|
|
762 |
collect set of offsets in dict; key is class
|
|
763 |
"
|
|
764 |
dict := IdentityDictionary new.
|
|
765 |
owners do:[:someObject |
|
|
766 |
|cls create|
|
|
767 |
|
|
768 |
someObject isContext ifFalse:[
|
|
769 |
"
|
|
770 |
someObject refers to an instance of aClass;
|
|
771 |
find out, which instVar(s)
|
|
772 |
"
|
|
773 |
cls := someObject class.
|
|
774 |
cls ~~ Array ifTrue:[
|
|
775 |
n := cls instSize.
|
|
776 |
create := [|s| s := Set new. dict at:cls put:s. s].
|
|
777 |
|
|
778 |
1 to:n do:[:i |
|
|
779 |
|ref|
|
|
780 |
|
|
781 |
ref := someObject instVarAt:i.
|
|
782 |
(ref isMemberOf:aClass) ifTrue:[
|
|
783 |
offsets := dict at:cls ifAbsent:create.
|
|
784 |
offsets add:i.
|
|
785 |
]
|
|
786 |
].
|
|
787 |
cls isVariable ifTrue:[
|
|
788 |
cls isPointers ifTrue:[
|
|
789 |
| idx "{ Class: SmallInteger }" |
|
|
790 |
|
|
791 |
sz := someObject basicSize.
|
|
792 |
idx := 1.
|
|
793 |
[idx <= sz] whileTrue:[
|
|
794 |
|ref|
|
|
795 |
|
|
796 |
ref := someObject basicAt:idx.
|
|
797 |
(ref isMemberOf:aClass) ifTrue:[
|
|
798 |
offsets := dict at:cls ifAbsent:create.
|
|
799 |
offsets add:0.
|
|
800 |
idx := sz
|
|
801 |
].
|
|
802 |
idx := idx + 1
|
|
803 |
]
|
|
804 |
]
|
|
805 |
]
|
|
806 |
]
|
|
807 |
]
|
|
808 |
].
|
|
809 |
|
|
810 |
"
|
|
811 |
merge with superclass refs
|
|
812 |
"
|
|
813 |
dict keysAndValuesDo:[:cls :set |
|
|
814 |
cls allSuperclasses do:[:aSuperclass |
|
|
815 |
|superSet|
|
|
816 |
|
|
817 |
superSet := dict at:aSuperclass ifAbsent:[].
|
|
818 |
superSet notNil ifTrue:[
|
|
819 |
|removeSet|
|
|
820 |
|
|
821 |
superSet := dict at:aSuperclass.
|
|
822 |
removeSet := Set new.
|
|
823 |
set do:[:offset |
|
|
824 |
(superSet includes:offset) ifTrue:[
|
|
825 |
removeSet add:offset
|
|
826 |
]
|
|
827 |
].
|
|
828 |
set removeAll:removeSet
|
|
829 |
]
|
|
830 |
]
|
|
831 |
].
|
|
832 |
|
|
833 |
"
|
|
834 |
remove empty ones
|
|
835 |
"
|
|
836 |
removeSet := Set new.
|
|
837 |
dict keysAndValuesDo:[:cls :set |
|
|
838 |
set isEmpty ifTrue:[
|
|
839 |
removeSet add:cls
|
|
840 |
]
|
|
841 |
].
|
|
842 |
removeSet do:[:cls |
|
|
843 |
dict removeKey:cls
|
|
844 |
].
|
|
845 |
|
|
846 |
"
|
|
847 |
replace the indices by real names
|
|
848 |
"
|
|
849 |
newDict := IdentityDictionary new.
|
|
850 |
dict keysAndValuesDo:[:cls :set |
|
|
851 |
|newSet names|
|
|
852 |
|
|
853 |
names := cls allInstVarNames.
|
|
854 |
newSet := set collect:[:index |
|
|
855 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index].
|
|
856 |
].
|
|
857 |
newDict at:cls put:newSet
|
|
858 |
].
|
|
859 |
|
|
860 |
newDict inspect
|
|
861 |
|
75
|
862 |
|
52
|
863 |
!
|
|
864 |
|
36
|
865 |
browseForString:aString in:aCollectionOfClasses
|
45
|
866 |
"launch a browser for all methods in aCollectionOfClasses
|
53
|
867 |
containing a string in their source.
|
|
868 |
This may be slow, since source-code has to be scanned."
|
|
869 |
|
|
870 |
|browser searchBlock title s|
|
36
|
871 |
|
|
872 |
title := 'methods containing: ' , aString displayString.
|
|
873 |
|
|
874 |
(aString includesMatchCharacters) ifTrue:[
|
53
|
875 |
s := '*' , aString , '*'.
|
45
|
876 |
"a matchString"
|
93
|
877 |
searchBlock := [:c :m :sel | s match:m source]
|
36
|
878 |
] ifFalse:[
|
93
|
879 |
searchBlock := [:c :m :sel | (m source findString:aString) ~~ 0]
|
36
|
880 |
].
|
93
|
881 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title.
|
36
|
882 |
|
|
883 |
browser notNil ifTrue:[
|
52
|
884 |
browser autoSearch:aString
|
36
|
885 |
].
|
|
886 |
^ browser
|
|
887 |
|
53
|
888 |
"
|
|
889 |
SystemBrowser browseForString:'all' in:(Array with:Object)
|
|
890 |
SystemBrowser browseForString:'should' in:(Array with:Object)
|
|
891 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
|
|
892 |
"
|
75
|
893 |
|
36
|
894 |
!
|
|
895 |
|
|
896 |
browseForString:aString
|
53
|
897 |
"launch a browser for all methods containing a string in their source.
|
|
898 |
This may be slow, since source-code has to be scanned."
|
36
|
899 |
|
|
900 |
^ self browseForString:aString in:(Smalltalk allClasses)
|
52
|
901 |
!
|
|
902 |
|
36
|
903 |
aproposSearch:aString in:aCollectionOfClasses
|
|
904 |
"browse all methods, which have aString in their selector or
|
|
905 |
in the methods comment.
|
|
906 |
This is relatively slow, since all source must be processed."
|
|
907 |
|
53
|
908 |
|matchString list s searchBlock browser|
|
36
|
909 |
|
|
910 |
matchString := '*' , aString , '*'.
|
|
911 |
|
|
912 |
list := OrderedCollection new.
|
|
913 |
|
53
|
914 |
(aString includesMatchCharacters) ifTrue:[
|
|
915 |
s := '*' , aString , '*'.
|
|
916 |
"a matchString"
|
95
|
917 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0].
|
53
|
918 |
] ifFalse:[
|
|
919 |
searchBlock := [:source | (source findString:aString) ~~ 0]
|
|
920 |
].
|
|
921 |
|
|
922 |
browser := self browseMethodsIn:aCollectionOfClasses
|
45
|
923 |
where:[:class :method :sel |
|
53
|
924 |
|comment|
|
|
925 |
|
|
926 |
Processor yield.
|
|
927 |
(searchBlock value:sel) ifTrue:[
|
|
928 |
true
|
45
|
929 |
] ifFalse:[
|
53
|
930 |
comment := method comment.
|
|
931 |
comment notNil
|
|
932 |
and:[searchBlock value:method comment]
|
45
|
933 |
].
|
|
934 |
]
|
53
|
935 |
title:('apropos: ' , aString).
|
|
936 |
|
|
937 |
browser notNil ifTrue:[
|
|
938 |
browser autoSearch:aString
|
|
939 |
].
|
|
940 |
^ browser
|
|
941 |
|
|
942 |
"
|
|
943 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses)
|
|
944 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses)
|
|
945 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses)
|
|
946 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses)
|
|
947 |
"
|
75
|
948 |
|
53
|
949 |
!
|
|
950 |
|
|
951 |
aproposSearch:aString
|
|
952 |
"browse all methods, which have aString in their selector or
|
|
953 |
in the methods comment.
|
|
954 |
This is relatively slow, since all source must be processed."
|
|
955 |
|
|
956 |
^ self aproposSearch:aString in:(Smalltalk allClasses)
|
75
|
957 |
|
36
|
958 |
!
|
|
959 |
|
93
|
960 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title
|
|
961 |
"launch a browser for all methods in aClass where the instVar/classVar named
|
|
962 |
varName is referenced; if modsOnly is true, browse only methods where the
|
|
963 |
instvar is modified"
|
|
964 |
|
|
965 |
|filter browser pattern|
|
|
966 |
|
|
967 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
|
108
|
968 |
browser := self browseMethodsIn:aCollectionOfClasses
|
|
969 |
inst:true class:classVars where:filter title:title.
|
93
|
970 |
|
|
971 |
browser notNil ifTrue:[
|
|
972 |
modsOnly ifTrue:[
|
|
973 |
pattern := varName , ' :='
|
|
974 |
] ifFalse:[
|
|
975 |
pattern := varName
|
|
976 |
].
|
|
977 |
browser autoSearch:pattern
|
|
978 |
].
|
|
979 |
^ browser
|
|
980 |
!
|
|
981 |
|
|
982 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
|
36
|
983 |
"launch a browser for all methods in aClass where the instVar named
|
93
|
984 |
varName is referenced; if modsOnly is true, browse only methods where the
|
|
985 |
instvar is modified"
|
|
986 |
|
|
987 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title
|
|
988 |
!
|
|
989 |
|
|
990 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
|
|
991 |
"launch a browser for all methods in aCollectionOfClasses,
|
|
992 |
where the classVar named aString is referenced;
|
|
993 |
if modsOnly is true, browse only methods where the classvar is modified"
|
|
994 |
|
|
995 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title
|
|
996 |
!
|
|
997 |
|
|
998 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
|
|
999 |
"launch a browser for all methods in aClass where the instVar/classVar named
|
36
|
1000 |
aString is referenced; if modsOnly is true, browse only methods where the
|
|
1001 |
instvar is modified"
|
|
1002 |
|
|
1003 |
|title|
|
|
1004 |
|
|
1005 |
modsOnly ifTrue:[
|
45
|
1006 |
title := 'modifications of '
|
36
|
1007 |
] ifFalse:[
|
45
|
1008 |
title := 'references to '
|
36
|
1009 |
].
|
108
|
1010 |
^ self
|
|
1011 |
browseRefsTo:aString
|
|
1012 |
classVars:classVars
|
|
1013 |
in:aCollectionOfClasses
|
|
1014 |
modificationsOnly:modsOnly
|
|
1015 |
title:(title , aString)
|
93
|
1016 |
!
|
75
|
1017 |
|
93
|
1018 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
|
|
1019 |
"launch a browser for all methods in aClass where the instVar named
|
|
1020 |
aString is referenced; if modsOnly is true, browse only methods where the
|
|
1021 |
instvar is modified"
|
|
1022 |
|
|
1023 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
|
36
|
1024 |
!
|
|
1025 |
|
|
1026 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly
|
|
1027 |
"launch a browser for all methods in aClass and subclasses
|
|
1028 |
where the instVar named aString is referenced;
|
|
1029 |
if modsOnly is true, browse only methods where the instvar is modified"
|
|
1030 |
|
|
1031 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
|
52
|
1032 |
!
|
|
1033 |
|
|
1034 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
|
|
1035 |
"launch a browser for all methods in aClass where the classVar named
|
|
1036 |
aString is referenced; if modsOnly is true, browse only methods where the
|
|
1037 |
classvar is modified"
|
|
1038 |
|
93
|
1039 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
|
52
|
1040 |
!
|
|
1041 |
|
|
1042 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly
|
|
1043 |
"launch a browser for all methods in aClass and subclasses
|
|
1044 |
where the classVar named aString is referenced;
|
|
1045 |
if modsOnly is true, browse only methods where the classvar is modified"
|
|
1046 |
|
|
1047 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
|
75
|
1048 |
|
36
|
1049 |
! !
|
|
1050 |
|
75
|
1051 |
!SystemBrowser class methodsFor:'private instance creation'!
|
36
|
1052 |
|
93
|
1053 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation
|
36
|
1054 |
"common helper method for all creation methods"
|
|
1055 |
|
|
1056 |
|newBrowser|
|
|
1057 |
|
93
|
1058 |
newBrowser := BrowserView onDevice:aWorkstation.
|
52
|
1059 |
newBrowser title:aString.
|
36
|
1060 |
aBlock value:newBrowser.
|
|
1061 |
|
|
1062 |
newBrowser open.
|
|
1063 |
^ newBrowser
|
|
1064 |
!
|
|
1065 |
|
|
1066 |
newWithLabel:aString setupBlock:aBlock
|
|
1067 |
"common helper method for all creation methods"
|
|
1068 |
|
106
|
1069 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current
|
93
|
1070 |
!
|
|
1071 |
|
|
1072 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation
|
|
1073 |
"common helper method for all creation methods"
|
|
1074 |
|
|
1075 |
|newBrowser|
|
|
1076 |
|
|
1077 |
newBrowser := BrowserView onDevice:aWorkstation.
|
|
1078 |
newBrowser title:aString.
|
|
1079 |
newBrowser perform:aSymbol with:arg.
|
|
1080 |
newBrowser open.
|
|
1081 |
^ newBrowser
|
|
1082 |
!
|
|
1083 |
|
|
1084 |
newWithLabel:aString setupSelector:aSymbol arg:arg
|
|
1085 |
"common helper method for all creation methods"
|
|
1086 |
|
106
|
1087 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current
|
36
|
1088 |
! !
|
|
1089 |
|
75
|
1090 |
!SystemBrowser class methodsFor:'private helpers'!
|
52
|
1091 |
|
75
|
1092 |
showNoneFound:what
|
100
|
1093 |
Dialog warn:(self classResources string:(what , '...\\... none found') withCRs).
|
52
|
1094 |
!
|
|
1095 |
|
75
|
1096 |
showNoneFound
|
85
|
1097 |
Dialog warn:(self classResources string:'None found').
|
52
|
1098 |
! !
|
|
1099 |
|