author | Claus Gittinger <cg@exept.de> |
Thu, 12 Oct 2006 21:31:34 +0200 | |
changeset 7395 | 4aa4c6b9a161 |
parent 7361 | fd281ab33547 |
child 7524 | 0257265ae6b7 |
permissions | -rw-r--r-- |
36 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
4158 | 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 |
" |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
13 |
|
85 | 14 |
ApplicationModel subclass:#SystemBrowser |
4165 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory |
|
17 |
EmphasisForDifferentPackage EmphasisForModifiedBuffer |
|
18 |
EmphasisForObsoleteCode EmphasisForReadVariable |
|
19 |
EmphasisForWrittenVariable EmphasisForChangedCode' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Browsers' |
|
36 | 22 |
! |
23 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
24 |
Object subclass:#BrowserHistoryEntry |
4165 | 25 |
instanceVariableNames:'className meta selector' |
26 |
classVariableNames:'' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:SystemBrowser |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
29 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
30 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
31 |
!SystemBrowser class methodsFor:'documentation'! |
203 | 32 |
|
33 |
copyright |
|
34 |
" |
|
35 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
4158 | 36 |
All Rights Reserved |
203 | 37 |
|
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
" |
|
45 |
! |
|
46 |
||
47 |
documentation |
|
48 |
" |
|
49 |
this class implements all kinds of class browsers. |
|
50 |
Typically, it is started with 'SystemBrowser open', but there are many other |
|
51 |
startup messages, to launch special browsers. |
|
52 |
See the categories 'startup' and 'special search startup' in the classes |
|
53 |
protocol. |
|
54 |
||
55 |
Alse, see the extra document 'doc/misc/sbrowser.doc' or the HTML online doc |
|
56 |
for how to use the browser. |
|
57 |
||
58 |
written winter 89 by claus. |
|
59 |
||
60 |
Notice: SystemBrowser is currently being rewritten to be an instance |
|
61 |
of ApplicationModel - this transition is not yet complete and you see |
|
62 |
here an intermediate version. The instance variables defined here are NOT |
|
63 |
currently used - instead, everything is really done in the BrowserView |
|
64 |
which (currently) keeps the real state of the browser. |
|
65 |
This will certainly change ... |
|
508 | 66 |
|
67 |
[author:] |
|
68 |
Claus Gittinger |
|
69 |
||
203 | 70 |
" |
71 |
! ! |
|
72 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
73 |
!SystemBrowser class methodsFor:'initialization'! |
75 | 74 |
|
75 |
initialize |
|
76 |
"Browser configuration; |
|
77 |
(values can be changed from your private startup file)" |
|
45 | 78 |
|
254 | 79 |
"/ self classResources. |
85 | 80 |
|
75 | 81 |
" |
82 |
setting this to false, the removeClass function will remove |
|
83 |
classes WITHOUT checking for instances. Otherwise, |
|
84 |
it will check and let you confirm in case there are instances. |
|
85 |
Checking for instances may be a bit time consuming, though. |
|
86 |
The default is true - therefore, it will check |
|
87 |
" |
|
88 |
CheckForInstancesWhenRemovingClasses := true |
|
89 |
||
90 |
" |
|
91 |
CheckForInstancesWhenRemovingClasses := true |
|
92 |
CheckForInstancesWhenRemovingClasses := false |
|
93 |
||
85 | 94 |
SystemBrowser initialize |
75 | 95 |
" |
96 |
! ! |
|
36 | 97 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
98 |
!SystemBrowser class methodsFor:'instance creation'! |
52 | 99 |
|
75 | 100 |
open |
101 |
"launch a standard browser" |
|
102 |
||
2631 | 103 |
self == SystemBrowser ifFalse:[ |
104 |
^ super open |
|
105 |
]. |
|
106 |
||
105 | 107 |
^ self openOnDevice:(Screen current) |
75 | 108 |
|
93 | 109 |
" |
110 |
SystemBrowser open |
|
111 |
" |
|
194 | 112 |
! |
113 |
||
523 | 114 |
openInClass:aClass |
115 |
"launch a standard browser which immediately switches |
|
116 |
to aClass" |
|
117 |
||
118 |
^ self openInClass:aClass selector:nil |
|
119 |
||
120 |
" |
|
121 |
SystemBrowser openInClass:Object |
|
122 |
" |
|
123 |
||
124 |
"Created: 30.4.1996 / 14:43:45 / cg" |
|
125 |
! |
|
126 |
||
194 | 127 |
openInClass:aClass selector:aSelector |
128 |
"launch a standard browser which immediately switches |
|
129 |
to aClass>>aSelector." |
|
130 |
||
3626 | 131 |
|brwsr classesName| |
194 | 132 |
|
133 |
brwsr := self openOnDevice:(Screen current). |
|
134 |
brwsr waitUntilVisible. |
|
1561 | 135 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
136 |
aClass notNil ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
137 |
"/ cls := aClass. |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
138 |
"/ cls isMeta ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
139 |
"/ cls := aClass soleInstance |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
140 |
"/ ]. |
1561 | 141 |
aClass isMeta ifTrue:[ |
142 |
brwsr instanceProtocol:false |
|
143 |
]. |
|
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
144 |
aClass isJavaClass ifTrue:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
145 |
classesName := aClass fullName. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
146 |
] ifFalse:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
147 |
classesName := aClass name. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
148 |
]. |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
149 |
brwsr switchToClassNamed:classesName. |
1681 | 150 |
brwsr classSelectionChanged. |
1561 | 151 |
aSelector notNil ifTrue:[ |
152 |
brwsr switchToMethodNamed:aSelector. |
|
153 |
] |
|
194 | 154 |
]. |
155 |
^ brwsr |
|
156 |
||
157 |
" |
|
158 |
SystemBrowser openInClass:Object selector:#at:put: |
|
159 |
SystemBrowser openInClass:Object selector:nil |
|
160 |
SystemBrowser openInClass:nil selector:nil |
|
161 |
" |
|
162 |
||
1561 | 163 |
"Created: / 22.11.1995 / 21:04:50 / cg" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
164 |
"Modified: / 5.11.2001 / 16:51:02 / cg" |
203 | 165 |
! |
166 |
||
3588 | 167 |
openOn:anEnvironment |
4921 | 168 |
^ self |
169 |
openOn:anEnvironment |
|
170 |
label:(self classResources string:'System Browser') |
|
3588 | 171 |
|
172 |
" |
|
173 |
SystemBrowser openOn:Smalltalk |
|
3589 | 174 |
SystemBrowser openOn:Demos |
3588 | 175 |
" |
176 |
! |
|
177 |
||
4921 | 178 |
openOn:aClassEnvironment label:title |
179 |
^ self |
|
180 |
openOn:aClassEnvironment |
|
181 |
label:title |
|
182 |
onDevice:(Screen current) |
|
183 |
! |
|
184 |
||
185 |
openOn:aClassEnvironment label:title onDevice:aDisplayDevice |
|
186 |
|browser| |
|
187 |
||
188 |
browser := self |
|
189 |
newWithLabel:title |
|
190 |
setupBlock:[:browser | browser environment:aClassEnvironment. |
|
191 |
browser setupForAll] |
|
192 |
onDevice:aDisplayDevice. |
|
193 |
^ browser |
|
194 |
! |
|
195 |
||
203 | 196 |
openOnDevice:aDisplay |
197 |
"launch a standard browser on another display." |
|
198 |
||
2631 | 199 |
self == SystemBrowser ifFalse:[ |
200 |
^ super openOnDevice:aDisplay |
|
201 |
]. |
|
202 |
||
3519 | 203 |
^ self |
4921 | 204 |
openOn:Smalltalk |
205 |
label:(self classResources string:'System Browser') |
|
3519 | 206 |
onDevice:aDisplay |
203 | 207 |
|
208 |
"|d| |
|
209 |
||
210 |
d := XWorkstation new initializeFor:'porty:0'. |
|
211 |
d startDispatch. |
|
212 |
SystemBrowser openOnDevice:d |
|
213 |
" |
|
2818 | 214 |
! |
215 |
||
3573 | 216 |
openOnRemoteImageOnHost:aHostName port:portOrNil |
4921 | 217 |
|environment| |
3573 | 218 |
|
219 |
environment := RemoteImage onHost:aHostName port:portOrNil. |
|
4921 | 220 |
^ self |
221 |
openOn:environment |
|
222 |
label:(self classResources string:'RemoteImage Browser - %1' with:aHostName) |
|
3573 | 223 |
|
224 |
" |
|
225 |
SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil |
|
226 |
" |
|
227 |
! |
|
228 |
||
2818 | 229 |
openOnSnapShotImage:anImageFileName |
4921 | 230 |
|environment| |
2818 | 231 |
|
232 |
environment := SnapShotImage for:anImageFileName. |
|
4921 | 233 |
^ self |
234 |
openOn:environment |
|
235 |
label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName) |
|
2818 | 236 |
|
237 |
" |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
238 |
SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img') |
2824 | 239 |
" |
240 |
! ! |
|
36 | 241 |
|
4909 | 242 |
!SystemBrowser class methodsFor:'Compatibility-ST80'! |
1356 | 243 |
|
244 |
newOnClass:aClass |
|
245 |
^ self browseClass:aClass |
|
246 |
||
247 |
"Created: / 27.10.1997 / 20:10:39 / cg" |
|
248 |
! ! |
|
249 |
||
4909 | 250 |
!SystemBrowser class methodsFor:'accessing-history'! |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
251 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
252 |
addToHistory:aClass selector:aSelectorOrNil |
3679 | 253 |
|newEntry oldEntry classHistory| |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
254 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
255 |
(newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self]. |
3679 | 256 |
classHistory := self classHistory. |
257 |
||
258 |
oldEntry := classHistory detect:[:entry | entry className = newEntry className] ifNone:nil. |
|
259 |
oldEntry notNil ifTrue:[ |
|
260 |
classHistory removeIdentical:oldEntry. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
261 |
]. |
3679 | 262 |
classHistory addFirst:newEntry. |
263 |
classHistory size > self visitedHistoryMaxSize ifTrue:[ |
|
264 |
classHistory removeLast |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
265 |
]. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
266 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
267 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
268 |
checkClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
269 |
"checks the class history for non-existing classes" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
270 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
271 |
"/ reverse, since we might modify while enumerating |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
272 |
self classHistory reverseDo:[:histEntry| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
273 |
(Smalltalk at: (histEntry className) asSymbol) isBehavior |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
274 |
ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
275 |
self classHistory remove: histEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
276 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
277 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
278 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
279 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
280 |
classHistory |
3679 | 281 |
ClassHistory isNil ifTrue:[ |
282 |
ClassHistory := List new |
|
283 |
]. |
|
284 |
^ ClassHistory |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
285 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
286 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
287 |
classHistory:newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
288 |
ClassHistory := newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
289 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
290 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
291 |
emptyClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
292 |
"removes all class history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
293 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
294 |
self classHistory removeAll |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
295 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
296 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
297 |
historyEntryForClass:aClass selector:aSelectorOrNil |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
298 |
|newEntry meta cls| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
299 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
300 |
aClass isBehavior ifFalse:[^ nil]. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
301 |
|
3151 | 302 |
(meta := aClass isMeta) ifTrue:[ |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
303 |
cls := aClass theNonMetaclass. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
304 |
] ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
305 |
cls := aClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
306 |
]. |
3151 | 307 |
newEntry := BrowserHistoryEntry new. |
308 |
newEntry |
|
309 |
className:cls name |
|
310 |
meta:meta |
|
311 |
selector:aSelectorOrNil. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
312 |
^ newEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
313 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
314 |
"Modified: / 24.2.2000 / 18:03:52 / cg" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
315 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
316 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
317 |
!SystemBrowser class methodsFor:'defaults'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
318 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
319 |
classHistoryMaxLevels |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
320 |
^ 3 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
321 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
322 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
323 |
classHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
324 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
325 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
326 |
|
3549 | 327 |
methodTemplate |
328 |
"return a method definition template string" |
|
329 |
||
330 |
|s| |
|
331 |
||
332 |
s := TextStream on:''. |
|
333 |
s nextPutAll:'message selector and argument names |
|
334 |
"comment stating purpose of this message" |
|
335 |
||
336 |
|temporaries| |
|
337 |
||
338 |
statement. |
|
339 |
statement. |
|
340 |
||
341 |
||
342 |
" |
|
343 |
optional: comment giving example use |
|
344 |
" |
|
345 |
'. |
|
346 |
s cr. |
|
347 |
s emphasis:(UserPreferences current commentEmphasisAndColor). |
|
348 |
s nextPutAll:'" |
|
5802 | 349 |
change the above template into real code; |
350 |
remove this comment. |
|
3549 | 351 |
Then `accept'' either via the menu |
352 |
or via the keyboard (usually CMD-A). |
|
353 |
||
354 |
You do not need this template; you can also |
|
355 |
select any existing methods code, change it, |
|
356 |
and finally `accept''. The method will then be |
|
357 |
installed under the selector as defined in the |
|
358 |
actual text - no matter which method is selected |
|
359 |
in the browser. |
|
360 |
||
361 |
Or clear this text, type in the method from scratch |
|
362 |
and install it with `accept''. |
|
363 |
" |
|
364 |
'. |
|
365 |
^ s contents |
|
366 |
! |
|
367 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
368 |
visitedHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
369 |
"the maximum number of remembered visited-class-history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
370 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
371 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
372 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
373 |
|
4909 | 374 |
!SystemBrowser class methodsFor:'defaults-presentation'! |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
375 |
|
3352 | 376 |
emphasisForChangedCode |
4499 | 377 |
^ UserPreferences current emphasisForChangedCode. |
3352 | 378 |
|
379 |
" |
|
380 |
EmphasisForChangedCode := #underwave |
|
4112 | 381 |
EmphasisForChangedCode := #color->Color blue |
3352 | 382 |
EmphasisForChangedCode := #color->Color red lightened lightened lightened |
383 |
" |
|
384 |
||
385 |
"Created: / 31.10.2001 / 10:15:33 / cg" |
|
386 |
! |
|
387 |
||
388 |
emphasisForChangedCode:anEmphasis |
|
389 |
EmphasisForChangedCode := anEmphasis |
|
390 |
||
391 |
" |
|
392 |
self emphasisForChangedCode:#underwave |
|
393 |
self emphasisForChangedCode:(#color->Color red lightened lightened lightened) |
|
394 |
" |
|
395 |
||
396 |
"Created: / 31.10.2001 / 10:15:44 / cg" |
|
397 |
! |
|
398 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
399 |
emphasisForDifferentPackage |
4499 | 400 |
^ UserPreferences current emphasisForDifferentPackage. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
401 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
402 |
" |
3352 | 403 |
EmphasisForDifferentPackage := nil. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
404 |
EmphasisForDifferentPackage := #underwave |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
405 |
EmphasisForDifferentPackage := #color->Color red lightened lightened lightened |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
406 |
" |
3352 | 407 |
|
408 |
"Modified: / 31.10.2001 / 10:47:25 / cg" |
|
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
409 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
410 |
|
3241 | 411 |
emphasisForDifferentPackage:anEmphasis |
412 |
EmphasisForDifferentPackage := anEmphasis |
|
413 |
||
414 |
" |
|
415 |
self emphasisForDifferentPackage:#underwave |
|
416 |
self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened) |
|
417 |
" |
|
418 |
! |
|
419 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
420 |
emphasisForModifiedBuffer |
4499 | 421 |
^ UserPreferences current emphasisForModifiedBuffer. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
422 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
423 |
|
3241 | 424 |
emphasisForModifiedBuffer:anEmphasis |
425 |
EmphasisForModifiedBuffer := anEmphasis |
|
426 |
! |
|
427 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
428 |
emphasisForObsoleteCode |
4499 | 429 |
^ UserPreferences current emphasisForObsoleteCode. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
430 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
431 |
|
3241 | 432 |
emphasisForObsoleteCode:anEmphasis |
433 |
EmphasisForObsoleteCode := anEmphasis |
|
434 |
! |
|
435 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
436 |
emphasisForReadVariable |
4499 | 437 |
^ UserPreferences current emphasisForReadVariable. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
438 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
439 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
440 |
EmphasisForReadVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
441 |
EmphasisForReadVariable := Array with:#underline with:#underlineColor->Color yellow |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
442 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
443 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
444 |
|
3241 | 445 |
emphasisForReadVariable:anEmphasis |
446 |
EmphasisForReadVariable := anEmphasis |
|
447 |
||
448 |
" |
|
449 |
self emphasisForReadVariable:#underline |
|
450 |
self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow) |
|
451 |
" |
|
452 |
! |
|
453 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
454 |
emphasisForWrittenVariable |
4499 | 455 |
^ UserPreferences current emphasisForWrittenVariable. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
456 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
457 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
458 |
EmphasisForWrittenVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
459 |
EmphasisForWrittenVariable := Array with:#underline with:#underlineColor->Color red lightened |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
460 |
" |
3241 | 461 |
! |
462 |
||
463 |
emphasisForWrittenVariable:anEmphasis |
|
464 |
EmphasisForWrittenVariable := anEmphasis |
|
465 |
||
466 |
" |
|
467 |
self emphasisForWrittenVariable:#underline |
|
468 |
self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened) |
|
469 |
" |
|
6901 | 470 |
! |
471 |
||
472 |
iconForClass:aClass |
|
473 |
|c| |
|
474 |
||
7361
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
475 |
(aClass isBrowserStartable) ifTrue:[ |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
476 |
aClass isVisualStartable ifTrue:[ |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
477 |
^ self startableVisualAppIcon |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
478 |
]. |
6901 | 479 |
^ self startableClassIcon |
480 |
]. |
|
481 |
aClass isLoaded ifFalse:[ |
|
482 |
^ self autoloadedClassIcon |
|
483 |
]. |
|
484 |
c := aClass. |
|
485 |
[c notNil] whileTrue:[ |
|
486 |
c == Warning ifTrue:[ |
|
487 |
^ self warningClassIcon |
|
488 |
]. |
|
489 |
c == Query ifTrue:[ |
|
490 |
^ self queryClassIcon |
|
491 |
]. |
|
492 |
c == Notification ifTrue:[ |
|
493 |
^ self notificationClassIcon |
|
494 |
]. |
|
495 |
c == Error ifTrue:[ |
|
496 |
^ self errorClassIcon |
|
497 |
]. |
|
498 |
c == GenericException ifTrue:[ |
|
499 |
^ self exceptionClassIcon |
|
500 |
]. |
|
501 |
c == SimpleView ifTrue:[ |
|
502 |
^ self windowClassIcon |
|
503 |
]. |
|
504 |
c == Collection ifTrue:[ |
|
505 |
^ self containerClassIcon |
|
506 |
]. |
|
507 |
(c == TestCase and:[aClass isAbstract not "aClass ~~ TestCase"]) ifTrue:[ |
|
508 |
^ self testCaseClassIconFor:aClass |
|
509 |
]. |
|
6925 | 510 |
(c == LibraryDefinition) ifTrue:[ |
511 |
aClass ~~ LibraryDefinition ifTrue:[ |
|
512 |
^ self packageIconSmall |
|
513 |
]. |
|
514 |
]. |
|
515 |
(c == ApplicationDefinition) ifTrue:[ |
|
516 |
aClass ~~ ApplicationDefinition ifTrue:[ |
|
6954 | 517 |
aClass isGUIApplication ifTrue:[ |
518 |
^ self packageIconGreenSmall |
|
519 |
]. |
|
520 |
^ self packageIconGraySmall. |
|
6925 | 521 |
]. |
6901 | 522 |
]. |
523 |
c := c superclass |
|
524 |
]. |
|
525 |
^ nil |
|
526 |
||
527 |
"Created: / 17-08-2006 / 09:11:27 / cg" |
|
7361
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
528 |
"Modified: / 06-10-2006 / 11:37:25 / cg" |
6901 | 529 |
! |
530 |
||
531 |
resourceIconForMethod:aMethod |
|
532 |
|resources| |
|
533 |
||
534 |
(resources := aMethod resources) isNil ifTrue:[^ nil]. |
|
535 |
||
536 |
(resources includesKey:#obsolete) ifTrue:[ |
|
537 |
^ self deprecatedMethodIcon |
|
538 |
]. |
|
539 |
(resources includesKey:#canvas) ifTrue:[ |
|
540 |
^ self canvasIcon |
|
541 |
]. |
|
542 |
(resources includesKey:#menu) ifTrue:[ |
|
543 |
^ self menuIcon |
|
544 |
]. |
|
545 |
(resources includesKey:#image) ifTrue:[ |
|
546 |
^ self imageIcon |
|
547 |
]. |
|
548 |
(resources includesKey:#fileImage) ifTrue:[ |
|
549 |
^ self fileImageIcon |
|
550 |
]. |
|
551 |
(resources includesKey:#programImage) ifTrue:[ |
|
552 |
^ self programImageIcon |
|
553 |
]. |
|
554 |
(resources includesKey:#help) ifTrue:[ |
|
555 |
^ self helpIcon |
|
556 |
]. |
|
557 |
(resources includesKey:#programMenu) ifTrue:[ |
|
558 |
^ self programMenuIcon |
|
559 |
]. |
|
560 |
(resources includesKey:#tableColumns) ifTrue:[ |
|
561 |
^ self tableColumnsIcon |
|
562 |
]. |
|
563 |
(resources includesKey:#tabList) ifTrue:[ |
|
564 |
^ self tabListIcon |
|
565 |
]. |
|
566 |
(resources includesKey:#hierarchicalList) ifTrue:[ |
|
567 |
^ self hierarchicalListIcon |
|
568 |
]. |
|
569 |
(resources includesKey:#programImage) ifTrue:[ |
|
570 |
^ self programImageIcon |
|
571 |
]. |
|
572 |
^ nil |
|
573 |
||
574 |
"Created: / 17-08-2006 / 09:08:11 / cg" |
|
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
575 |
! ! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
576 |
|
2692 | 577 |
!SystemBrowser class methodsFor:'image specs'! |
578 |
||
2748 | 579 |
abstractMethodIcon |
580 |
<resource: #programImage> |
|
581 |
||
582 |
^ self padLockGrayMiniIcon |
|
583 |
! |
|
584 |
||
3813 | 585 |
addBreakPointIcon |
586 |
"This resource specification was automatically generated |
|
587 |
by the ImageEditor of ST/X." |
|
588 |
||
589 |
"Do not manually edit this!! If it is corrupted, |
|
590 |
the ImageEditor may not be able to read the specification." |
|
591 |
||
592 |
" |
|
593 |
self addBreakPointIcon inspect |
|
594 |
ImageEditor openOnClass:self andSelector:#addBreakPointIcon |
|
4852 | 595 |
Icon flushCachedIcons |
3813 | 596 |
" |
597 |
||
598 |
<resource: #image> |
|
599 |
||
600 |
^Icon |
|
601 |
constantNamed:#'SystemBrowser class addBreakPointIcon' |
|
602 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@8@C @N@@8@A@@@@@P@C @D@@@@@@@@@@@@b') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O8A?0O?!!??G?<_?1??G?<_?1??C?8G?@O8@@@@@@b') ; yourself); yourself] |
|
603 |
! |
|
604 |
||
605 |
addBreakPointIcon2 |
|
6115 | 606 |
^ XPToolbarIconLibrary addBreakPointIcon2 |
3813 | 607 |
! |
608 |
||
4341 | 609 |
autoloadedClassIcon |
610 |
"This resource specification was automatically generated |
|
611 |
by the ImageEditor of ST/X." |
|
612 |
||
613 |
"Do not manually edit this!! If it is corrupted, |
|
614 |
the ImageEditor may not be able to read the specification." |
|
615 |
||
616 |
" |
|
617 |
self autoloadedClassIcon inspect |
|
618 |
ImageEditor openOnClass:self andSelector:#autoloadedClassIcon |
|
619 |
Icon flushCachedIcons |
|
620 |
" |
|
621 |
||
622 |
<resource: #image> |
|
623 |
||
624 |
^Icon |
|
625 |
constantNamed:#'SystemBrowser class autoloadedClassIcon' |
|
626 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@HADQDB@@@B@QDQ@ @@@ DQDPH@@@H @@@B@@@BH"H"H @@@"@@@@H@@@H @ADB@@@@H@@Q@ @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 194 194 194 129 129 129]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?A?<G?0_?A?<G?0_?A?<G?0_?@?<@@a') ; yourself); yourself] |
|
627 |
! |
|
628 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
629 |
canvasIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
630 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
631 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
632 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
633 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
634 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
635 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
636 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
637 |
ImageEditor openOnClass:self andSelector:#canvasIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
638 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
639 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
640 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
641 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
642 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
643 |
constantNamed:#'SystemBrowser canvasIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
644 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;/C.;/@@9&XP9&XP@NY&DNY&D@C&Y!!C&Y!!@@9&XP9&XP@NY&DNY&D@C1DQC1DQ@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
645 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
646 |
|
4143 | 647 |
containerClassIcon |
648 |
"This resource specification was automatically generated |
|
649 |
by the ImageEditor of ST/X." |
|
650 |
||
651 |
"Do not manually edit this!! If it is corrupted, |
|
652 |
the ImageEditor may not be able to read the specification." |
|
653 |
||
654 |
" |
|
655 |
self containerClassIcon inspect |
|
656 |
ImageEditor openOnClass:self andSelector:#containerClassIcon |
|
657 |
Icon flushCachedIcons |
|
658 |
" |
|
659 |
||
660 |
<resource: #image> |
|
661 |
||
662 |
^Icon |
|
663 |
constantNamed:#'SystemBrowser class containerClassIcon' |
|
664 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'B;.0@K.;@@.;,@B;.0@K,@@@@K,@B;@@@@B;@@.0@@@@.0@K,@@@@K,@B;@@@@B;@@.0@@@@.0@K,@@@@K,@B;.0@K.;@@.;,@B;.0@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'^OA8<F@0XCA LF@0XCA LF@0^OA8<@@a') ; yourself); yourself] |
|
665 |
! |
|
666 |
||
2692 | 667 |
defaultIcon |
668 |
"This resource specification was automatically generated |
|
669 |
by the ImageEditor of ST/X." |
|
670 |
||
671 |
"Do not manually edit this!! If it is corrupted, |
|
672 |
the ImageEditor may not be able to read the specification." |
|
673 |
||
674 |
" |
|
675 |
self defaultIcon inspect |
|
676 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
677 |
" |
|
678 |
||
679 |
<resource: #image> |
|
680 |
||
681 |
^Icon |
|
3794 | 682 |
constantNamed:#'SystemBrowser class defaultIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
683 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
684 |
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@ |
3794 | 685 |
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H" |
686 |
H @@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFUUUUUUH@@@@@@@@@@@L"H"H"H @@@@@@ |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
687 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
688 |
@@@@@@@@@@@@@@@@@@@@@@@@H@@@@@@@@@H@@ @@@@Hb') ; colorMapFromArray:#[0 0 0 0 255 0 127 127 127 170 170 170 255 0 0 255 255 0 255 255 255]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
3794 | 689 |
??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@@@@@ O?8@\C?>@G??? A0O?8@HC?>@B@@@@@ O?8@\C?>@G??? A0O?8@@C?>@@@@@@9O\7\IRT |
2846 | 690 |
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself] |
691 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
692 |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
693 |
deprecatedMethodIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
694 |
^ self doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
695 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
696 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
697 |
doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
698 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
699 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
700 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
701 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
702 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
703 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
704 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
705 |
self doNotEnterIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
706 |
ImageEditor openOnClass:self andSelector:#doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
707 |
Icon flushCachedIcons |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
708 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
709 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
710 |
<resource: #image> |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
711 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
712 |
^Icon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
713 |
constantNamed:#'SystemBrowser class doNotEnterIcon' |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
714 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??C0<NA00CB@EY>P''9B@DL@08GC0<@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O@A>@O<A?8G? _>A?8C?@G8@O@@@a') ; yourself); yourself] |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
715 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
716 |
|
3354 | 717 |
emptyIcon |
718 |
"This resource specification was automatically generated |
|
719 |
by the ImageEditor of ST/X." |
|
720 |
||
721 |
"Do not manually edit this!! If it is corrupted, |
|
722 |
the ImageEditor may not be able to read the specification." |
|
723 |
||
724 |
" |
|
725 |
self emptyIcon inspect |
|
726 |
ImageEditor openOnClass:self andSelector:#emptyIcon |
|
727 |
" |
|
728 |
||
729 |
<resource: #image> |
|
730 |
||
731 |
^Icon |
|
732 |
constantNamed:#'SystemBrowser class emptyIcon' |
|
733 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
734 |
||
735 |
"Created: / 5.11.2001 / 09:39:54 / cg" |
|
736 |
! |
|
737 |
||
4143 | 738 |
errorClassIcon |
739 |
"This resource specification was automatically generated |
|
740 |
by the ImageEditor of ST/X." |
|
741 |
||
742 |
"Do not manually edit this!! If it is corrupted, |
|
743 |
the ImageEditor may not be able to read the specification." |
|
744 |
||
745 |
" |
|
746 |
self errorClassIcon inspect |
|
747 |
ImageEditor openOnClass:self andSelector:#errorClassIcon |
|
748 |
Icon flushCachedIcons |
|
749 |
" |
|
750 |
||
751 |
<resource: #image> |
|
752 |
||
753 |
^Icon |
|
754 |
constantNamed:#'SystemBrowser class errorClassIcon' |
|
755 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself] |
|
756 |
! |
|
757 |
||
758 |
exceptionClassIcon |
|
759 |
"This resource specification was automatically generated |
|
760 |
by the ImageEditor of ST/X." |
|
761 |
||
762 |
"Do not manually edit this!! If it is corrupted, |
|
763 |
the ImageEditor may not be able to read the specification." |
|
764 |
||
765 |
" |
|
766 |
self exceptionClassIcon inspect |
|
767 |
ImageEditor openOnClass:self andSelector:#exceptionClassIcon |
|
768 |
Icon flushCachedIcons |
|
769 |
" |
|
770 |
||
771 |
<resource: #image> |
|
772 |
||
773 |
^Icon |
|
774 |
constantNamed:#'SystemBrowser class exceptionClassIcon' |
|
6901 | 775 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 110 110 110]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself] |
4143 | 776 |
! |
777 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
778 |
fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
779 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
780 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
781 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
782 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
783 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
784 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
785 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
786 |
self fileImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
787 |
ImageEditor openOnClass:self andSelector:#fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
788 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
789 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
790 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
791 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
792 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
793 |
constantNamed:#'SystemBrowser fileImageIcon' |
2846 | 794 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"@@@BQBH!!D"@@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 51 153 153 51 255 255 255 153 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?<C?8O?0??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
795 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
796 |
|
4166 | 797 |
greenCheckIcon |
798 |
"This resource specification was automatically generated |
|
799 |
by the ImageEditor of ST/X." |
|
800 |
||
801 |
"Do not manually edit this!! If it is corrupted, |
|
802 |
the ImageEditor may not be able to read the specification." |
|
803 |
||
804 |
" |
|
805 |
self greenCheckIcon inspect |
|
806 |
ImageEditor openOnClass:self andSelector:#greenCheckIcon |
|
807 |
Icon flushCachedIcons |
|
808 |
" |
|
809 |
||
810 |
<resource: #image> |
|
811 |
||
812 |
^Icon |
|
813 |
constantNamed:#'SystemBrowser class greenCheckIcon' |
|
814 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 0 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a') ; yourself); yourself] |
|
815 |
! |
|
816 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
817 |
greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
818 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
819 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
820 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
821 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
822 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
823 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
824 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
825 |
self greenLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
826 |
ImageEditor openOnClass:self andSelector:#greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
827 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
828 |
|
3354 | 829 |
<resource: #programImage> |
830 |
||
2892 | 831 |
^ self padLockGreenMiniIcon |
3354 | 832 |
|
833 |
"Modified: / 5.11.2001 / 09:40:12 / cg" |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
834 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
835 |
|
4165 | 836 |
greenThumbUpIcon |
837 |
"This resource specification was automatically generated |
|
838 |
by the ImageEditor of ST/X." |
|
839 |
||
840 |
"Do not manually edit this!! If it is corrupted, |
|
841 |
the ImageEditor may not be able to read the specification." |
|
842 |
||
843 |
" |
|
844 |
self greenThumbUpIcon inspect |
|
845 |
ImageEditor openOnClass:self andSelector:#greenThumbUpIcon |
|
846 |
Icon flushCachedIcons |
|
847 |
" |
|
848 |
||
849 |
<resource: #image> |
|
850 |
||
851 |
^Icon |
|
852 |
constantNamed:#'SystemBrowser class greenThumbUpIcon' |
|
853 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
854 |
@@@@@@@@@@@@A)<@@@@@@@@G( @@@@@@@@^/@@@@@@@@A9@@@@@@@@C)$@@@@@@@A)+<>]BM]0BZ(->&E''3&@I**J&DN];@@VZ*''G^DV] C%&Y8AY7,@@MQU |
|
855 |
P]8QY6@@@MSPE''XP@@@@@CL0!!''X@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 0 64 0 77 242 77 0 128 0 0 160 32 8 215 50 50 173 50 45 210 45 0 32 0 40 247 40 77 242 118 0 64 32 22 105 22 18 141 18 13 178 13 45 210 86]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@@>@C8@O @<@G?<??;??/?>??;??O?<?? ?>@?0') ; yourself); yourself] |
|
856 |
! |
|
857 |
||
4166 | 858 |
greenThumbUpSmallIcon |
859 |
"This resource specification was automatically generated |
|
860 |
by the ImageEditor of ST/X." |
|
861 |
||
862 |
"Do not manually edit this!! If it is corrupted, |
|
863 |
the ImageEditor may not be able to read the specification." |
|
864 |
||
865 |
" |
|
866 |
self greenThumbUpSmallIcon inspect |
|
867 |
ImageEditor openOnClass:self andSelector:#greenThumbUpSmallIcon |
|
868 |
Icon flushCachedIcons |
|
869 |
" |
|
870 |
||
871 |
<resource: #image> |
|
872 |
||
873 |
^Icon |
|
874 |
constantNamed:#'SystemBrowser class greenThumbUpSmallIcon' |
|
875 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@P@@@@D@@@@A@@L@@P@B@@U*@@@UZ@@@UV @@EV @@@@@@B@@@@B@b') ; colorMapFromArray:#[0 0 0 0 255 0 0 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C@@N@@8@C @_8A?0O?@?8C?@O8@@@@@a') ; yourself); yourself] |
|
876 |
! |
|
877 |
||
878 |
greyCheckIcon |
|
879 |
"This resource specification was automatically generated |
|
880 |
by the ImageEditor of ST/X." |
|
881 |
||
882 |
"Do not manually edit this!! If it is corrupted, |
|
883 |
the ImageEditor may not be able to read the specification." |
|
884 |
||
885 |
" |
|
886 |
self greyCheckIcon inspect |
|
887 |
ImageEditor openOnClass:self andSelector:#greyCheckIcon |
|
888 |
Icon flushCachedIcons |
|
889 |
" |
|
890 |
||
891 |
<resource: #image> |
|
892 |
||
893 |
^Icon |
|
894 |
constantNamed:#'SystemBrowser class greyCheckIcon' |
|
895 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a') ; yourself); yourself] |
|
896 |
! |
|
897 |
||
4165 | 898 |
greyThumbUpIcon |
899 |
"This resource specification was automatically generated |
|
900 |
by the ImageEditor of ST/X." |
|
901 |
||
902 |
"Do not manually edit this!! If it is corrupted, |
|
903 |
the ImageEditor may not be able to read the specification." |
|
904 |
||
905 |
" |
|
906 |
self greyThumbUpIcon inspect |
|
907 |
ImageEditor openOnClass:self andSelector:#greyThumbUpIcon |
|
908 |
Icon flushCachedIcons |
|
909 |
" |
|
910 |
||
911 |
<resource: #image> |
|
912 |
||
913 |
^Icon |
|
914 |
constantNamed:#'SystemBrowser class greyThumbUpIcon' |
|
915 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
916 |
@@@@@@@@@@ @@4\@@@@@@@@GE@@@@@@@@@\W@@@@@@@@A4@@@@@@@@@4P@@@@@@H@4E2]FAV]0AAEF\SH7X3@DDQPSHC]2@@]ADWI#H#\0@7]7LBM7H@@FY7 |
|
917 |
YVL"M3@@@FY T7L @@@@@BH T7L@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 224 224 224 64 64 64 128 128 128 192 192 192 32 32 32 96 96 96 160 160 160]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@@>@C8@O @<@G?<??;??/?>??;??O?<?? ?>@?0') ; yourself); yourself] |
|
918 |
! |
|
919 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
920 |
helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
921 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
922 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
923 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
924 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
925 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
926 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
927 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
928 |
self helpIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
929 |
ImageEditor openOnClass:self andSelector:#helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
930 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
931 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
932 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
933 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
934 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
935 |
constantNamed:#'SystemBrowser helpIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
936 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?<G#0]7A?\G;0__A?<G72_?@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
937 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
938 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
939 |
hierarchicalListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
940 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
941 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
942 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
943 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
944 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
945 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
946 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
947 |
ImageEditor openOnClass:self andSelector:#hierarchicalListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
948 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
949 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
950 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
951 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
952 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
953 |
constantNamed:#'SystemBrowser hierarchicalListIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
954 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@NAUUU0@R??8@GO?>@A0@C @\??88G@@N@A3?? @^@@8@N***@@@@@C b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
955 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
956 |
|
5997 | 957 |
ignoredMethodIcon |
958 |
<resource: #programImage> |
|
959 |
||
960 |
^ self padLockBlackMiniIcon |
|
961 |
! |
|
962 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
963 |
imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
964 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
965 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
966 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
967 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
968 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
969 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
970 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
971 |
self imageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
972 |
ImageEditor openOnClass:self andSelector:#imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
973 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
974 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
975 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
976 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
977 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
978 |
constantNamed:#'SystemBrowser imageIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
979 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 51 153 153 51 255 255 255 153 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
980 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
981 |
|
3675 | 982 |
medium_methodEmptyInheritedIcon |
983 |
"This resource specification was automatically generated |
|
984 |
by the ImageEditor of ST/X." |
|
985 |
||
986 |
"Do not manually edit this!! If it is corrupted, |
|
987 |
the ImageEditor may not be able to read the specification." |
|
988 |
||
989 |
" |
|
990 |
self medium_methodEmptyInheritedIcon inspect |
|
991 |
ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon |
|
992 |
" |
|
993 |
||
994 |
<resource: #image> |
|
995 |
||
996 |
^Icon |
|
997 |
constantNamed:#'SystemBrowser class medium_methodEmptyInheritedIcon' |
|
998 |
ifAbsentPut:[(Depth4Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
999 |
! |
|
1000 |
||
1001 |
medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1002 |
"This resource specification was automatically generated |
|
1003 |
by the ImageEditor of ST/X." |
|
1004 |
||
1005 |
"Do not manually edit this!! If it is corrupted, |
|
1006 |
the ImageEditor may not be able to read the specification." |
|
1007 |
||
1008 |
" |
|
1009 |
self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1010 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
4130 | 1011 |
Icon flushCachedIcons |
3675 | 1012 |
" |
1013 |
||
1014 |
<resource: #image> |
|
1015 |
||
1016 |
^Icon |
|
1017 |
constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon' |
|
4130 | 1018 |
ifAbsentPut:[(Depth2Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@B()@B(@A@ @A@ @A@ (EP@HEP@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 127 255 127 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@/ B>@K8A7@G\@]0C:@O(@> @@@@@a') ; yourself); yourself] |
3675 | 1019 |
! |
1020 |
||
1021 |
medium_methodInheritedFromAboveIcon |
|
1022 |
"This resource specification was automatically generated |
|
1023 |
by the ImageEditor of ST/X." |
|
1024 |
||
1025 |
"Do not manually edit this!! If it is corrupted, |
|
1026 |
the ImageEditor may not be able to read the specification." |
|
1027 |
||
1028 |
" |
|
1029 |
self medium_methodInheritedFromAboveIcon inspect |
|
1030 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon |
|
4130 | 1031 |
Icon flushCachedIcons |
3675 | 1032 |
" |
1033 |
||
1034 |
<resource: #image> |
|
1035 |
||
1036 |
^Icon |
|
1037 |
constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveIcon' |
|
4130 | 1038 |
ifAbsentPut:[(Depth1Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@ @B@@HA=0LG@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@ @B@@H@A0@G@@\@C8@O @>@@@@@@a') ; yourself); yourself] |
3675 | 1039 |
! |
1040 |
||
1041 |
medium_methodRedefinedBelowIcon |
|
1042 |
"This resource specification was automatically generated |
|
1043 |
by the ImageEditor of ST/X." |
|
1044 |
||
1045 |
"Do not manually edit this!! If it is corrupted, |
|
1046 |
the ImageEditor may not be able to read the specification." |
|
1047 |
||
1048 |
" |
|
1049 |
self medium_methodRedefinedBelowIcon inspect |
|
1050 |
ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon |
|
4130 | 1051 |
Icon flushCachedIcons |
3675 | 1052 |
" |
1053 |
||
1054 |
<resource: #image> |
|
1055 |
||
1056 |
^Icon |
|
1057 |
constantNamed:#'SystemBrowser class medium_methodRedefinedBelowIcon' |
|
4130 | 1058 |
ifAbsentPut:[(Depth1Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ED@L@\@A0@B@@H@@"8@P@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 127 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O @>@C8@G@@\@A0@B@@H@@ @@@@@a') ; yourself); yourself] |
3675 | 1059 |
! |
1060 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1061 |
menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1062 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1063 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1064 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1065 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1066 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1067 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1068 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1069 |
self menuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1070 |
ImageEditor openOnClass:self andSelector:#menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1071 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1072 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1073 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1074 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1075 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1076 |
constantNamed:#'SystemBrowser menuIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1077 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1078 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1079 |
|
3675 | 1080 |
methodEmptyInheritedIcon |
1081 |
^ self small_methodEmptyInheritedIcon |
|
1082 |
! |
|
1083 |
||
1084 |
methodInheritedFromAboveAndRedefinedBelowIcon |
|
1085 |
^ self small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1086 |
! |
|
1087 |
||
1088 |
methodInheritedFromAboveIcon |
|
1089 |
^ self small_methodInheritedFromAboveIcon |
|
1090 |
! |
|
1091 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1092 |
methodIsSubclassResponsibilityAndRedefinedBelowIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1093 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1094 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1095 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1096 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1097 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1098 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1099 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1100 |
self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1101 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1102 |
Icon flushCachedIcons |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1103 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1104 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1105 |
<resource: #image> |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1106 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1107 |
^Icon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1108 |
constantNamed:#'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon' |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1109 |
ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@@4UBHR@A@@"@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@>O#8\G@b') ; yourself); yourself] |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1110 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1111 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1112 |
methodIsSubclassResponsibilityIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1113 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1114 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1115 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1116 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1117 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1118 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1119 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1120 |
self methodIsSubclassResponsibilityIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1121 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1122 |
Icon flushCachedIcons |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1123 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1124 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1125 |
<resource: #image> |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1126 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1127 |
^Icon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1128 |
constantNamed:#'SystemBrowser class methodIsSubclassResponsibilityIcon' |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1129 |
ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@ 4@B@H@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@<IC0(I@b') ; yourself); yourself] |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1130 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1131 |
|
3675 | 1132 |
methodRedefinedBelowIcon |
1133 |
^ self small_methodRedefinedBelowIcon |
|
1134 |
! |
|
1135 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1136 |
nameSpaceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1137 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1138 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1139 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1140 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1141 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1142 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1143 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1144 |
self nameSpaceIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1145 |
ImageEditor openOnClass:self andSelector:#nameSpaceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1146 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1147 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1148 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1149 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1150 |
^Icon |
2892 | 1151 |
constantNamed:#'SystemBrowser class nameSpaceIcon' |
1152 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@AO8C?DS:"?1D:(/<QN*J?DS*"/1D:(+<QN*J/DR*"+1AJ(*!!@DJJA@@T@E@@@UT@@@a') ; colorMapFromArray:#[0 0 0 190 190 0 194 194 194 255 255 255]; mask:((ImageMask new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@G#1??7??_?=??7??_?=??7??O?8_?@?8@>@b') ; yourself); yourself] |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1153 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1154 |
|
4308 | 1155 |
notificationClassIcon |
1156 |
"This resource specification was automatically generated |
|
1157 |
by the ImageEditor of ST/X." |
|
1158 |
||
1159 |
"Do not manually edit this!! If it is corrupted, |
|
1160 |
the ImageEditor may not be able to read the specification." |
|
1161 |
||
1162 |
" |
|
1163 |
self notificationClassIcon inspect |
|
1164 |
ImageEditor openOnClass:self andSelector:#notificationClassIcon |
|
1165 |
Icon flushCachedIcons |
|
1166 |
" |
|
1167 |
||
1168 |
<resource: #image> |
|
1169 |
||
1170 |
^Icon |
|
1171 |
constantNamed:#'SystemBrowser class notificationClassIcon' |
|
1172 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 0 127 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself] |
|
1173 |
! |
|
1174 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1175 |
packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1176 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1177 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1178 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1179 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1180 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1181 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1182 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1183 |
self packageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1184 |
ImageEditor openOnClass:self andSelector:#packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1185 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1186 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1187 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1188 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1189 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1190 |
constantNamed:#'SystemBrowser packageIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1191 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ATET@AUEE@APQAP@TDQT@AY%Z@@UUUX@J%*F@@E@I B)Z"X@*V(&@J%*I B)Z"X@*V($@J%*I@B)Z @@@T@@@@a') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A30O[A%LF?<O?0??G?<??3??O?<??3??O?8??C?8O?@b') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1192 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1193 |
|
6954 | 1194 |
packageIconGraySmall |
1195 |
"This resource specification was automatically generated |
|
1196 |
by the ImageEditor of ST/X." |
|
1197 |
||
1198 |
"Do not manually edit this!! If it is corrupted, |
|
1199 |
the ImageEditor may not be able to read the specification." |
|
1200 |
||
1201 |
" |
|
1202 |
self packageIconGraySmall inspect |
|
1203 |
ImageEditor openOnClass:self andSelector:#packageIconGraySmall |
|
1204 |
Icon flushCachedIcons |
|
1205 |
" |
|
1206 |
||
1207 |
<resource: #image> |
|
1208 |
||
1209 |
^Icon |
|
1210 |
constantNamed:#'SystemBrowser class packageIconGraySmall' |
|
1211 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 153 153 153]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself] |
|
1212 |
! |
|
1213 |
||
6925 | 1214 |
packageIconGreenSmall |
1215 |
"This resource specification was automatically generated |
|
1216 |
by the ImageEditor of ST/X." |
|
1217 |
||
1218 |
"Do not manually edit this!! If it is corrupted, |
|
1219 |
the ImageEditor may not be able to read the specification." |
|
1220 |
||
1221 |
" |
|
1222 |
self packageIconGreenSmall inspect |
|
1223 |
ImageEditor openOnClass:self andSelector:#packageIconGreenSmall |
|
1224 |
Icon flushCachedIcons |
|
1225 |
" |
|
1226 |
||
1227 |
<resource: #image> |
|
1228 |
||
1229 |
^Icon |
|
1230 |
constantNamed:#'SystemBrowser class packageIconGreenSmall' |
|
6955 | 1231 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@BH @@H"@@H H @"@ @BH@H"H@H@@BH"H"H"@@@@D!!DPH@@@@@H@@P@@@@DRDPD@@@@AD!!DA@@@@@QHQ@P@@@@DRDP@@@@@@@ @@@@@b') ; colorMapFromArray:#[0 0 0 0 255 0 132 0 132]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself] |
6925 | 1232 |
! |
1233 |
||
1234 |
packageIconOrangeSmall |
|
1235 |
"This resource specification was automatically generated |
|
1236 |
by the ImageEditor of ST/X." |
|
1237 |
||
1238 |
"Do not manually edit this!! If it is corrupted, |
|
1239 |
the ImageEditor may not be able to read the specification." |
|
1240 |
||
1241 |
" |
|
1242 |
self packageIconOrangeSmall inspect |
|
1243 |
ImageEditor openOnClass:self andSelector:#packageIconOrangeSmall |
|
1244 |
Icon flushCachedIcons |
|
1245 |
" |
|
1246 |
||
1247 |
<resource: #image> |
|
1248 |
||
1249 |
^Icon |
|
1250 |
constantNamed:#'SystemBrowser class packageIconOrangeSmall' |
|
6955 | 1251 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 255 139 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself] |
6925 | 1252 |
! |
1253 |
||
6901 | 1254 |
packageIconSmall |
1255 |
"This resource specification was automatically generated |
|
1256 |
by the ImageEditor of ST/X." |
|
1257 |
||
1258 |
"Do not manually edit this!! If it is corrupted, |
|
1259 |
the ImageEditor may not be able to read the specification." |
|
1260 |
||
1261 |
" |
|
6925 | 1262 |
self packageIconSmall inspect |
1263 |
ImageEditor openOnClass:self andSelector:#packageIconSmall |
|
6901 | 1264 |
Icon flushCachedIcons |
1265 |
" |
|
1266 |
||
1267 |
<resource: #image> |
|
1268 |
||
1269 |
^Icon |
|
1270 |
constantNamed:#'SystemBrowser class packageIconSmall' |
|
6955 | 1271 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself] |
6901 | 1272 |
! |
1273 |
||
5997 | 1274 |
padLockBlackMiniIcon |
6333 | 1275 |
<resource: #programImage> |
1276 |
||
1277 |
^ XPToolbarIconLibrary padLockBlackMiniIcon |
|
5997 | 1278 |
! |
1279 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1280 |
padLockBlueMiniIcon |
6333 | 1281 |
<resource: #programImage> |
1282 |
||
1283 |
^ XPToolbarIconLibrary padLockBlueMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1284 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1285 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1286 |
padLockGrayMiniIcon |
6333 | 1287 |
<resource: #programImage> |
1288 |
||
1289 |
^ GenericToolbarIconLibrary padLockGrayMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1290 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1291 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1292 |
padLockGreenMiniIcon |
6333 | 1293 |
<resource: #programImage> |
1294 |
||
1295 |
^ GenericToolbarIconLibrary padLockGreenMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1296 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1297 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1298 |
padLockRedMiniIcon |
6333 | 1299 |
<resource: #programImage> |
1300 |
||
1301 |
^ GenericToolbarIconLibrary padLockRedMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1302 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1303 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1304 |
privateMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1305 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1306 |
|
2748 | 1307 |
^ self padLockRedMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1308 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1309 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1310 |
programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1311 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1312 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1313 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1314 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1315 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1316 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1317 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1318 |
self programImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1319 |
ImageEditor openOnClass:self andSelector:#programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1320 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1321 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1322 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1323 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1324 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1325 |
constantNamed:#'SystemBrowser programImageIcon' |
2846 | 1326 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 25 77 77 51 255 255 128 128 0 128 77 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
1327 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1328 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1329 |
programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1330 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1331 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1332 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1333 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1334 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1335 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1336 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1337 |
self programMenuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1338 |
ImageEditor openOnClass:self andSelector:#programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1339 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1340 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1341 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1342 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1343 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1344 |
constantNamed:#'SystemBrowser programMenuIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1345 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?<G?0@@A?<G?0@@A?<G?3@@@@@@@a') ; colorMapFromArray:#[0 0 0 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1346 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1347 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1348 |
protectedMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1349 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1350 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1351 |
^ self padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1352 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1353 |
|
4308 | 1354 |
queryClassIcon |
1355 |
"This resource specification was automatically generated |
|
1356 |
by the ImageEditor of ST/X." |
|
1357 |
||
1358 |
"Do not manually edit this!! If it is corrupted, |
|
1359 |
the ImageEditor may not be able to read the specification." |
|
1360 |
||
1361 |
" |
|
1362 |
self queryClassIcon inspect |
|
1363 |
ImageEditor openOnClass:self andSelector:#queryClassIcon |
|
1364 |
Icon flushCachedIcons |
|
1365 |
" |
|
1366 |
||
1367 |
<resource: #image> |
|
1368 |
||
1369 |
^Icon |
|
1370 |
constantNamed:#'SystemBrowser class queryClassIcon' |
|
6901 | 1371 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 61 173 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself] |
4308 | 1372 |
! |
1373 |
||
4166 | 1374 |
redCheckIcon |
1375 |
"This resource specification was automatically generated |
|
1376 |
by the ImageEditor of ST/X." |
|
1377 |
||
1378 |
"Do not manually edit this!! If it is corrupted, |
|
1379 |
the ImageEditor may not be able to read the specification." |
|
1380 |
||
1381 |
" |
|
1382 |
self redCheckIcon inspect |
|
1383 |
ImageEditor openOnClass:self andSelector:#redCheckIcon |
|
1384 |
Icon flushCachedIcons |
|
1385 |
" |
|
1386 |
||
1387 |
<resource: #image> |
|
1388 |
||
1389 |
^Icon |
|
1390 |
constantNamed:#'SystemBrowser class redCheckIcon' |
|
1391 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@"@@@@@@@BH@@@@ @@H @@@BH @"@@@@@BH"H @@@@@BH"@@@@@@@BH @@@@@@@B@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@A @L@!! GL@O0@^@@8@A@@@@@@a') ; yourself); yourself] |
|
1392 |
! |
|
1393 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1394 |
redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1395 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1396 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1397 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1398 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1399 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1400 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1401 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1402 |
self redLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1403 |
ImageEditor openOnClass:self andSelector:#redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1404 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1405 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1406 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1407 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1408 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1409 |
constantNamed:#'SystemBrowser redLockIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1410 |
ifAbsentPut:[(Depth2Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@T@@AA@@AA@@EUP@EUP@EQP@EQP@EQP@EAP@AU@@@@@@') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'F@@$@BP@_ A>@G8@_ A>@G8@O@@@@@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1411 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1412 |
|
4165 | 1413 |
redThumbDownIcon |
1414 |
"This resource specification was automatically generated |
|
1415 |
by the ImageEditor of ST/X." |
|
1416 |
||
1417 |
"Do not manually edit this!! If it is corrupted, |
|
1418 |
the ImageEditor may not be able to read the specification." |
|
1419 |
||
1420 |
" |
|
1421 |
self redThumbDownIcon inspect |
|
1422 |
ImageEditor openOnClass:self andSelector:#redThumbDownIcon |
|
1423 |
Icon flushCachedIcons |
|
1424 |
" |
|
1425 |
||
1426 |
<resource: #image> |
|
1427 |
||
1428 |
^Icon |
|
1429 |
constantNamed:#'SystemBrowser class redThumbDownIcon' |
|
1430 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1431 |
@@@@@@@@@@@@@L3@!!;\@@@C6<J^7(@@H=-5*<Z);\@@]UUDJ^;(@@MH3N:<Z);\@H3MC^ F;(@@#MO$7);8WB@\#'')K0#;,@@AH @@@@@@@@B2@@@@@@@@@K |
|
1432 |
NP@@@@@L@@,4@@@@@@T@A2$@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 191 20 1 255 44 33 255 131 65 255 84 65 255 88 33 160 40 0 184 67 40 32 27 0 223 99 33 64 22 0 223 52 33 128 13 0 224 56 0 112 16 31 152 35 8]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C?@?>O?8??3??O?>??;??/?>_?0<@C8@O @>@A0@') ; yourself); yourself] |
|
1433 |
! |
|
1434 |
||
4166 | 1435 |
redThumbDownSmallIcon |
1436 |
"This resource specification was automatically generated |
|
1437 |
by the ImageEditor of ST/X." |
|
1438 |
||
1439 |
"Do not manually edit this!! If it is corrupted, |
|
1440 |
the ImageEditor may not be able to read the specification." |
|
1441 |
||
1442 |
" |
|
1443 |
self redThumbDownSmallIcon inspect |
|
1444 |
ImageEditor openOnClass:self andSelector:#redThumbDownSmallIcon |
|
1445 |
Icon flushCachedIcons |
|
1446 |
" |
|
1447 |
||
1448 |
<resource: #image> |
|
1449 |
||
1450 |
^Icon |
|
1451 |
constantNamed:#'SystemBrowser class redThumbDownSmallIcon' |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
1452 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@B@@@@@@EV @@AUZ@@@EV C@@U*@@@A@@@@@P@@@@D@@@@A@@@@@@@@ b') ; colorMapFromArray:#[0 0 0 255 0 0 127 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@? C?@O>@?<A?0G>@N@@8@C @L@@@a') ; yourself); yourself] |
4166 | 1453 |
! |
1454 |
||
3813 | 1455 |
removeBreakPointIcon2 |
6115 | 1456 |
^ XPToolbarIconLibrary removeBreakPointIcon2 |
3813 | 1457 |
! |
1458 |
||
3675 | 1459 |
small_methodEmptyInheritedIcon |
1460 |
"This resource specification was automatically generated |
|
1461 |
by the ImageEditor of ST/X." |
|
1462 |
||
1463 |
"Do not manually edit this!! If it is corrupted, |
|
1464 |
the ImageEditor may not be able to read the specification." |
|
1465 |
||
1466 |
" |
|
1467 |
self small_methodEmptyInheritedIcon inspect |
|
1468 |
ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon |
|
1469 |
" |
|
1470 |
||
1471 |
<resource: #image> |
|
1472 |
||
1473 |
^Icon |
|
1474 |
constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon' |
|
1475 |
ifAbsentPut:[(Depth4Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@b') ; yourself); yourself] |
|
1476 |
! |
|
1477 |
||
1478 |
small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1479 |
"This resource specification was automatically generated |
|
1480 |
by the ImageEditor of ST/X." |
|
1481 |
||
1482 |
"Do not manually edit this!! If it is corrupted, |
|
1483 |
the ImageEditor may not be able to read the specification." |
|
1484 |
||
1485 |
" |
|
1486 |
self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1487 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
4130 | 1488 |
Icon flushCachedIcons |
3675 | 1489 |
" |
1490 |
||
1491 |
<resource: #image> |
|
1492 |
||
1493 |
^Icon |
|
1494 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon' |
|
4130 | 1495 |
ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'L1@DLLS,ES@@@@@0@@@*@L#@B@@3@@@a') ; colorMapFromArray:#[0 0 0 255 255 127 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'\GC8>O @>O#8\G@b') ; yourself); yourself] |
3675 | 1496 |
! |
1497 |
||
1498 |
small_methodInheritedFromAboveIcon |
|
1499 |
"This resource specification was automatically generated |
|
1500 |
by the ImageEditor of ST/X." |
|
1501 |
||
1502 |
"Do not manually edit this!! If it is corrupted, |
|
1503 |
the ImageEditor may not be able to read the specification." |
|
1504 |
||
1505 |
" |
|
1506 |
self small_methodInheritedFromAboveIcon inspect |
|
1507 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon |
|
4130 | 1508 |
Icon flushCachedIcons |
3675 | 1509 |
" |
1510 |
||
1511 |
<resource: #image> |
|
1512 |
||
1513 |
^Icon |
|
1514 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon' |
|
4130 | 1515 |
ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'H#HDLHR@EP@@@@@@@BD@IP@!!@B@@IP@a') ; colorMapFromArray:#[0 0 0 255 255 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'\GC8>O @@@@@@@@b') ; yourself); yourself] |
3675 | 1516 |
! |
1517 |
||
1518 |
small_methodRedefinedBelowIcon |
|
1519 |
"This resource specification was automatically generated |
|
1520 |
by the ImageEditor of ST/X." |
|
1521 |
||
1522 |
"Do not manually edit this!! If it is corrupted, |
|
1523 |
the ImageEditor may not be able to read the specification." |
|
1524 |
||
1525 |
" |
|
1526 |
self small_methodRedefinedBelowIcon inspect |
|
1527 |
ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon |
|
4130 | 1528 |
Icon flushCachedIcons |
3675 | 1529 |
" |
1530 |
||
1531 |
<resource: #image> |
|
1532 |
||
1533 |
^Icon |
|
1534 |
constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon' |
|
4130 | 1535 |
ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@D@@@@@@@@@@@@@@@4UBHR@A@@"@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@>O#8\G@b') ; yourself); yourself] |
3675 | 1536 |
! |
1537 |
||
3354 | 1538 |
startableClassIcon |
1539 |
"This resource specification was automatically generated |
|
1540 |
by the ImageEditor of ST/X." |
|
1541 |
||
1542 |
"Do not manually edit this!! If it is corrupted, |
|
1543 |
the ImageEditor may not be able to read the specification." |
|
1544 |
||
1545 |
" |
|
1546 |
self startableClassIcon inspect |
|
1547 |
ImageEditor openOnClass:self andSelector:#startableClassIcon |
|
1548 |
" |
|
1549 |
||
1550 |
<resource: #image> |
|
1551 |
||
1552 |
^Icon |
|
1553 |
constantNamed:#'SystemBrowser class startableClassIcon' |
|
1554 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'**J*NJ*"*#"*!!J(@*!!T*@J(DJ B*DR(@*!!T*NJ(*J B*O2(@*+.*@J*** @b') ; colorMapFromArray:#[0 0 0 127 127 127 255 0 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ @B@@\@C8@O @>@C8@H @>@A0@G@@@a') ; yourself); yourself] |
|
1555 |
||
1556 |
"Created: / 5.11.2001 / 09:50:16 / cg" |
|
1557 |
! |
|
1558 |
||
1559 |
startableVisualAppIcon |
|
1560 |
"This resource specification was automatically generated |
|
1561 |
by the ImageEditor of ST/X." |
|
1562 |
||
1563 |
"Do not manually edit this!! If it is corrupted, |
|
1564 |
the ImageEditor may not be able to read the specification." |
|
1565 |
||
1566 |
" |
|
1567 |
self startableVisualAppIcon inspect |
|
1568 |
ImageEditor openOnClass:self andSelector:#startableVisualAppIcon |
|
1569 |
" |
|
1570 |
||
1571 |
<resource: #image> |
|
1572 |
||
1573 |
^Icon |
|
1574 |
constantNamed:#'SystemBrowser class startableVisualAppIcon' |
|
1575 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@A@P@@@@9&XPE&XP@NY!!C E&D@C&DN; E!!@@9!!@N@AXP@NXP8N@VD@C&DN; E!!@@9!!A&XAXP@NXPY&@VD@C1DVI!!DQ@@@@D"HP@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
|
1576 |
||
1577 |
"Created: / 5.11.2001 / 09:49:00 / cg" |
|
1578 |
! |
|
1579 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1580 |
stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1581 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1582 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1583 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1584 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1585 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1586 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1587 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1588 |
self stopIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1589 |
ImageEditor openOnClass:self andSelector:#stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1590 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1591 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1592 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1593 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1594 |
^Icon |
3813 | 1595 |
constantNamed:#'SystemBrowser class stopIcon' |
1596 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@N@@8@C @N@@P@@@@D@@8@A@@@@@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G0@? G?@?>C?8O? ?>C?8G?@O8@_@@@a') ; yourself); yourself] |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1597 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1598 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1599 |
tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1600 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1601 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1602 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1603 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1604 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1605 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1606 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1607 |
self tabListIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1608 |
ImageEditor openOnClass:self andSelector:#tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1609 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1610 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1611 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1612 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1613 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1614 |
constantNamed:#'SystemBrowser tabListIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1615 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@D3!!QP@@8TT@@N@@J@C***P@:**$AN**)@C***P@:**$@IUUUB @@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?8C?0O?0??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1616 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1617 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1618 |
tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1619 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1620 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1621 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1622 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1623 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1624 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1625 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1626 |
self tableColumnsIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1627 |
ImageEditor openOnClass:self andSelector:#tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1628 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1629 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1630 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1631 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1632 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1633 |
constantNamed:#'SystemBrowser tableColumnsIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1634 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C??? @8(($@L@@AHC"""R@0@@D@NJJI@C@@@P@8(($@IUUU@@@@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1635 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1636 |
|
4150 | 1637 |
testCaseClassIcon |
1638 |
"This resource specification was automatically generated |
|
1639 |
by the ImageEditor of ST/X." |
|
1640 |
||
1641 |
"Do not manually edit this!! If it is corrupted, |
|
1642 |
the ImageEditor may not be able to read the specification." |
|
1643 |
||
1644 |
" |
|
1645 |
self testCaseClassIcon inspect |
|
1646 |
ImageEditor openOnClass:self andSelector:#testCaseClassIcon |
|
1647 |
Icon flushCachedIcons |
|
1648 |
" |
|
1649 |
||
1650 |
<resource: #image> |
|
1651 |
||
1652 |
^Icon |
|
1653 |
constantNamed:#'SystemBrowser class testCaseClassIcon' |
|
1654 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 0 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a') ; yourself); yourself] |
|
1655 |
! |
|
1656 |
||
1657 |
testCaseClassIconFor:cls |
|
4167 | 1658 |
<resource: #programImage> |
1659 |
||
4150 | 1660 |
|lastResult| |
1661 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
1662 |
lastResult := cls lastTestRunResultOrNil. |
4150 | 1663 |
|
1664 |
lastResult == true ifTrue:[ |
|
1665 |
^ self testCasePassedIcon |
|
1666 |
]. |
|
1667 |
lastResult == false ifTrue:[ |
|
1668 |
^ self testCaseFailedIcon |
|
1669 |
]. |
|
1670 |
^ self testCaseUnknownResultIcon |
|
6848 | 1671 |
|
1672 |
"Modified: / 06-08-2006 / 11:14:12 / cg" |
|
4150 | 1673 |
! |
1674 |
||
1675 |
testCaseFailedIcon |
|
4166 | 1676 |
<resource: #programImage> |
1677 |
||
1678 |
"/ ^ self redThumbDownIcon |
|
1679 |
^ self redThumbDownSmallIcon |
|
1680 |
"/ ^ self redCheckIcon |
|
4150 | 1681 |
! |
1682 |
||
1683 |
testCasePassedIcon |
|
4166 | 1684 |
<resource: #programImage> |
1685 |
||
1686 |
"/ ^ self greenThumbUpIcon |
|
1687 |
^ self greenThumbUpSmallIcon |
|
1688 |
"/ ^ self greenCheckIcon |
|
4150 | 1689 |
! |
1690 |
||
1691 |
testCaseUnknownResultIcon |
|
4166 | 1692 |
<resource: #programImage> |
1693 |
||
1694 |
"/ ^ self greyThumbUpIcon |
|
1695 |
^ self greyCheckIcon |
|
4150 | 1696 |
! |
1697 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1698 |
timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1699 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1700 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1701 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1702 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1703 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1704 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1705 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1706 |
self timeIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1707 |
ImageEditor openOnClass:self andSelector:#timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1708 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1709 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1710 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1711 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1712 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1713 |
constantNamed:#'SystemBrowser timeIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1714 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@G@A7@G\@=8C0 O>@_0A?@A0@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A0@_0C? O>A?<G?0_?@?8C? G<@G@@@a') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1715 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1716 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1717 |
traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1718 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1719 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1720 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1721 |
"Do not manually edit this!! If it is corrupted, |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1722 |
the ImageEditor may not be able to read the specification." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1723 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1724 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1725 |
self traceIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1726 |
ImageEditor openOnClass:self andSelector:#traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1727 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1728 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1729 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1730 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1731 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1732 |
constantNamed:#'SystemBrowser traceIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1733 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@>@C8@G@@\@@ @B@@@@@@@@@@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?A?<C? O>@_0A?@C8@O @\@A0@B@@@a') ; yourself); yourself] |
2830 | 1734 |
! |
1735 |
||
1736 |
visualStartableClassIcon |
|
1737 |
"This resource specification was automatically generated |
|
1738 |
by the ImageEditor of ST/X." |
|
1739 |
||
1740 |
"Do not manually edit this!! If it is corrupted, |
|
1741 |
the ImageEditor may not be able to read the specification." |
|
1742 |
||
1743 |
" |
|
1744 |
self visualStartableClassIcon inspect |
|
1745 |
ImageEditor openOnClass:self andSelector:#visualStartableClassIcon |
|
1746 |
" |
|
1747 |
||
1748 |
<resource: #image> |
|
1749 |
||
1750 |
^Icon |
|
2892 | 1751 |
constantNamed:#'SystemBrowser class visualStartableClassIcon' |
3354 | 1752 |
ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'**J*NJ*"*#"*!!J(@*!!T*@J(DJ B*DR(@*!!T*NJ(*J B*O2(@*+.*@J*** @b') ; colorMapFromArray:#[0 0 0 127 127 127 255 0 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ @B@@\@C8@O @>@C8@H @>@A0@G@@@a') ; yourself); yourself] |
1753 |
||
1754 |
"Modified: / 5.11.2001 / 09:49:30 / cg" |
|
2892 | 1755 |
! |
1756 |
||
4275 | 1757 |
warningClassIcon |
1758 |
"This resource specification was automatically generated |
|
1759 |
by the ImageEditor of ST/X." |
|
1760 |
||
1761 |
"Do not manually edit this!! If it is corrupted, |
|
1762 |
the ImageEditor may not be able to read the specification." |
|
1763 |
||
1764 |
" |
|
1765 |
self warningClassIcon inspect |
|
1766 |
ImageEditor openOnClass:self andSelector:#warningClassIcon |
|
1767 |
Icon flushCachedIcons |
|
1768 |
" |
|
1769 |
||
1770 |
<resource: #image> |
|
1771 |
||
1772 |
^Icon |
|
1773 |
constantNamed:#'SystemBrowser class warningClassIcon' |
|
1774 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself] |
|
1775 |
! |
|
1776 |
||
2892 | 1777 |
watchIcon |
1778 |
"This resource specification was automatically generated |
|
1779 |
by the ImageEditor of ST/X." |
|
1780 |
||
1781 |
"Do not manually edit this!! If it is corrupted, |
|
1782 |
the ImageEditor may not be able to read the specification." |
|
1783 |
||
1784 |
" |
|
1785 |
self watchIcon inspect |
|
1786 |
ImageEditor openOnClass:self andSelector:#watchIcon |
|
1787 |
" |
|
1788 |
||
1789 |
<resource: #image> |
|
1790 |
||
1791 |
^Icon |
|
1792 |
constantNamed:#'SystemBrowser class watchIcon' |
|
1793 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 12; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@X@@@X@@@@AE XQY @@XALCDFD@@AD0@CDV@@XAL@@1A @AD0@P@1D@XBI!!DVH A QUPQEEU@@%"EDAVHT@IX]R@%!!5@FQUH@@%U@A&H$@@P"X@') ; colorMapFromArray:#[0 0 51 0 0 60 0 51 102 51 102 153 71 102 145 128 213 221 153 153 204 153 255 255 255 255 255]; mask:((Depth1Image new) width: 13; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'FL@]0C7 O>A?<G?0??#=>O78?_#8>GA0') ; yourself); yourself] |
|
3354 | 1794 |
! |
1795 |
||
4143 | 1796 |
windowClassIcon |
1797 |
"This resource specification was automatically generated |
|
1798 |
by the ImageEditor of ST/X." |
|
1799 |
||
1800 |
"Do not manually edit this!! If it is corrupted, |
|
1801 |
the ImageEditor may not be able to read the specification." |
|
1802 |
||
1803 |
" |
|
1804 |
self windowClassIcon inspect |
|
1805 |
ImageEditor openOnClass:self andSelector:#windowClassIcon |
|
1806 |
Icon flushCachedIcons |
|
1807 |
" |
|
1808 |
||
1809 |
<resource: #image> |
|
1810 |
||
1811 |
^Icon |
|
1812 |
constantNamed:#'SystemBrowser class windowClassIcon' |
|
1813 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@;.;.;.8P@N??????D@C/?????1@@;?????<P@N??????D@C/?????1@@;?????<P@N??????D@@QDQDQDQ@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
|
1814 |
! |
|
1815 |
||
3354 | 1816 |
windowIcon |
1817 |
"This resource specification was automatically generated |
|
1818 |
by the ImageEditor of ST/X." |
|
1819 |
||
1820 |
"Do not manually edit this!! If it is corrupted, |
|
1821 |
the ImageEditor may not be able to read the specification." |
|
1822 |
||
1823 |
" |
|
1824 |
self windowIcon inspect |
|
1825 |
ImageEditor openOnClass:self andSelector:#windowIcon |
|
1826 |
" |
|
1827 |
||
1828 |
<resource: #image> |
|
1829 |
||
1830 |
^Icon |
|
1831 |
constantNamed:#'SystemBrowser class windowIcon' |
|
1832 |
ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;.;.;/@@9&Y&Y&XP@NY&Y&Y&D@C&Y&Y&Y!!@@9&Y&Y&XP@NY&Y&Y&D@C1DQDQDQ@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself] |
|
1833 |
||
1834 |
"Created: / 5.11.2001 / 09:39:03 / cg" |
|
2846 | 1835 |
! ! |
2692 | 1836 |
|
1203 | 1837 |
!SystemBrowser class methodsFor:'interface specs'! |
1838 |
||
1367 | 1839 |
metaSpec |
1840 |
"UIPainter new openOnClass: self andSelector: #metaSpec" |
|
1841 |
||
1842 |
<resource: #canvas> |
|
1843 |
^#(#FullSpec |
|
1844 |
#window: |
|
1845 |
#(#WindowSpec |
|
1846 |
#label: 'Unlabeled Canvas' |
|
1847 |
#bounds: #(#Rectangle 27 249 325 334 ) ) |
|
1848 |
#component: |
|
1849 |
#(#SpecCollection |
|
1850 |
#collection: #( |
|
1851 |
#(#RadioButtonSpec |
|
1852 |
#layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) |
|
1853 |
#name: #instanceSwitch |
|
1854 |
#model: #metaHolder |
|
1855 |
#callbacksSpec: |
|
1856 |
#(#UIEventCallbackSubSpec |
|
1857 |
#requestValueChangeSelector: #changeRequest ) |
|
1858 |
#label: 'instance' |
|
1859 |
#select: false ) |
|
1860 |
#(#RadioButtonSpec |
|
1861 |
#layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) |
|
1862 |
#name: #classSwitch |
|
1863 |
#model: #metaHolder |
|
1864 |
#callbacksSpec: |
|
1865 |
#(#UIEventCallbackSubSpec |
|
1866 |
#requestValueChangeSelector: #changeRequest ) |
|
1867 |
#label: 'class' |
|
1868 |
#select: true ) ) ) ) |
|
1869 |
||
1870 |
"Created: / 30.10.1997 / 19:07:29 / cg" |
|
1871 |
! |
|
1872 |
||
1203 | 1873 |
methodMoveDialogSpec |
1874 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
1875 |
||
1876 |
"do not manually edit this - the painter/builder may not be able to |
|
1877 |
handle the specification if its corrupted." |
|
1878 |
||
1879 |
" |
|
1880 |
UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec |
|
1881 |
SystemBrowser new openDialogInterface:#methodMoveDialogSpec |
|
1882 |
" |
|
1883 |
||
1884 |
<resource: #canvas> |
|
1885 |
||
1886 |
^ |
|
1887 |
||
1888 |
#(#FullSpec |
|
1889 |
#'window:' |
|
1890 |
#(#WindowSpec |
|
1891 |
#'name:' 'uIPainterView' |
|
1892 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1893 |
#'label:' 'move method' |
|
1894 |
#'bounds:' #(#Rectangle 0 0 279 118) |
|
1895 |
) |
|
1896 |
#'component:' |
|
1897 |
#(#SpecCollection |
|
1898 |
#'collection:' |
|
1899 |
#( |
|
1900 |
#(#HorizontalPanelViewSpec |
|
1901 |
#'name:' 'horizontalPanelView' |
|
1902 |
#'layout:' #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0) |
|
1903 |
#'component:' |
|
1904 |
#(#SpecCollection |
|
1905 |
#'collection:' |
|
1906 |
#( |
|
1907 |
#(#ActionButtonSpec |
|
1908 |
#'name:' 'actionButton2' |
|
1909 |
#'label:' 'cancel' |
|
1910 |
#'tabable:' true |
|
1911 |
#'model:' #cancel |
|
1912 |
#'extent:' #(#Point 133 27) |
|
1913 |
) |
|
1914 |
#(#ActionButtonSpec |
|
1915 |
#'name:' 'actionButton1' |
|
1916 |
#'label:' 'move' |
|
1917 |
#'tabable:' true |
|
1918 |
#'isDefault:' true |
|
1919 |
#'model:' #accept |
|
1920 |
#'extent:' #(#Point 134 27) |
|
1921 |
) |
|
1922 |
) |
|
1923 |
) |
|
1924 |
#'level:' 0 |
|
1925 |
#'horizontalLayout:' #fitSpace |
|
1926 |
#'verticalLayout:' #center |
|
1927 |
#'horizontalSpace:' 4 |
|
1928 |
#'verticalSpace:' 4 |
|
1929 |
) |
|
1930 |
#(#LabelSpec |
|
1931 |
#'name:' 'label' |
|
1932 |
#'layout:' #(#LayoutFrame 2 0 2 0 -2 1.0 25 0) |
|
1933 |
#'label:' 'move current method to which class:' |
|
1934 |
#'style:' |
|
1935 |
#(#Font |
|
1936 |
'helvetica' 'medium' |
|
1937 |
'roman' 12 |
|
1938 |
) |
|
1939 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0) |
|
1940 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993) |
|
1941 |
#'adjust:' #left |
|
1942 |
) |
|
1943 |
#(#ComboBoxSpec |
|
1944 |
#'name:' 'comboBox1' |
|
1945 |
#'layout:' #(#LayoutFrame 2 0 29 0 -2 1.0 51 0) |
|
1946 |
#'tabable:' true |
|
1947 |
#'model:' #className |
|
1948 |
#'comboList:' #classList |
|
1949 |
) |
|
1950 |
) |
|
1951 |
) |
|
1952 |
) |
|
1953 |
||
1954 |
"Created: 25.6.1997 / 13:45:20 / cg" |
|
1955 |
"Modified: 25.6.1997 / 13:46:44 / cg" |
|
1956 |
! ! |
|
1957 |
||
4860 | 1958 |
!SystemBrowser class methodsFor:'private-helpers'! |
36 | 1959 |
|
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1960 |
askForPackageChangeFrom:oldPkg to:newPkg |
3626 | 1961 |
|answer box notAgain chk| |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1962 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1963 |
box := OptionBox |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1964 |
title: |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1965 |
('You are about to change a method from another (system-) package. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1966 |
The methods original packageID was ''%1''. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1967 |
If you proceed, the new method will be marked as belonging |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1968 |
to the ''%2'' package (and this warning will not be shown again). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1969 |
If you proceed with ''keep'', the new method will be installed |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1970 |
but the old packageID will be preserved. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1971 |
Otherwise, hit ''cancel'' to leave the code unchanged. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1972 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1973 |
PS: if you disable this check here, it can be reenabled it in the launchers settings-compilation dialog.' |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1974 |
bindWith:(oldPkg allBold) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1975 |
with:(newPkg allBold)) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1976 |
numberOfOptions:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1977 |
|
3476 | 1978 |
box buttonTitles:#('Cancel' 'Keep' 'Continue'). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1979 |
box defaultButtonIndex:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1980 |
box action:[:n | answer := #(#cancel #keep #continue) at:n]. |
5833
5c2a75846afc
Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents:
5802
diff
changeset
|
1981 |
box label:'Method redefinition'; image:(WarningBox iconBitmap). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1982 |
box yPosition:(box formLabel bottom max:box textLabel bottom). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1983 |
box addVerticalSpace:10. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1984 |
chk := box addCheckBox:'Dont show this dialog again (never keep)' on:(notAgain := false asValue). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1985 |
box preferredExtent:(box preferredExtent + (0 @ chk preferredExtent y) + (0@10)). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1986 |
box resize. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1987 |
box showAtPointer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1988 |
box destroy. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1989 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1990 |
(answer ~~ #cancel) ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1991 |
notAgain value ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1992 |
Class catchMethodRedefinitions:false. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1993 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1994 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1995 |
^ answer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1996 |
! |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1997 |
|
203 | 1998 |
showNoneFound |
3244 | 1999 |
self warn:(self classResources string:'None found.'). |
203 | 2000 |
! |
36 | 2001 |
|
203 | 2002 |
showNoneFound:what |
1620 | 2003 |
|rs| |
2004 |
||
2005 |
rs := self classResources. |
|
3244 | 2006 |
self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs. |
203 | 2007 |
! ! |
36 | 2008 |
|
4860 | 2009 |
!SystemBrowser class methodsFor:'private-instance creation'! |
203 | 2010 |
|
2011 |
newWithLabel:aString setupBlock:aBlock |
|
2012 |
"common helper method for all creation methods" |
|
2013 |
||
2014 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current |
|
36 | 2015 |
! |
2016 |
||
203 | 2017 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation |
2018 |
"common helper method for all creation methods" |
|
36 | 2019 |
|
203 | 2020 |
|newBrowser| |
45 | 2021 |
|
203 | 2022 |
newBrowser := BrowserView onDevice:aWorkstation. |
2023 |
newBrowser title:aString. |
|
2024 |
aBlock value:newBrowser. |
|
45 | 2025 |
|
203 | 2026 |
newBrowser open. |
2027 |
^ newBrowser |
|
2028 |
! |
|
45 | 2029 |
|
203 | 2030 |
newWithLabel:aString setupSelector:aSymbol arg:arg |
2031 |
"common helper method for all creation methods" |
|
36 | 2032 |
|
203 | 2033 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current |
36 | 2034 |
! |
2035 |
||
203 | 2036 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation |
2037 |
"common helper method for all creation methods" |
|
2038 |
||
2039 |
|newBrowser| |
|
52 | 2040 |
|
203 | 2041 |
newBrowser := BrowserView onDevice:aWorkstation. |
2042 |
newBrowser title:aString. |
|
2043 |
newBrowser perform:aSymbol with:arg. |
|
2044 |
newBrowser open. |
|
2045 |
^ newBrowser |
|
2046 |
! ! |
|
2047 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2048 |
!SystemBrowser class methodsFor:'special search startup'! |
203 | 2049 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2050 |
allCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2051 |
"return a collection of methods which send aSelector." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2052 |
|
4270 | 2053 |
^ self allCallsOn:aSelectorString in:(Smalltalk allClasses) ignoreCase:false match:false |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2054 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2055 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2056 |
SystemBrowser allCallsOn:#at:put: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2057 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2058 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2059 |
"Created: 24.1.1997 / 19:42:57 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2060 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2061 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2062 |
allCallsOn:aSelectorString in:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2063 |
"return a collection of methods which send aSelector. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2064 |
Methods from classes in aCollectionOfClasses are searched only." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2065 |
|
4270 | 2066 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:false match:false |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2067 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2068 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2069 |
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2070 |
"return a collection of methods which send aSelector. |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2071 |
Methods from classes in aCollectionOfClasses are searched only." |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2072 |
|
4270 | 2073 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2074 |
||
2075 |
" |
|
2076 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
|
2077 |
" |
|
2078 |
||
2079 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
|
2080 |
! |
|
2081 |
||
2082 |
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
2083 |
"return a collection of methods which send aSelector. |
|
2084 |
Methods from classes in aCollectionOfClasses are searched only." |
|
2085 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2086 |
|sel searchBlock classesSearched| |
3471
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
2087 |
|
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
2088 |
aSelectorString size == 0 ifTrue:[ ^ #() ]. |
4270 | 2089 |
doMatch ifFalse:[ |
5090 | 2090 |
ignoreCase ifFalse:[ |
2091 |
sel := aSelectorString asSymbolIfInterned. |
|
2092 |
sel isNil ifTrue:[ |
|
2093 |
^ #() "/ none (no such selector) |
|
2094 |
]. |
|
4270 | 2095 |
]. |
2096 |
]. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2097 |
|
2901 | 2098 |
classesSearched := aCollectionOfClasses. |
4270 | 2099 |
(doMatch and:[aSelectorString includesMatchCharacters]) ifFalse:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2100 |
"/ exclude javaClasses, if selector cannot be a valid java-selector |
4270 | 2101 |
(aSelectorString includes:$() ifFalse:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2102 |
classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not]. |
2846 | 2103 |
]. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2104 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2105 |
|
4270 | 2106 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
4332 | 2107 |
searchBlock isNil ifTrue:[ |
2108 |
^ #() "/ none (no such selector) |
|
2109 |
]. |
|
2901 | 2110 |
^ self allMethodsIn:classesSearched where:searchBlock |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2111 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2112 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2113 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2114 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2115 |
|
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2116 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2117 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2118 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2119 |
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2120 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2121 |
wantInst/wantClass control if instMethods and/or classMethods are to be |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2122 |
considered. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2123 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2124 |
|
2769 | 2125 |
|list activePriority| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2126 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2127 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2128 |
since this may take a long time, lower my priority ... |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2129 |
" |
2769 | 2130 |
activePriority := Processor activePriority. |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
2131 |
Processor activeProcess |
2769 | 2132 |
withPriority:activePriority-1 to:activePriority |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
2133 |
do:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2134 |
|checkedClasses checkBlock detectedMethods| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2135 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2136 |
checkedClasses := IdentitySet new. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2137 |
list := OrderedCollection new. |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2138 |
detectedMethods := IdentitySet new. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2139 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2140 |
checkBlock := [:cls | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2141 |
(checkedClasses includes:cls) ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2142 |
cls isObsolete ifTrue:[ |
2882 | 2143 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2144 |
] ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2145 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2146 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2147 |
"/ care for methods being in multiple classes (should not happen) |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2148 |
(detectedMethods includes:method) ifFalse:[ |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2149 |
list add:method. |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2150 |
detectedMethods add:method |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2151 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2152 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2153 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2154 |
checkedClasses add:cls. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2155 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2156 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2157 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2158 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2159 |
aCollectionOfClasses do:[:aClass | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2160 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2161 |
output disabled - it slows down things too much (when searching for |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2162 |
implementors or senders) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2163 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2164 |
wantInst ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2165 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2166 |
checkBlock value:aClass |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2167 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2168 |
wantClass ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2169 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2170 |
checkBlock value:(aClass class) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2171 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2172 |
Processor yield |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2173 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2174 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2175 |
^ list |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2176 |
|
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2177 |
"Created: / 24.1.1997 / 19:41:12 / cg" |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2178 |
"Modified: / 14.12.1999 / 14:59:02 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2179 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2180 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2181 |
allMethodsIn:aCollectionOfClasses where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2182 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2183 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2184 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2185 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2186 |
allMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2187 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2188 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2189 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2190 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2191 |
"Created: 24.1.1997 / 19:41:49 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2192 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2193 |
|
203 | 2194 |
aproposSearch:aString |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2195 |
"browse all methods, which have aString in their selector." |
203 | 2196 |
|
2197 |
^ self aproposSearch:aString in:(Smalltalk allClasses) |
|
75 | 2198 |
|
52 | 2199 |
! |
2200 |
||
203 | 2201 |
aproposSearch:aString in:aCollectionOfClasses |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2202 |
"browse all methods, which have aString. |
203 | 2203 |
This is relatively slow, since all source must be processed." |
52 | 2204 |
|
203 | 2205 |
|matchString list s searchBlock browser| |
52 | 2206 |
|
203 | 2207 |
matchString := '*' , aString , '*'. |
52 | 2208 |
|
203 | 2209 |
list := OrderedCollection new. |
52 | 2210 |
|
203 | 2211 |
(aString includesMatchCharacters) ifTrue:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2212 |
s := '*' , aString asLowercase , '*'. |
256 | 2213 |
"a matchString" |
2214 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0]. |
|
203 | 2215 |
] ifFalse:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2216 |
searchBlock := [:source | (source findString:aString asLowercase) ~~ 0] |
203 | 2217 |
]. |
52 | 2218 |
|
203 | 2219 |
browser := self browseMethodsIn:aCollectionOfClasses |
256 | 2220 |
where:[:class :method :sel | |
2221 |
|comment| |
|
52 | 2222 |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2223 |
(searchBlock value:sel asLowercase) |
256 | 2224 |
] |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
2225 |
title:(self classResources string:'selectors containing: %1' with:aString). |
52 | 2226 |
|
203 | 2227 |
browser notNil ifTrue:[ |
256 | 2228 |
browser autoSearch:aString |
203 | 2229 |
]. |
2230 |
^ browser |
|
52 | 2231 |
|
2232 |
" |
|
203 | 2233 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses) |
2234 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses) |
|
2235 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses) |
|
2236 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses) |
|
52 | 2237 |
" |
203 | 2238 |
|
256 | 2239 |
"Created: 9.12.1995 / 18:02:36 / cg" |
204
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
2240 |
! |
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
2241 |
|
203 | 2242 |
browseAllCallsOn:aSelectorString |
4490 | 2243 |
"launch a browser for all senders of aSelector. |
2244 |
Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences" |
|
52 | 2245 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2246 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2247 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2248 |
in:(Smalltalk allClasses) |
52 | 2249 |
|
2250 |
" |
|
203 | 2251 |
SystemBrowser browseAllCallsOn:#+ |
52 | 2252 |
" |
256 | 2253 |
|
2254 |
"Created: 9.12.1995 / 18:00:41 / cg" |
|
666 | 2255 |
"Modified: 10.7.1996 / 10:26:15 / cg" |
2256 |
! |
|
2257 |
||
2258 |
browseAllCallsOn:aSelectorString in:aSetOfClasses |
|
2259 |
"launch a browser for all senders of aSelector" |
|
2260 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2261 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2262 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2263 |
in:aSetOfClasses |
4200 | 2264 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
666 | 2265 |
|
2266 |
" |
|
2267 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
|
2268 |
" |
|
2269 |
||
2270 |
"Created: 10.7.1996 / 10:25:49 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2271 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
52 | 2272 |
! |
2273 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2274 |
browseAllCallsOn:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2275 |
"launch a browser for all senders of aSelector" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2276 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2277 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2278 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2279 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2280 |
ignoreCase:ignoreCase |
6476 | 2281 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2282 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2283 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2284 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2285 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2286 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2287 |
"Created: 10.7.1996 / 10:25:49 / cg" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2288 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2289 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2290 |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2291 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
52 | 2292 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
2293 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2294 |
|list list2 browser selWithColon title rs| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2295 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2296 |
title := titleArg. |
4200 | 2297 |
|
4270 | 2298 |
list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
4200 | 2299 |
list isEmpty ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2300 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2301 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2302 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2303 |
list2 := self allCallsOn:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2304 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2305 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2306 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2307 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2308 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2309 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2310 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2311 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2312 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2313 |
(rs string:'\\But I found %1 sends of the "%2" message (with colon).\\Browse those ?' |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2314 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2315 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2316 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2317 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2318 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2319 |
title := title , ':'. |
4200 | 2320 |
]. |
2321 |
||
2322 |
browser := self browseMethods:list title:title. |
|
52 | 2323 |
browser notNil ifTrue:[ |
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2324 |
|s| |
52 | 2325 |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2326 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2327 |
kludge for now, if its a multipart selector, |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2328 |
no easy search is (as yet) possible |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2329 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2330 |
s := aSelectorString. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2331 |
(s includes:$:) ifTrue:[ |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2332 |
s := s copyTo:(s indexOf:$:) |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2333 |
]. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2334 |
browser autoSearch:s |
52 | 2335 |
]. |
2336 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2337 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2338 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2339 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2340 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2341 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2342 |
title:'just a test' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2343 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2344 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2345 |
"Modified: 24.1.1997 / 19:48:54 / cg" |
52 | 2346 |
! |
2347 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2348 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2349 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2350 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2351 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2352 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2353 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2354 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2355 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2356 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2357 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2358 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2359 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2360 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2361 |
title:'just a test' |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2362 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2363 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2364 |
"Modified: 24.1.1997 / 19:48:54 / cg" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2365 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2366 |
|
203 | 2367 |
browseCallsOn:aSelectorString under:aClass |
2368 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
2369 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2370 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2371 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2372 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2373 |
title:(self classResources |
6476 | 2374 |
string:'Senders of: %1 (in and below %2)' |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2375 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2376 |
with:aClass name) |
203 | 2377 |
|
2378 |
" |
|
256 | 2379 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 2380 |
" |
256 | 2381 |
|
2382 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2383 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 2384 |
! |
2385 |
||
2386 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2387 |
"launch a browser for all methods in aClass where the classVar named |
|
2388 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
2389 |
classvar is modified" |
|
2390 |
||
2391 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2392 |
! |
|
2393 |
||
2394 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2395 |
"launch a browser for all methods in aCollectionOfClasses, |
|
2396 |
where the classVar named aString is referenced; |
|
2397 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2398 |
||
2399 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2400 |
! |
|
2401 |
||
2402 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
2403 |
"launch a browser for all methods in aClass and subclasses |
|
2404 |
where the classVar named aString is referenced; |
|
2405 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2406 |
||
2407 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
2408 |
||
2409 |
! |
|
2410 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2411 |
browseForResource:aResourceSymbol containing:item in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2412 |
"launch a browser for all methods which have a particular (or any, ifNil) |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2413 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2414 |
If aKey is nonNil, only methods which have aKey in the (any) resourceSpec |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2415 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2416 |
I.e. to find all methods, which access the styleSheets, use: |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2417 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2418 |
to find methods which access the 'arrowButtonDownForm' styleSheet entry, use: |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2419 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2420 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
2421 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2422 |
|
1356 | 2423 |
"/ search for any resource can be done without looking |
2424 |
"/ at the source ... |
|
2425 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
2426 |
searchBlock := [:class :method :s | method hasResource] |
|
2427 |
] ifFalse:[ |
|
2428 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2429 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2430 |
|
1356 | 2431 |
found := false. |
2432 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2433 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2434 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2435 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2436 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2437 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2438 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2439 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2440 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2441 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2442 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2443 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2444 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2445 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2446 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2447 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2448 |
] |
1356 | 2449 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2450 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2451 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2452 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2453 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2454 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2455 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2456 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2457 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2458 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2459 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2460 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2461 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2462 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2463 |
] |
1356 | 2464 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2465 |
found := item match:val printString |
1356 | 2466 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2467 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2468 |
found := item match:rsrc printString |
1356 | 2469 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2470 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2471 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2472 |
] |
1356 | 2473 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2474 |
]. |
1356 | 2475 |
found |
2476 |
]. |
|
2477 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2478 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2479 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2480 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2481 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2482 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2483 |
browser autoSearch:'resource:' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2484 |
]. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2485 |
^ browser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2486 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2487 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2488 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2489 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2490 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2491 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2492 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2493 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2494 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2495 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2496 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2497 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2498 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2499 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2500 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2501 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2502 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2503 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2504 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2505 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2506 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2507 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2508 |
"Modified: / 22.4.1998 / 10:29:20 / cg" |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2509 |
! |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2510 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2511 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2512 |
"launch a browser for all methods which have a particular (or any, ifNil) |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2513 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2514 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2515 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2516 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2517 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2518 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2519 |
title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2520 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2521 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2522 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2523 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2524 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2525 |
title:'methods accessing styleSheet values' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2526 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2527 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2528 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2529 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2530 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2531 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2532 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2533 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2534 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2535 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2536 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2537 |
title:'methods with a resource' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2538 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2539 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2540 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2541 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2542 |
|
203 | 2543 |
browseForString:aString |
2544 |
"launch a browser for all methods containing a string in their source. |
|
2545 |
This may be slow, since source-code has to be scanned." |
|
2546 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2547 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2548 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2549 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 2550 |
! |
2551 |
||
2552 |
browseForString:aString in:aCollectionOfClasses |
|
2553 |
"launch a browser for all methods in aCollectionOfClasses |
|
2554 |
containing a string in their source. |
|
2555 |
This may be slow, since source-code has to be scanned." |
|
2556 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2557 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2558 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2559 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2560 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2561 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2562 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2563 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2564 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2565 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2566 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2567 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2568 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2569 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2570 |
! |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2571 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2572 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2573 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2574 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2575 |
This may be slow, since source-code has to be scanned." |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2576 |
|
203 | 2577 |
|browser searchBlock title s| |
2578 |
||
6476 | 2579 |
title := self classResources string:'Methods containing: %1' with:aString displayString. |
203 | 2580 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2581 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2582 |
or:[ignoreCase]) ifTrue:[ |
256 | 2583 |
s := '*' , aString , '*'. |
2584 |
"a matchString" |
|
475
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2585 |
searchBlock := [:c :m :sel | |
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2586 |
|src| |
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2587 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2588 |
src isNil ifTrue:[ |
2208
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
2589 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2590 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2591 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2592 |
s match:src ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2593 |
] |
475
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2594 |
] |
203 | 2595 |
] ifFalse:[ |
475
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2596 |
searchBlock := [:c :m :sel | |
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2597 |
|src| |
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2598 |
|
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2599 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2600 |
src isNil ifTrue:[ |
2208
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
2601 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2602 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2603 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2604 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2605 |
] |
475
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2606 |
] |
203 | 2607 |
]. |
2608 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
2609 |
||
2610 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2611 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 2612 |
]. |
2613 |
^ browser |
|
2614 |
||
2615 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2616 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2617 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 2618 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
2619 |
" |
|
2620 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2621 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2622 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 2623 |
! |
2624 |
||
2625 |
browseForSymbol:aSymbol |
|
2626 |
"launch a browser for all methods referencing aSymbol" |
|
2627 |
||
666 | 2628 |
^ self |
2629 |
browseForSymbol:aSymbol |
|
6476 | 2630 |
title:(self classResources string:'Users of: %1' with:aSymbol) |
666 | 2631 |
warnIfNone:true |
256 | 2632 |
|
2633 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 2634 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
2635 |
! |
|
2636 |
||
2637 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
2638 |
"launch a browser for all methods referencing aSymbol" |
|
2639 |
||
2640 |
|browser searchBlock sym| |
|
2641 |
||
2642 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
2643 |
"a matchString" |
|
2644 |
searchBlock := [:c :m :s | |
|
2645 |
(m literalsDetect:[:aLiteral| |
|
2646 |
(aLiteral isMemberOf:Symbol) |
|
2647 |
and:[aSymbol match:aLiteral] |
|
2648 |
] ifNone:nil) notNil |
|
2649 |
]. |
|
2650 |
] ifFalse:[ |
|
2651 |
" |
|
2652 |
can do a faster search |
|
2653 |
" |
|
2654 |
sym := aSymbol asSymbolIfInterned. |
|
2655 |
sym isNil ifTrue:[ |
|
2656 |
self showNoneFound:title. |
|
2657 |
^ nil |
|
2658 |
]. |
|
2659 |
||
2660 |
searchBlock := [:c :m :s | |
|
2661 |
(m literalsDetect:[:aLiteral| |
|
2662 |
(sym == aLiteral) |
|
2663 |
] ifNone:nil) notNil |
|
2664 |
]. |
|
2665 |
]. |
|
2666 |
doWarn ifFalse:[ |
|
2667 |
WarningSignal ignoreIn:[ |
|
2668 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
|
2669 |
] |
|
2670 |
] ifTrue:[ |
|
2671 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
|
2672 |
]. |
|
2673 |
browser notNil ifTrue:[ |
|
2674 |
browser autoSearch:aSymbol |
|
2675 |
]. |
|
2676 |
^ browser |
|
2677 |
||
2678 |
"Modified: 24.6.1996 / 14:39:07 / stefan" |
|
2679 |
"Modified: 30.6.1996 / 16:45:25 / cg" |
|
2680 |
"Created: 10.7.1996 / 10:36:36 / cg" |
|
203 | 2681 |
! |
2682 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2683 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn searchFor:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2684 |
"launch a browser for all methods referencing aSymbol" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2685 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2686 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2687 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2688 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2689 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2690 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2691 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2692 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2693 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2694 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2695 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2696 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2697 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2698 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2699 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2700 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2701 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2702 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2703 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2704 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2705 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2706 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2707 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2708 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2709 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2710 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2711 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2712 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2713 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2714 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2715 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2716 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2717 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2718 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2719 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2720 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2721 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2722 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2723 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2724 |
^ browser |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2725 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2726 |
"Modified: 24.6.1996 / 14:39:07 / stefan" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2727 |
"Modified: 30.6.1996 / 16:45:25 / cg" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2728 |
"Created: 31.10.1996 / 14:57:30 / cg" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2729 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2730 |
|
2409 | 2731 |
browseForSymbol:aSymbol title:title ifNone:actionIfNoneFound searchFor:searchString |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2732 |
"launch a browser for all methods referencing aSymbol" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2733 |
|
203 | 2734 |
|browser searchBlock sym| |
2735 |
||
2736 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
375 | 2737 |
"a matchString" |
2738 |
searchBlock := [:c :m :s | |
|
2439 | 2739 |
m referencesGlobalMatching:aSymbol |
2740 |
"/ (m literalsDetect:[:aLiteral| |
|
2741 |
"/ (aLiteral isMemberOf:Symbol) |
|
2742 |
"/ and:[aSymbol match:aLiteral] |
|
2743 |
"/ ] ifNone:nil) notNil |
|
375 | 2744 |
]. |
203 | 2745 |
] ifFalse:[ |
375 | 2746 |
" |
2747 |
can do a faster search |
|
2748 |
" |
|
2749 |
sym := aSymbol asSymbolIfInterned. |
|
2750 |
sym isNil ifTrue:[ |
|
2409 | 2751 |
actionIfNoneFound value. |
375 | 2752 |
^ nil |
2753 |
]. |
|
203 | 2754 |
|
375 | 2755 |
searchBlock := [:c :m :s | |
2439 | 2756 |
m referencesGlobal:sym |
2757 |
"/ (m literalsDetect:[:aLiteral| |
|
2758 |
"/ (sym == aLiteral) |
|
2759 |
"/ ] ifNone:nil) notNil |
|
375 | 2760 |
]. |
203 | 2761 |
]. |
2409 | 2762 |
|
2763 |
WarningSignal ignoreIn:[ |
|
2764 |
InformationSignal ignoreIn:[ |
|
375 | 2765 |
browser := self browseMethodsWhere:searchBlock title:title. |
2766 |
] |
|
2409 | 2767 |
]. |
2768 |
browser isNil ifTrue:[ |
|
2769 |
actionIfNoneFound value |
|
215
244f3a9b2a60
check for existing class in rename; avoid warnbox if no refs are found after rename
Claus Gittinger <cg@exept.de>
parents:
204
diff
changeset
|
2770 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2771 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2772 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2773 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2774 |
browser autoSearch:searchString |
203 | 2775 |
]. |
2776 |
^ browser |
|
375 | 2777 |
|
2439 | 2778 |
"Modified: / 24.6.1996 / 14:39:07 / stefan" |
2779 |
"Created: / 31.10.1996 / 14:45:08 / cg" |
|
2780 |
"Modified: / 9.11.1999 / 17:04:30 / cg" |
|
203 | 2781 |
! |
2782 |
||
2409 | 2783 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
2784 |
"launch a browser for all methods referencing aSymbol" |
|
2785 |
||
2786 |
^ self |
|
2787 |
browseForSymbol:aSymbol |
|
2788 |
title:title |
|
2789 |
warnIfNone:doWarn |
|
2790 |
searchFor:aSymbol |
|
2791 |
||
2792 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
2793 |
! |
|
2794 |
||
2795 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
2796 |
"launch a browser for all methods referencing aSymbol" |
|
2797 |
||
2414 | 2798 |
|b| |
2799 |
||
2800 |
doWarn ifTrue: [ |
|
4158 | 2801 |
b := [self showNoneFound:title] |
2414 | 2802 |
]. |
2409 | 2803 |
^ self |
2804 |
browseForSymbol:aSymbol |
|
2805 |
title:title |
|
2414 | 2806 |
ifNone:b |
2409 | 2807 |
searchFor:searchString |
2808 |
! |
|
2809 |
||
4158 | 2810 |
browseImplementorsMatching:aSelectorString |
2811 |
"launch a browser for all implementors of aSelector" |
|
2812 |
||
2813 |
^ self |
|
2814 |
browseImplementorsMatching:aSelectorString |
|
2815 |
in:(Smalltalk allClasses) |
|
2816 |
||
2817 |
" |
|
2818 |
SystemBrowser browseImplementorsOf:#+ |
|
2819 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2820 |
" |
|
2821 |
||
2822 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
2823 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
2824 |
! |
|
2825 |
||
2826 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses |
|
2827 |
"launch a browser for all implementors of aSelector" |
|
2828 |
||
2829 |
^ self |
|
2830 |
browseImplementorsMatching:aSelectorString |
|
2831 |
in:aSetOfClasses |
|
2832 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2833 |
||
2834 |
" |
|
2835 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2836 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2837 |
" |
|
2838 |
||
2839 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2840 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
2841 |
! |
|
2842 |
||
2843 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
|
2844 |
"launch a browser for all implementors of aSelector" |
|
2845 |
||
2846 |
^ self |
|
2847 |
browseImplementorsMatching:aSelectorString |
|
2848 |
in:aSetOfClasses |
|
2849 |
ignoreCase:ignoreCase |
|
2850 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2851 |
||
2852 |
" |
|
2853 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2854 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2855 |
" |
|
2856 |
||
2857 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2858 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
|
2859 |
! |
|
2860 |
||
2861 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
2862 |
"launch a browser for all implementors of aSelector in |
|
2863 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2864 |
||
2865 |
|list| |
|
2866 |
||
2867 |
list := self |
|
2868 |
findImplementorsMatching:aSelectorString |
|
2869 |
in:aCollectionOfClasses |
|
2870 |
ignoreCase:ignoreCase. |
|
2871 |
||
2872 |
list size == 0 ifTrue:[ |
|
2873 |
self showNoneFound:title. |
|
2874 |
^ nil |
|
2875 |
]. |
|
2876 |
||
2877 |
^ self browseMethods:list asOrderedCollection title:title |
|
2878 |
||
2879 |
" |
|
2880 |
SystemBrowser browseImplementorsOf:#+ |
|
2881 |
in:(Array with:Number |
|
2882 |
with:Float |
|
2883 |
with:SmallInteger) |
|
2884 |
title:'some implementors of +' |
|
2885 |
||
2886 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2887 |
in:(Array with:Number |
|
2888 |
with:Float |
|
2889 |
with:SmallInteger) |
|
2890 |
title:'some implementors of +' |
|
2891 |
" |
|
2892 |
||
2893 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
2894 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
2895 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
2896 |
! |
|
2897 |
||
2898 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title |
|
2899 |
"launch a browser for all implementors of aSelector in |
|
2900 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2901 |
||
2902 |
^ self |
|
2903 |
browseImplementorsMatching:aSelectorString |
|
2904 |
in:aCollectionOfClasses |
|
2905 |
ignoreCase:false |
|
2906 |
title:title |
|
2907 |
! |
|
2908 |
||
2909 |
browseImplementorsMatching:aSelectorString under:aClass |
|
2910 |
"launch a browser for all implementors of aSelector in aClass |
|
2911 |
and its subclasses" |
|
2912 |
||
2913 |
^ self |
|
2914 |
browseImplementorsMatching:aSelectorString |
|
2915 |
in:(aClass withAllSubclasses) |
|
2916 |
title:(self classResources |
|
2917 |
string:'implementors of: %1 (in and below %2)' |
|
2918 |
with:aSelectorString |
|
2919 |
with:aClass name) |
|
2920 |
||
2921 |
" |
|
2922 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
2923 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
|
2924 |
" |
|
2925 |
||
2926 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
|
2927 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
|
2928 |
! |
|
2929 |
||
52 | 2930 |
browseImplementorsOf:aSelectorString |
2931 |
"launch a browser for all implementors of aSelector" |
|
2932 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2933 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2934 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2935 |
in:(Smalltalk allClasses) |
52 | 2936 |
|
2937 |
" |
|
2938 |
SystemBrowser browseImplementorsOf:#+ |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2939 |
NewSystemBrowser browseImplementorsOf:#+ |
52 | 2940 |
" |
256 | 2941 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2942 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2943 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
666 | 2944 |
! |
2945 |
||
2946 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
2947 |
"launch a browser for all implementors of aSelector" |
|
2948 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2949 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2950 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2951 |
in:aSetOfClasses |
6476 | 2952 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString) |
666 | 2953 |
|
2954 |
" |
|
2955 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2956 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
666 | 2957 |
" |
2958 |
||
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2959 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2960 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
52 | 2961 |
! |
2962 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2963 |
browseImplementorsOf:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2964 |
"launch a browser for all implementors of aSelector" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2965 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2966 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2967 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2968 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2969 |
ignoreCase:ignoreCase |
6476 | 2970 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2971 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2972 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2973 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2974 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2975 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2976 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2977 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2978 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2979 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2980 |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2981 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
36 | 2982 |
"launch a browser for all implementors of aSelector in |
2983 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2984 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2985 |
|list list2 rs selWithColon title| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2986 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2987 |
title := titleArg. |
2642 | 2988 |
list := self |
4158 | 2989 |
findImplementorsOf:aSelectorString |
2642 | 2990 |
in:aCollectionOfClasses |
2991 |
ignoreCase:ignoreCase. |
|
45 | 2992 |
|
2642 | 2993 |
list size == 0 ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2994 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2995 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2996 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2997 |
list2 := self findImplementorsOf:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2998 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2999 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3000 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3001 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3002 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3003 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3004 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3005 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3006 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3007 |
(rs string:'\\But I found %1 implementor(s) of the "%2" message (with colon).\\Browse those ?' |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3008 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3009 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3010 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3011 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3012 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3013 |
title := title , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3014 |
|
36 | 3015 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3016 |
|
270 | 3017 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 3018 |
|
3019 |
" |
|
3020 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 3021 |
in:(Array with:Number |
3022 |
with:Float |
|
3023 |
with:SmallInteger) |
|
3024 |
title:'some implementors of +' |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3025 |
|
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3026 |
NewSystemBrowser browseImplementorsOf:#+ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3027 |
in:(Array with:Number |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3028 |
with:Float |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3029 |
with:SmallInteger) |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3030 |
title:'some implementors of +' |
36 | 3031 |
" |
132 | 3032 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
3033 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
3034 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3035 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
36 | 3036 |
! |
3037 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3038 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3039 |
"launch a browser for all implementors of aSelector in |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3040 |
the classes contained in aCollectionOfClasses and its metaclasses" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3041 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3042 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3043 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3044 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3045 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3046 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3047 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3048 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3049 |
|
52 | 3050 |
browseImplementorsOf:aSelectorString under:aClass |
3051 |
"launch a browser for all implementors of aSelector in aClass |
|
3052 |
and its subclasses" |
|
3053 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3054 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3055 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3056 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3057 |
title:(self classResources |
6476 | 3058 |
string:'Implementors of: %1 (in and below %2)' |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3059 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3060 |
with:aClass name) |
52 | 3061 |
|
3062 |
" |
|
3063 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3064 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
52 | 3065 |
" |
256 | 3066 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3067 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3068 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
52 | 3069 |
! |
3070 |
||
3663 | 3071 |
browseImplementorsOfAny:setOfSelectors |
3072 |
"launch a browser for all implementors of aSelector" |
|
3073 |
||
3074 |
^ self |
|
3075 |
browseImplementorsOfAny:setOfSelectors |
|
3076 |
in:(Smalltalk allClasses) |
|
3077 |
||
3078 |
" |
|
3079 |
SystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3080 |
NewSystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3081 |
" |
|
3082 |
||
3083 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
3084 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
3085 |
! |
|
3086 |
||
3087 |
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses |
|
3088 |
"launch a browser for all implementors of aSelector" |
|
3089 |
||
3090 |
^ self |
|
3091 |
browseImplementorsOfAny:setOfSelectors |
|
3092 |
in:aSetOfClasses |
|
6476 | 3093 |
title:(self classResources string:'Implementors of some') |
3663 | 3094 |
|
3095 |
" |
|
3096 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3097 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3098 |
" |
|
3099 |
||
3100 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3101 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3102 |
! |
|
3103 |
||
3104 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3105 |
"launch a browser for all implementors of aSelector in |
|
3106 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
3107 |
||
3108 |
|list| |
|
3109 |
||
3110 |
list := self |
|
3111 |
findImplementorsOfAny:setOfSelectors |
|
3112 |
in:aCollectionOfClasses |
|
3113 |
ignoreCase:ignoreCase. |
|
3114 |
||
3115 |
list size == 0 ifTrue:[ |
|
3116 |
self showNoneFound:title. |
|
3117 |
^ nil |
|
3118 |
]. |
|
3119 |
||
3120 |
^ self browseMethods:list asOrderedCollection title:title |
|
3121 |
||
3122 |
" |
|
3123 |
SystemBrowser browseImplementorsOf:#+ |
|
3124 |
in:(Array with:Number |
|
3125 |
with:Float |
|
3126 |
with:SmallInteger) |
|
3127 |
title:'some implementors of +' |
|
3128 |
||
3129 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3130 |
in:(Array with:Number |
|
3131 |
with:Float |
|
3132 |
with:SmallInteger) |
|
3133 |
title:'some implementors of +' |
|
3134 |
" |
|
3135 |
||
3136 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3137 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3138 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3139 |
! |
|
3140 |
||
3141 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title |
|
3142 |
"launch a browser for all implementors of aSelector in |
|
3143 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
3144 |
||
3145 |
^ self |
|
3146 |
browseImplementorsOfAny:setOfSelectors |
|
3147 |
in:aCollectionOfClasses |
|
3148 |
ignoreCase:false |
|
3149 |
title:title |
|
3150 |
! |
|
3151 |
||
203 | 3152 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
3153 |
"launch a browser for all methods in aClass where the instVar named |
|
3154 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3155 |
instvar is modified" |
|
45 | 3156 |
|
203 | 3157 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 3158 |
! |
3159 |
||
203 | 3160 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
3161 |
"launch a browser for all methods in aClass where the instVar named |
|
3162 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3163 |
instvar is modified" |
|
52 | 3164 |
|
203 | 3165 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 3166 |
! |
3167 |
||
203 | 3168 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3169 |
"launch a browser for all methods in aClass and subclasses |
|
3170 |
where the instVar named aString is referenced; |
|
3171 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 3172 |
|
203 | 3173 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 3174 |
! |
3175 |
||
3176 |
browseReferendsOf:aGlobalName |
|
3177 |
"launch a browser for all methods referencing a global |
|
1367 | 3178 |
named aGlobalName. The argument may be a symbol, a string or |
3179 |
a matchPattern. |
|
36 | 3180 |
" |
3181 |
||
3182 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
3183 |
||
3184 |
" |
|
3185 |
Browser browseReferendsOf:#Transcript |
|
1367 | 3186 |
Browser browseReferendsOf:'Tr*' |
36 | 3187 |
" |
75 | 3188 |
|
1367 | 3189 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 3190 |
! |
3191 |
||
2409 | 3192 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
3193 |
"launch a browser for all methods referencing a global |
|
3194 |
named aGlobalName. |
|
3195 |
" |
|
3196 |
||
3197 |
^ self |
|
3198 |
browseReferendsOf:aGlobalName |
|
6476 | 3199 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
2409 | 3200 |
ifNone:actionIfNone |
3201 |
||
3202 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
3203 |
! |
|
3204 |
||
666 | 3205 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
3206 |
"launch a browser for all methods referencing a global |
|
3207 |
named aGlobalName. |
|
3208 |
" |
|
3209 |
||
3210 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
3211 |
||
3212 |
" |
|
3213 |
Browser browseReferendsOf:#Transcript |
|
3214 |
" |
|
3215 |
||
3216 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
3217 |
! |
|
3218 |
||
3219 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
3220 |
"launch a browser for all methods referencing a global |
|
3221 |
named aGlobalName. |
|
3222 |
" |
|
3223 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3224 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3225 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3226 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3227 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3228 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3229 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3230 |
|
666 | 3231 |
^ self browseForSymbol:aGlobalName |
3232 |
in:aSetOfClasses |
|
6476 | 3233 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
666 | 3234 |
warnIfNone:doWarn |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3235 |
searchFor:globalsPlainName |
666 | 3236 |
|
3237 |
"Created: 10.7.1996 / 10:37:02 / cg" |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3238 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 3239 |
! |
3240 |
||
2409 | 3241 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
203 | 3242 |
"launch a browser for all methods referencing a global |
3243 |
named aGlobalName. |
|
3244 |
" |
|
3245 |
||
2828 | 3246 |
|globalsPlainName idx searchBlock |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3247 |
sym browser matchingGlobalNames| |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3248 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3249 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3250 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
1367 | 3251 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
3252 |
(globalsPlainName size == 0 |
|
3253 |
or:[globalsPlainName = '*']) ifTrue:[ |
|
3254 |
globalsPlainName := aGlobalName |
|
3255 |
] |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3256 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3257 |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3258 |
matchingGlobalNames := OrderedCollection new. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3259 |
|
3125 | 3260 |
(sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3261 |
matchingGlobalNames add:sym. |
3125 | 3262 |
searchBlock := [:cls :mthd :sel | |mSource| |
3263 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
3264 |
mthd isLazyMethod ifTrue:[ |
|
3265 |
mSource := mthd source. |
|
3266 |
(mSource notNil |
|
3267 |
and:[(mSource includesString:sym) |
|
3268 |
and:[mthd usedGlobals includes:sym]]) |
|
3269 |
] ifFalse:[ |
|
3270 |
((mthd refersToLiteral:sym) |
|
3271 |
and:[mthd usedGlobals includes:sym]) |
|
3272 |
] |
|
3273 |
] |
|
3274 |
] ifFalse:[ |
|
2828 | 3275 |
aGlobalName includesMatchCharacters ifFalse:[ |
3276 |
actionIfNone value. |
|
3277 |
^ nil |
|
3278 |
]. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3279 |
searchBlock := [:cls :mthd :sel | |mSource usedGlobals global| |
2828 | 3280 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
3281 |
mthd isLazyMethod ifTrue:[ |
|
3282 |
mSource := mthd source. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3283 |
mSource notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3284 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3285 |
] |
2828 | 3286 |
] ifFalse:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3287 |
(mthd literals contains:[:lit | aGlobalName match:lit]) ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3288 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3289 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3290 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3291 |
usedGlobals notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3292 |
global := usedGlobals detect:[:lit | aGlobalName match:lit] ifNone:nil. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3293 |
global notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3294 |
matchingGlobalNames add:global. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3295 |
] |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3296 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3297 |
global notNil |
2828 | 3298 |
] |
3299 |
]. |
|
3780 | 3300 |
"/ WarningSignal ignoreIn:[ |
3301 |
"/ InformationSignal ignoreIn:[ |
|
3302 |
browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil]. |
|
3303 |
"/ ]. |
|
3304 |
"/ ]. |
|
2828 | 3305 |
browser isNil ifTrue:[ |
3306 |
actionIfNone value |
|
3307 |
] ifFalse:[ |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3308 |
browser autoSearchVariables:matchingGlobalNames readers:true writers:true. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3309 |
"/ browser autoSearch:globalsPlainName. |
2828 | 3310 |
]. |
3311 |
^ browser |
|
2409 | 3312 |
! |
3313 |
||
3314 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
3315 |
"launch a browser for all methods referencing a global |
|
3316 |
named aGlobalName. |
|
3317 |
" |
|
3318 |
||
2414 | 3319 |
|b| |
3320 |
||
3321 |
doWarn ifTrue: [ |
|
4158 | 3322 |
b := [self showNoneFound:title] |
2414 | 3323 |
]. |
3324 |
||
2409 | 3325 |
^ self |
3326 |
browseReferendsOf:aGlobalName |
|
3327 |
title:title |
|
2414 | 3328 |
ifNone:b |
2409 | 3329 |
|
1367 | 3330 |
! |
3331 |
||
3332 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
3333 |
"launch a browser for all methods referencing a global |
|
3334 |
named aGlobalName. |
|
3335 |
" |
|
3336 |
||
3337 |
^ self |
|
3338 |
browseReferendsOf:aGlobalName |
|
6476 | 3339 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
1367 | 3340 |
warnIfNone:doWarn |
3341 |
||
3342 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 3343 |
! |
3344 |
||
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3345 |
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3346 |
"launch a browser for all methods referencing an unbound global. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3347 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3348 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3349 |
|globalsPlainName searchBlock browser| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3350 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3351 |
searchBlock := [:cls :mthd :sel | |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3352 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3353 |
|mSource globals potentialNames| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3354 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3355 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3356 |
mthd isLazyMethod ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3357 |
mSource := mthd source. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3358 |
mSource notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3359 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3360 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3361 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3362 |
"/ try hard to avoid the usedGlobals - its expensive |
6640 | 3363 |
potentialNames := mthd literals select:[:lit | lit isSymbol and:[lit size > 0 and:[lit isUppercaseFirst]]]. |
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3364 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3365 |
potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3366 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3367 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3368 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3369 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3370 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3371 |
globals notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3372 |
globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3373 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3374 |
false |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3375 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3376 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3377 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3378 |
browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3379 |
browser isNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3380 |
actionIfNone value |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3381 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3382 |
browser autoSearch:globalsPlainName |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3383 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3384 |
^ browser |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3385 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3386 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3387 |
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3388 |
"launch a browser for all methods referencing an unbound global. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3389 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3390 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3391 |
|b| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3392 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3393 |
doWarn ifTrue: [ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3394 |
b := [self showNoneFound:title] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3395 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3396 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3397 |
^ self |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3398 |
browseReferendsOfUnboundGlobalsWithTitle:title |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3399 |
ifNone:b |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3400 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3401 |
|
203 | 3402 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
3403 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3404 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3405 |
instvar is modified" |
|
3406 |
||
3407 |
|title| |
|
3408 |
||
3409 |
modsOnly ifTrue:[ |
|
6476 | 3410 |
title := 'Modifications of: %1' |
203 | 3411 |
] ifFalse:[ |
6476 | 3412 |
title := 'References to: %1 ' |
203 | 3413 |
]. |
3414 |
^ self |
|
256 | 3415 |
browseRefsTo:aString |
3416 |
classVars:classVars |
|
3417 |
in:aCollectionOfClasses |
|
3418 |
modificationsOnly:modsOnly |
|
3419 |
title:(self classResources string:title with:aString) |
|
3420 |
||
3421 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
3422 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 3423 |
! |
3424 |
||
3425 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3426 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3427 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3428 |
instvar is modified" |
|
3429 |
||
3430 |
|filter browser pattern| |
|
3431 |
||
3432 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 3433 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 3434 |
|
3435 |
browser notNil ifTrue:[ |
|
2677 | 3436 |
modsOnly ifTrue:[ |
3437 |
pattern := varName , ' :=' |
|
3438 |
] ifFalse:[ |
|
3439 |
pattern := varName |
|
3440 |
]. |
|
3441 |
browser autoSearch:pattern |
|
203 | 3442 |
]. |
3443 |
^ browser |
|
3444 |
! |
|
3445 |
||
3407 | 3446 |
browseSendersOf:aSelectorString |
3447 |
"launch a browser for all senders of aSelector" |
|
3448 |
||
3449 |
^ self browseAllCallsOn:aSelectorString |
|
3450 |
||
3451 |
" |
|
3452 |
SystemBrowser browseSendersOf:#+ |
|
3453 |
" |
|
3454 |
||
3455 |
"Modified: / 10.7.1996 / 10:26:15 / cg" |
|
3456 |
"Created: / 13.11.2001 / 13:52:12 / cg" |
|
3457 |
! |
|
3458 |
||
256 | 3459 |
browseSuperCallsIn:aCollectionOfClasses title:title |
3460 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
3461 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
3462 |
|browser searchBlock| |
256 | 3463 |
|
3464 |
searchBlock := [:class :method :s | |
|
504 | 3465 |
|src parser| |
256 | 3466 |
|
504 | 3467 |
src := method source. |
2208
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
3468 |
(src notNil and:[src findString:'super']) ~~ 0 ifTrue:[ |
504 | 3469 |
parser := Parser |
2208
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
3470 |
parseMethod:src |
504 | 3471 |
in:class |
3472 |
ignoreErrors:true |
|
3473 |
ignoreWarnings:true. |
|
3474 |
||
3475 |
parser notNil and:[parser usesSuper] |
|
3476 |
] ifFalse:[ |
|
3477 |
false |
|
3478 |
] |
|
256 | 3479 |
]. |
3480 |
||
3481 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 3482 |
where:searchBlock |
3483 |
title:title. |
|
256 | 3484 |
|
3485 |
browser notNil ifTrue:[ |
|
504 | 3486 |
browser autoSearch:'super' |
256 | 3487 |
]. |
3488 |
^ browser |
|
3489 |
||
504 | 3490 |
" |
3491 |
SystemBrowser |
|
3492 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
3493 |
title:'superSends in SortedCollection' |
|
3494 |
" |
|
3495 |
||
256 | 3496 |
"Created: 23.11.1995 / 14:08:55 / cg" |
504 | 3497 |
"Modified: 24.4.1996 / 13:25:31 / cg" |
256 | 3498 |
! |
3499 |
||
3500 |
browseSuperCallsUnder:aClass |
|
3501 |
"launch a browser for all supersends in aClass and subclasses" |
|
3502 |
||
3503 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
6476 | 3504 |
title:(self classResources string:'Supersends (in and below %1)' with:aClass name) |
256 | 3505 |
|
3506 |
" |
|
3507 |
SystemBrowser browseSuperCallsUnder:Number |
|
3508 |
" |
|
3509 |
||
3510 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
3511 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
3512 |
! |
|
3513 |
||
52 | 3514 |
browseUsesOf:aClass |
3515 |
|dict owners offsets |
|
3516 |
sz "{ Class: SmallInteger }" |
|
3517 |
n "{ Class: SmallInteger }" |
|
3518 |
removeSet newDict| |
|
3519 |
||
3520 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
3521 |
||
3522 |
" |
|
3523 |
collect set of offsets in dict; key is class |
|
3524 |
" |
|
3525 |
dict := IdentityDictionary new. |
|
3526 |
owners do:[:someObject | |
|
4158 | 3527 |
|cls create| |
3528 |
||
3529 |
someObject isContext ifFalse:[ |
|
3530 |
" |
|
3531 |
someObject refers to an instance of aClass; |
|
3532 |
find out, which instVar(s) |
|
3533 |
" |
|
3534 |
cls := someObject class. |
|
3535 |
cls ~~ Array ifTrue:[ |
|
3536 |
n := cls instSize. |
|
3537 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
3538 |
||
3539 |
1 to:n do:[:i | |
|
3540 |
|ref| |
|
3541 |
||
3542 |
ref := someObject instVarAt:i. |
|
3543 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3544 |
offsets := dict at:cls ifAbsent:create. |
|
3545 |
offsets add:i. |
|
3546 |
] |
|
3547 |
]. |
|
3548 |
cls isVariable ifTrue:[ |
|
3549 |
cls isPointers ifTrue:[ |
|
3550 |
| idx "{ Class: SmallInteger }" | |
|
3551 |
||
3552 |
sz := someObject basicSize. |
|
3553 |
idx := 1. |
|
3554 |
[idx <= sz] whileTrue:[ |
|
3555 |
|ref| |
|
3556 |
||
3557 |
ref := someObject basicAt:idx. |
|
3558 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3559 |
offsets := dict at:cls ifAbsent:create. |
|
3560 |
offsets add:0. |
|
3561 |
idx := sz |
|
3562 |
]. |
|
3563 |
idx := idx + 1 |
|
3564 |
] |
|
3565 |
] |
|
3566 |
] |
|
3567 |
] |
|
3568 |
] |
|
52 | 3569 |
]. |
3570 |
||
3571 |
" |
|
3572 |
merge with superclass refs |
|
3573 |
" |
|
3574 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3575 |
cls allSuperclasses do:[:aSuperclass | |
3576 |
|superSet| |
|
3577 |
||
3578 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
3579 |
superSet notNil ifTrue:[ |
|
3580 |
|removeSet| |
|
3581 |
||
3582 |
superSet := dict at:aSuperclass. |
|
3583 |
removeSet := Set new. |
|
3584 |
set do:[:offset | |
|
3585 |
(superSet includes:offset) ifTrue:[ |
|
3586 |
removeSet add:offset |
|
3587 |
] |
|
3588 |
]. |
|
3589 |
set removeAll:removeSet |
|
3590 |
] |
|
3591 |
] |
|
52 | 3592 |
]. |
3593 |
||
3594 |
" |
|
3595 |
remove empty ones |
|
3596 |
" |
|
3597 |
removeSet := Set new. |
|
3598 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3599 |
set isEmpty ifTrue:[ |
3600 |
removeSet add:cls |
|
3601 |
] |
|
52 | 3602 |
]. |
3603 |
removeSet do:[:cls | |
|
4158 | 3604 |
dict removeKey:cls |
52 | 3605 |
]. |
3606 |
||
3607 |
" |
|
3608 |
replace the indices by real names |
|
3609 |
" |
|
3610 |
newDict := IdentityDictionary new. |
|
3611 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3612 |
|newSet names| |
3613 |
||
3614 |
names := cls allInstVarNames. |
|
3615 |
newSet := set collect:[:index | |
|
3616 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
3617 |
]. |
|
3618 |
newDict at:cls put:newSet |
|
52 | 3619 |
]. |
3620 |
||
3621 |
newDict inspect |
|
3622 |
||
75 | 3623 |
|
52 | 3624 |
! |
3625 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3626 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3627 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3628 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3629 |
|searchBlock| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3630 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3631 |
searchBlock := [:c :m :s | |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3632 |
|src result parser vars needMatch| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3633 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3634 |
needMatch := varName includesMatchCharacters. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3635 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3636 |
src := m source. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3637 |
src isNil ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3638 |
result := false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3639 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3640 |
needMatch ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3641 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3642 |
before doing a slow parse, quickly scan the |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3643 |
methods source for the variables name ... |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3644 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3645 |
result := (src findString:varName) ~~ 0. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3646 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3647 |
result := true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3648 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3649 |
result ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3650 |
result := false. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3651 |
parser := Parser |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3652 |
parseMethod:src |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3653 |
in:c |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3654 |
ignoreErrors:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3655 |
ignoreWarnings:true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3656 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3657 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3658 |
classVars ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3659 |
accessType == #read ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3660 |
vars := parser readInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3661 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3662 |
accessType == #write ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3663 |
vars := parser modifiedInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3664 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3665 |
vars := parser usedInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3666 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3667 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3668 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3669 |
accessType == #read ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3670 |
vars := parser readClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3671 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3672 |
accessType == #write ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3673 |
vars := parser modifiedClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3674 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3675 |
vars := parser usedClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3676 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3677 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3678 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3679 |
vars size > 0 ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3680 |
needMatch ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3681 |
vars do:[:cv | |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3682 |
(varName match:cv) ifTrue:[result := true] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3683 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3684 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3685 |
result := vars includes:varName |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3686 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3687 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3688 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3689 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3690 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3691 |
Processor yield. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3692 |
result |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3693 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3694 |
^ searchBlock |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3695 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3696 |
"Modified: 19.6.1997 / 18:27:57 / cg" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3697 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3698 |
|
203 | 3699 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
3700 |
"return a searchblock for variable references" |
|
3701 |
||
3702 |
|searchBlock| |
|
53 | 3703 |
|
203 | 3704 |
searchBlock := [:c :m :s | |
504 | 3705 |
|src result parser vars needMatch| |
3706 |
||
3707 |
needMatch := varName includesMatchCharacters. |
|
36 | 3708 |
|
504 | 3709 |
src := m source. |
3710 |
src isNil ifTrue:[ |
|
3711 |
result := false |
|
3712 |
] ifFalse:[ |
|
3713 |
needMatch ifFalse:[ |
|
3714 |
" |
|
3715 |
before doing a slow parse, quickly scan the |
|
3716 |
methods source for the variables name ... |
|
3717 |
" |
|
3718 |
result := (src findString:varName) ~~ 0. |
|
3719 |
] ifTrue:[ |
|
3720 |
result := true. |
|
3721 |
]. |
|
3722 |
result ifTrue:[ |
|
3723 |
result := false. |
|
3724 |
parser := Parser |
|
3725 |
parseMethod:src |
|
3726 |
in:c |
|
3727 |
ignoreErrors:true |
|
3728 |
ignoreWarnings:true. |
|
36 | 3729 |
|
504 | 3730 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
3731 |
classVars ifFalse:[ |
|
3732 |
modsOnly ifTrue:[ |
|
3733 |
vars := parser modifiedInstVars |
|
3734 |
] ifFalse:[ |
|
3735 |
vars := parser usedInstVars |
|
3736 |
]. |
|
3737 |
] ifTrue:[ |
|
3738 |
modsOnly ifTrue:[ |
|
3739 |
vars := parser modifiedClassVars |
|
3740 |
] ifFalse:[ |
|
3741 |
vars := parser usedClassVars |
|
3742 |
]. |
|
3743 |
]. |
|
1190 | 3744 |
vars size > 0 ifTrue:[ |
504 | 3745 |
needMatch ifTrue:[ |
3746 |
vars do:[:cv | |
|
3747 |
(varName match:cv) ifTrue:[result := true] |
|
3748 |
] |
|
3749 |
] ifFalse:[ |
|
3750 |
result := vars includes:varName |
|
3751 |
] |
|
3752 |
] |
|
3753 |
]. |
|
3754 |
]. |
|
3755 |
]. |
|
3756 |
Processor yield. |
|
3757 |
result |
|
36 | 3758 |
]. |
203 | 3759 |
^ searchBlock |
504 | 3760 |
|
1190 | 3761 |
"Modified: 19.6.1997 / 18:27:57 / cg" |
2642 | 3762 |
! |
3763 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3764 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3765 |
"return a collection of all methods in aCollectionOfClasses containing any resource." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3766 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3767 |
^ self findMethodsIn:aCollectionOfClasses where:[:c :m :sel | m hasResource ]. |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3768 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3769 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3770 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3771 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3772 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3773 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3774 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3775 |
"return all methods in aCollectionOfClasses where the classVar named |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3776 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3777 |
if modsOnly is true, browse only methods where the classvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3778 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3779 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3780 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3781 |
|
2677 | 3782 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 3783 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 3784 |
aString is referenced; |
3785 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3786 |
||
3787 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3788 |
! |
|
3789 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3790 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3791 |
"return all methods in aClass where the classVar named |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3792 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3793 |
if modsOnly is true, browse only methods where the classvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3794 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3795 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3796 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3797 |
|
2728 | 3798 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
3799 |
"return all methods in aClass where the classVar named |
|
3800 |
aString is referenced; |
|
3801 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3802 |
||
3803 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
3804 |
! |
|
3805 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3806 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3807 |
"return all methods in aClass and subclasses |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3808 |
where the classVar named aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3809 |
if modsOnly is true, browse only methods where the classvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3810 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3811 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3812 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3813 |
|
2677 | 3814 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
3815 |
"return all methods in aClass and subclasses |
|
3816 |
where the classVar named aString is referenced; |
|
3817 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3818 |
||
3819 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3820 |
||
3821 |
! |
|
3822 |
||
5094 | 3823 |
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
5243 | 3824 |
"return a collection of all methods in aCollectionOfClasses |
5094 | 3825 |
containing a matching piece of code. |
3826 |
This may be slow, since source-code has to be scanned." |
|
3827 |
||
3828 |
|searchBlock| |
|
3829 |
||
3830 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
5226 | 3831 |
searchBlock isNil ifTrue:[ ^ nil]. |
5094 | 3832 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
3833 |
! |
|
3834 |
||
5243 | 3835 |
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod |
3836 |
"return a collection of all methods in aCollectionOfMethods |
|
3837 |
containing a matching piece of code." |
|
3838 |
||
3839 |
|searchBlock| |
|
3840 |
||
3841 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
3842 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
3843 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
3844 |
! |
|
3845 |
||
3314 | 3846 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3847 |
"return a collection of all help-spec methods in aCollectionOfClasses |
|
3848 |
containing a string in their source. |
|
3849 |
This may be slow, since source-code has to be scanned." |
|
3850 |
||
3851 |
^ self findSpecMethodsFor:#help withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
|
3852 |
! |
|
3853 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3854 |
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
3675 | 3855 |
"search for all implementors of aSelector in |
3856 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3857 |
Return a collection of methods" |
|
3858 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3859 |
|list compare testST testJava lcSelector| |
3675 | 3860 |
|
3861 |
list := IdentitySet new. |
|
6051 | 3862 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
3863 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3864 |
doMatch ifTrue:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3865 |
compare := [:sel :search | sel match:search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3866 |
] ifFalse:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3867 |
compare := [:sel :search | sel = search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3868 |
]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3869 |
|
3675 | 3870 |
ignoreCase == true ifTrue:[ |
3871 |
lcSelector := aSelectorMatchString asLowercase. |
|
3872 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3873 |
testST := [:aSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3874 |
testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ]. |
3675 | 3875 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3876 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3877 |
testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
3675 | 3878 |
]. |
3879 |
||
3880 |
aCollectionOfClasses do:[:aClass | |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3881 |
|testBlock srchBlock| |
3675 | 3882 |
|
3883 |
aClass isObsolete ifFalse:[ |
|
3884 |
aClass isJavaClass ifTrue:[ |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3885 |
testBlock := testJava |
3675 | 3886 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3887 |
testBlock := testST |
3675 | 3888 |
]. |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3889 |
srchBlock := [:sel :mthd | (testBlock value:sel value:mthd) ifTrue:[ list add:mthd]]. |
3675 | 3890 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
3891 |
aClass isMeta ifFalse:[ |
|
3892 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
3893 |
] |
|
3894 |
] |
|
3895 |
]. |
|
3896 |
||
3897 |
^ list |
|
3898 |
||
3899 |
" |
|
3900 |
SystemBrowser findImplementorsOf:#+ |
|
3901 |
in:(Array with:Number |
|
3902 |
with:Float |
|
3903 |
with:SmallInteger) |
|
3904 |
" |
|
3905 |
! |
|
3906 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3907 |
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3908 |
"search for all implementors of aSelector in |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3909 |
the classes contained in aCollectionOfClasses and its metaclasses. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3910 |
Return a collection of methods" |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3911 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3912 |
|list compare testST testJava lcSelector| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3913 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3914 |
list := IdentitySet new. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3915 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3916 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3917 |
doMatch ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3918 |
compare := [:sel :search | sel match:search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3919 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3920 |
compare := [:sel :search | sel = search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3921 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3922 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3923 |
ignoreCase == true ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3924 |
lcSelector := aSelectorMatchString asLowercase. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3925 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3926 |
testST := [:aSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3927 |
testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3928 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3929 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3930 |
testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3931 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3932 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3933 |
aCollectionOfMethods do:[:eachMethod | |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3934 |
|cls sel testBlock| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3935 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3936 |
cls := eachMethod mclass. |
7066 | 3937 |
(cls isNil or:[cls isObsolete]) ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3938 |
cls isJavaClass ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3939 |
testBlock := testJava |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3940 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3941 |
testBlock := testST |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3942 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3943 |
sel := eachMethod selector. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3944 |
(testBlock value:sel value:eachMethod) ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3945 |
list add:eachMethod |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3946 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3947 |
] |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3948 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3949 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3950 |
^ list |
7066 | 3951 |
|
3952 |
"Modified: / 29-08-2006 / 14:33:42 / cg" |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3953 |
! |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3954 |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3955 |
findImplementorsMatching:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3956 |
"search for all implementors of aSelector in |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3957 |
the classes contained in aCollectionOfClasses and its metaclasses. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3958 |
Return a collection of methods" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3959 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3960 |
^ self findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3961 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3962 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3963 |
SystemBrowser findImplementorsOf:#+ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3964 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3965 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3966 |
with:SmallInteger) |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3967 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3968 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3969 |
|
3675 | 3970 |
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
3971 |
"search for all implementors of any in aCollectionOfSelectors in |
|
3972 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3973 |
Return a collection of methods. |
|
3974 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
3975 |
||
6052 | 3976 |
^ aCollectionOfSelectors |
3977 |
collectAll:[:eachSelector | |
|
3978 |
self findImplementorsMatching:eachSelector |
|
3979 |
in:aCollectionOfClasses |
|
3980 |
ignoreCase:ignoreCase. |
|
3981 |
]. |
|
3982 |
||
3983 |
"/ |implementors| |
|
3984 |
"/ |
|
6051 | 3985 |
"/ implementors := IdentitySet new. |
3986 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
3987 |
"/ implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
3988 |
"/ ]. |
|
6052 | 3989 |
"/ ^ implementors |
6051 | 3990 |
|
3991 |
" |
|
3992 |
self |
|
3993 |
findImplementorsMatchingAny:#( 'at*:' '*size') |
|
3994 |
in:(Smalltalk allClasses) |
|
3995 |
ignoreCase:true |
|
3996 |
" |
|
3675 | 3997 |
! |
3998 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3999 |
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
2642 | 4000 |
"search for all implementors of aSelector in |
4001 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4002 |
Return a collection of methods" |
|
4003 |
||
6480 | 4004 |
^ self |
4005 |
findImplementors:aSelectorMatchString |
|
4006 |
in:aCollectionOfClasses |
|
4007 |
ignoreCase:ignoreCase |
|
4008 |
match:false |
|
2642 | 4009 |
|
4010 |
" |
|
4011 |
SystemBrowser findImplementorsOf:#+ |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4012 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4013 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4014 |
with:SmallInteger) |
2642 | 4015 |
" |
4016 |
! |
|
4017 |
||
2811 | 4018 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4019 |
"search for all implementors of any in aCollectionOfSelectors in |
|
4020 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4021 |
Return a collection of methods. |
|
4022 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4023 |
||
6052 | 4024 |
^ aCollectionOfSelectors |
4025 |
collectAll:[:eachSelector | |
|
4026 |
self findImplementorsOf:eachSelector |
|
4027 |
in:aCollectionOfClasses |
|
4028 |
ignoreCase:ignoreCase. |
|
4029 |
]. |
|
4030 |
||
4031 |
"/ |implementors| |
|
4032 |
"/ |
|
4033 |
"/ implementors := IdentitySet new. |
|
4034 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4035 |
"/ implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
4036 |
"/ ]. |
|
4037 |
"/ ^ implementors |
|
2811 | 4038 |
! |
4039 |
||
2741 | 4040 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
4041 |
"return all methods in aCollectionOfClasses where the instVar named |
|
4042 |
aString is referenced; |
|
4043 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4044 |
||
4045 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
4046 |
! |
|
4047 |
||
2677 | 4048 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 4049 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 4050 |
aString is referenced; if modsOnly is true, browse only methods where the |
4051 |
instvar is modified" |
|
4052 |
||
4053 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
4054 |
! |
|
4055 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4056 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4057 |
"return all methods in aClass where the instVar named |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4058 |
aString is referenced; if modsOnly is true, browse only methods where the |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4059 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4060 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4061 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4062 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4063 |
|
2728 | 4064 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
4065 |
"return all methods in aClass where the instVar named |
|
4066 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
4067 |
instvar is modified" |
|
4068 |
||
4069 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
4070 |
! |
|
4071 |
||
2741 | 4072 |
findInstRefsTo:aString under:aClass access:accessType |
4073 |
"return all methods in aClass and subclasses |
|
4074 |
where the classVar named aString is referenced; |
|
4075 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4076 |
||
4077 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
4078 |
! |
|
4079 |
||
2677 | 4080 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
4081 |
"return all methods in aClass and subclasses |
|
4082 |
where the instVar named aString is referenced; |
|
4083 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4084 |
||
4085 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
4086 |
! |
|
4087 |
||
3314 | 4088 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
4089 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
|
4090 |
containing a string in their source. |
|
4091 |
This may be slow, since source-code has to be scanned." |
|
4092 |
||
4093 |
^ self findSpecMethodsFor:#menu withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
|
4094 |
! |
|
4095 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4096 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4097 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4098 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4099 |
if modsOnly is true, browse only methods where the instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4100 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4101 |
|filter| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4102 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4103 |
filter := self filterToSearchRefsTo:varName classVars:classVars access:accessType. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4104 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4105 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4106 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4107 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4108 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4109 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4110 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4111 |
modificationsOnly:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4112 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4113 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4114 |
|
2677 | 4115 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4116 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
4117 |
varName is referenced; |
|
4118 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4119 |
||
4120 |
|filter| |
|
4121 |
||
4122 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
4123 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
4124 |
||
4125 |
" |
|
4126 |
self |
|
4127 |
findRefsTo:'x' |
|
4128 |
classVars:false |
|
4129 |
in:(Array with:Point) |
|
4130 |
modificationsOnly:true |
|
4131 |
" |
|
4132 |
! |
|
4133 |
||
2692 | 4134 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
4135 |
"return a collection of all methods in aCollectionOfClasses |
|
4136 |
containing a resource." |
|
4137 |
||
4138 |
|searchBlock| |
|
4139 |
||
4140 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
4141 |
searchBlock := [:c :m :sel | |resources| |
|
4142 |
(resources := m resources) size > 0 |
|
4143 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
4144 |
]. |
|
4145 |
] ifFalse:[ |
|
4146 |
searchBlock := [:c :m :sel | |resources| |
|
4147 |
(resources := m resources) size > 0 |
|
4148 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
4149 |
]. |
|
4150 |
]. |
|
4151 |
||
4152 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4153 |
||
4154 |
" |
|
4155 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
4156 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
4157 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
4158 |
" |
|
4159 |
! |
|
4160 |
||
2642 | 4161 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
4162 |
"search for all senders of aSelector in |
|
4163 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4164 |
Return a collection of methods" |
|
4165 |
||
4270 | 4166 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2642 | 4167 |
|
4168 |
" |
|
4169 |
SystemBrowser findSendersOf:#+ |
|
4170 |
in:(Array with:Number |
|
4171 |
with:Float |
|
4172 |
with:SmallInteger) |
|
4173 |
ignoreCase:false |
|
4174 |
" |
|
4270 | 4175 |
! |
4176 |
||
4177 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4178 |
"search for all senders of aSelector in |
|
4179 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4180 |
Return a collection of methods" |
|
4181 |
||
4182 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4183 |
||
4184 |
" |
|
4185 |
SystemBrowser findSendersOf:#+ |
|
4186 |
in:(Array with:Number |
|
4187 |
with:Float |
|
4188 |
with:SmallInteger) |
|
4189 |
ignoreCase:false |
|
4190 |
" |
|
2675 | 4191 |
! |
4192 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4193 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4194 |
"search for all senders of aSelector in aCollectionOfMethods. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4195 |
Return a collection of methods" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4196 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4197 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4198 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4199 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4200 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4201 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4202 |
|
4350 | 4203 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
4204 |
"search for all senders of aSelector in aCollectionOfMethods. |
|
4205 |
Return a collection of methods" |
|
4206 |
||
4207 |
|searchBlock| |
|
4208 |
||
4209 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
|
4210 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4211 |
! |
|
4212 |
||
2811 | 4213 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4214 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
4215 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4216 |
Return a collection of methods. |
|
4217 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4218 |
||
6052 | 4219 |
^ aCollectionOfSelectors |
4220 |
collectAll:[:eachSelector | |
|
6184 | 4221 |
(self allCallsOn:eachSelector |
6052 | 4222 |
in:aCollectionOfClasses |
4223 |
ignoreCase:ignoreCase |
|
6184 | 4224 |
match:false) asSet. |
6052 | 4225 |
]. |
4226 |
||
4227 |
"/ |allSenders| |
|
4228 |
"/ |
|
4229 |
"/ allSenders := IdentitySet new. |
|
4230 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4231 |
"/ allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true) |
|
4232 |
"/ ]. |
|
4233 |
"/ ^ allSenders |
|
2811 | 4234 |
|
4235 |
" |
|
4236 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
4237 |
in:(Array with:Number |
|
4238 |
with:Float |
|
4239 |
with:SmallInteger) |
|
4240 |
ignoreCase:false |
|
4241 |
" |
|
4242 |
! |
|
4243 |
||
3314 | 4244 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
4245 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
4246 |
containing a string in their source. |
|
4247 |
This may be slow, since source-code has to be scanned." |
|
4248 |
||
3626 | 4249 |
|searchBlock s| |
3314 | 4250 |
|
4251 |
(aString includesMatchCharacters |
|
4252 |
or:[ignoreCase]) ifTrue:[ |
|
4253 |
s := '*' , aString , '*'. |
|
4254 |
"a matchString" |
|
4255 |
searchBlock := [:c :m :sel | |
|
4256 |
|src resources| |
|
4257 |
||
4258 |
((resources := m resources) size > 0 |
|
4259 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
4260 |
src := m source. |
|
4261 |
src isNil ifTrue:[ |
|
4262 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4263 |
false |
|
4264 |
] ifFalse:[ |
|
4265 |
s match:src ignoreCase:ignoreCase |
|
4266 |
] |
|
4267 |
] |
|
4268 |
] |
|
4269 |
] ifFalse:[ |
|
4270 |
searchBlock := [:c :m :sel | |
|
4271 |
|src resources| |
|
4272 |
||
4273 |
((resources := m resources) size > 0 |
|
4274 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
4275 |
src := m source. |
|
4276 |
src isNil ifTrue:[ |
|
4277 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4278 |
false |
|
4279 |
] ifFalse:[ |
|
4280 |
(src findString:aString) ~~ 0 |
|
4281 |
] |
|
4282 |
] |
|
4283 |
] |
|
4284 |
]. |
|
4285 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4286 |
! |
|
4287 |
||
2675 | 4288 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5243 | 4289 |
"return a collection of all methods in aCollectionOfClasses |
2675 | 4290 |
containing a string in their source. |
4291 |
This may be slow, since source-code has to be scanned." |
|
4292 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4293 |
^ self findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4294 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4295 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4296 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4297 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4298 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4299 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4300 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5243 | 4301 |
"return a collection of all methods in aCollectionOfClasses |
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4302 |
containing a string in their source. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4303 |
This may be slow, since source-code has to be scanned." |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4304 |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4305 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4306 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4307 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4308 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4309 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4310 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4311 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4312 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4313 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4314 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4315 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5243 | 4316 |
"return a collection of all methods in aCollectionOfClasses |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4317 |
containing a string in their source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4318 |
This may be slow, since source-code has to be scanned." |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4319 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4320 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4321 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4322 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4323 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4324 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4325 |
|
5877 | 4326 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
4327 |
"return a collection of all methods in aCollectionOfClasses |
|
4328 |
containing a string in any of their string-literals." |
|
4329 |
||
4330 |
|searchBlock| |
|
4331 |
||
4332 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4333 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4334 |
||
4335 |
" |
|
4336 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4337 |
" |
|
4338 |
! |
|
4339 |
||
4340 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
|
4341 |
"return a collection of all methods in aCollectionOfClasses |
|
4342 |
containing a string in any of their string-literals." |
|
4343 |
||
4344 |
|searchBlock| |
|
4345 |
||
4346 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4347 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4348 |
! |
|
4349 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4350 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase |
4270 | 4351 |
^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true |
4352 |
! |
|
4353 |
||
4354 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4355 |
|sel searchBlock lcString quickMatch| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4356 |
|
4270 | 4357 |
(doMatch |
4358 |
and:[(aSelectorString ~= '*') |
|
4359 |
and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[ |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4360 |
"/ a matchString - need string matching procedure |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4361 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4362 |
ignoreCase ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4363 |
lcString := aSelectorString asLowercase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4364 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4365 |
lcString := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4366 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4367 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4368 |
quickMatch := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4369 |
(quickMatch startsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4370 |
quickMatch := quickMatch copyFrom:2 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4371 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4372 |
(quickMatch endsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4373 |
quickMatch := quickMatch copyWithoutLast:1 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4374 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4375 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4376 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4377 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4378 |
searchBlock := [:class :method :s | |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4379 |
|src| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4380 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4381 |
(ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4382 |
"/ do quick search first |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4383 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4384 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4385 |
(src notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4386 |
and:[src includesString:quickMatch]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4387 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4388 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4389 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4390 |
and:[(lcString includesString:quickMatch) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4391 |
and:[(lcString match:aLiteral)]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4392 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4393 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4394 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4395 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4396 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4397 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4398 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4399 |
and:[(lcString includesString:quickMatch) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4400 |
and:[(lcString match:aLiteral)]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4401 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4402 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4403 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4404 |
"/ expensive search |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4405 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4406 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4407 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4408 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4409 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4410 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4411 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4412 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4413 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4414 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4415 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4416 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4417 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4418 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4419 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4420 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4421 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4422 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4423 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4424 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4425 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4426 |
] ifFalse:[ |
4270 | 4427 |
(doMatch and:[aSelectorString = '*']) ifTrue:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4428 |
searchBlock := [:class :method :s | true]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4429 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4430 |
"/ no matchString - can do it much faster |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4431 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4432 |
sel := aSelectorString asSymbolIfInterned. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4433 |
sel isNil ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4434 |
^ nil "/ none |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4435 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4436 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4437 |
quickMatch := sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4438 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4439 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4440 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4441 |
searchBlock := [:class :method :s | |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4442 |
|src| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4443 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4444 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4445 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4446 |
(src notNil and:[src includesString:quickMatch]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4447 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4448 |
method sends:sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4449 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4450 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4451 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4452 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4453 |
method sends:sel |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4454 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4455 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4456 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4457 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4458 |
^ searchBlock |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4459 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4460 |
|
5094 | 4461 |
searchBlockForCode:aCodeString isMethod:isMethod |
7395 | 4462 |
"return a block to search for a piece of code (intelligent search)." |
5094 | 4463 |
|
6581 | 4464 |
|errAction searchTree searcher globalVariablesUsed usedSymbols |
4465 |
sentMessages searchBlock foundMatch| |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4466 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4467 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4468 |
"/rule := ParseTreeLintRule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4469 |
"/ createParseTreeRule: (Array with: aCodeString) |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4470 |
"/ method: isMethod |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4471 |
"/ name: 'Search for: ' , aCodeString. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4472 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4473 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4474 |
"/ searchBlock := [:c :m :sel | |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4475 |
"/ rslt := SmalllintChecker |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4476 |
"/ runRule:rule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4477 |
"/ onEnvironment: (ClassEnvironment onEnvironment:(BrowserEnvironment new) classes:(Array with:c)). |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4478 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4479 |
"/ self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4480 |
"/ ]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4481 |
"/^ searchBlock. |
5226 | 4482 |
|
4483 |
errAction := [:str :pos | |
|
4484 |
Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'. |
|
4485 |
^ nil |
|
4486 |
]. |
|
5094 | 4487 |
|
4488 |
isMethod ifTrue:[ |
|
4489 |
searchTree := RBParser |
|
4490 |
parseRewriteMethod:aCodeString |
|
5226 | 4491 |
onError: errAction. |
5094 | 4492 |
] ifFalse:[ |
4493 |
searchTree := RBParser |
|
4494 |
parseRewriteExpression:aCodeString |
|
5226 | 4495 |
onError: errAction. |
5094 | 4496 |
]. |
4497 |
||
6368 | 4498 |
Error handle:[:ex | |
4499 |
] do:[ |
|
6549 | 4500 |
sentMessages := searchTree sentMessages. |
5135 | 4501 |
]. |
6581 | 4502 |
|
6549 | 4503 |
globalVariablesUsed := searchTree referencedVariables |
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4504 |
select:[:node | |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4505 |
node isPatternNode not |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4506 |
and:[ Smalltalk includesKey: node name asSymbol ] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4507 |
] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4508 |
thenCollect:[:node | node name asSymbol]. |
5135 | 4509 |
|
6581 | 4510 |
usedSymbols := searchTree usedSymbols. |
4511 |
||
7395 | 4512 |
"/ cannot use literals to speedup the search, because stc does not store |
4513 |
"/ constants in the literal-array. |
|
4514 |
"/ literalsUsed := searchTree usedLiterals. |
|
4515 |
"/ literalsUsed := literalsUsed select:[:lit | lit isString]. |
|
4516 |
||
5094 | 4517 |
searcher := ParseTreeSearcher new. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4518 |
isMethod ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4519 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4520 |
matchesMethod:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4521 |
do:[:aNode :answer | foundMatch := true]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4522 |
] ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4523 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4524 |
matchesTree:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4525 |
do:[:aNode :answer | foundMatch := true]. |
6303 | 4526 |
]. |
5094 | 4527 |
|
6581 | 4528 |
|
4529 |
searchBlock := [:c :m :sel | |
|
4530 |
|allSelectorsInLiteralArray allMessagesSent |
|
4531 |
allGlobalsReferenced allUsedSymbolsInLiteralArray allSent src rslt parseTree| |
|
4532 |
||
4533 |
foundMatch := false. |
|
4534 |
||
4535 |
m isLazyMethod ifTrue:[ |
|
4536 |
src := m source. |
|
4537 |
src notNil ifTrue:[ |
|
4538 |
m makeRealMethod. |
|
5135 | 4539 |
]. |
6581 | 4540 |
]. |
4541 |
"/ can speedup the search, by filtering for sent messages first... |
|
4542 |
allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ m literals includesAll:sentMessages ]. |
|
4543 |
allSelectorsInLiteralArray ifTrue:[ |
|
4544 |
allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ m literals includesAll:usedSymbols ]. |
|
4545 |
allUsedSymbolsInLiteralArray ifTrue:[ |
|
4546 |
allMessagesSent := sentMessages isEmptyOrNil or:[ m messages includesAll:sentMessages ]. |
|
6368 | 4547 |
allMessagesSent ifTrue:[ |
6549 | 4548 |
allGlobalsReferenced := globalVariablesUsed conform:[:varName | m referencesGlobal:varName]. |
6368 | 4549 |
allGlobalsReferenced ifTrue:[ |
6549 | 4550 |
allSent := sentMessages conform:[:sel | (m sends:sel)]. |
6368 | 4551 |
allSent ifTrue:[ |
4552 |
src := m source. |
|
4553 |
src isNil ifTrue:[ |
|
4554 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4555 |
false |
|
5270 | 4556 |
] ifFalse:[ |
6368 | 4557 |
parseTree := RBParser |
4558 |
parseSearchMethod:src |
|
4559 |
onError: [:str :pos | |
|
4560 |
Transcript show:'Error in '; showCR:m. |
|
4561 |
Transcript showCR:str. |
|
4562 |
Transcript showCR:pos. |
|
4563 |
nil]. |
|
6552
343882b29fec
code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents:
6549
diff
changeset
|
4564 |
|
6368 | 4565 |
parseTree notNil ifTrue:[ |
4566 |
false "isMethod" ifTrue:[ |
|
4567 |
rslt := searcher executeMethod:parseTree. |
|
4568 |
] ifFalse:[ |
|
4569 |
rslt := searcher executeTree:parseTree. |
|
4570 |
]. |
|
6552
343882b29fec
code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents:
6549
diff
changeset
|
4571 |
] |
6368 | 4572 |
] |
4573 |
] |
|
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4574 |
] |
5135 | 4575 |
] |
6581 | 4576 |
] |
4577 |
]. |
|
4578 |
foundMatch. |
|
4579 |
]. |
|
5094 | 4580 |
^ searchBlock. |
7395 | 4581 |
|
4582 |
"Modified: / 12-10-2006 / 21:30:05 / cg" |
|
5094 | 4583 |
! |
4584 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4585 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch |
5094 | 4586 |
"return a block to search for a string." |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4587 |
|
5891 | 4588 |
|searchBlock s lcString| |
4589 |
||
4590 |
(doMatch and:[ aString includesMatchCharacters ]) ifTrue:[ |
|
2675 | 4591 |
s := '*' , aString , '*'. |
4592 |
"a matchString" |
|
4593 |
searchBlock := [:c :m :sel | |
|
4594 |
|src| |
|
4595 |
src := m source. |
|
4596 |
src isNil ifTrue:[ |
|
4597 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4598 |
false |
|
4599 |
] ifFalse:[ |
|
4600 |
s match:src ignoreCase:ignoreCase |
|
4601 |
] |
|
4602 |
] |
|
4603 |
] ifFalse:[ |
|
5891 | 4604 |
ignoreCase ifTrue:[ |
4605 |
lcString := aString asLowercase. |
|
4606 |
searchBlock := |
|
4607 |
[:c :m :sel | |
|
4608 |
|src| |
|
4609 |
||
4610 |
src := m source. |
|
4611 |
src isNil ifTrue:[ |
|
4612 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4613 |
false |
|
4614 |
] ifFalse:[ |
|
4615 |
(src asLowercase findString:lcString) ~~ 0 |
|
4616 |
] |
|
4617 |
] |
|
4618 |
] ifFalse:[ |
|
4619 |
searchBlock := |
|
4620 |
[:c :m :sel | |
|
4621 |
|src| |
|
4622 |
||
4623 |
src := m source. |
|
4624 |
src isNil ifTrue:[ |
|
4625 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4626 |
false |
|
4627 |
] ifFalse:[ |
|
4628 |
(src findString:aString) ~~ 0 |
|
4629 |
] |
|
4630 |
] |
|
4631 |
] |
|
2675 | 4632 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4633 |
^ searchBlock. |
2675 | 4634 |
|
4635 |
" |
|
4636 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
4637 |
" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4638 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4639 |
|
5877 | 4640 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch |
4641 |
"return a block to search for a string-literal." |
|
4642 |
||
4643 |
|searchBlock s| |
|
4644 |
||
5891 | 4645 |
(doMatch and:[ aString includesMatchCharacters]) ifTrue:[ |
5877 | 4646 |
s := '*' , aString , '*'. |
4647 |
"a matchString" |
|
4648 |
searchBlock := [:c :m :sel | |
|
4649 |
|lits| |
|
4650 |
lits := m literals ? #(). |
|
4651 |
lits contains:[:lit | |
|
4652 |
lit isString |
|
4653 |
and:[lit isSymbol not |
|
4654 |
and:[s match:lit ignoreCase:ignoreCase]] |
|
4655 |
] |
|
4656 |
] |
|
4657 |
] ifFalse:[ |
|
5891 | 4658 |
ignoreCase ifTrue:[ |
4659 |
s := aString asLowercase. |
|
4660 |
searchBlock := [:c :m :sel | |
|
4661 |
|lits| |
|
4662 |
lits := m literals ? #(). |
|
4663 |
lits contains:[:lit | |
|
4664 |
lit isString |
|
4665 |
and:[lit isSymbol not |
|
4666 |
and:[s = lit asLowercase]] |
|
4667 |
] |
|
4668 |
] |
|
4669 |
] ifFalse:[ |
|
4670 |
searchBlock := [:c :m :sel | |
|
4671 |
|lits| |
|
4672 |
lits := m literals ? #(). |
|
4673 |
lits contains:[:lit | |
|
4674 |
lit isString |
|
4675 |
and:[lit isSymbol not |
|
4676 |
and:[s = lit]] |
|
4677 |
] |
|
4678 |
] |
|
4679 |
]. |
|
5877 | 4680 |
]. |
4681 |
^ searchBlock. |
|
4682 |
||
4683 |
" |
|
4684 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
4685 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4686 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
4687 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
4688 |
" |
|
203 | 4689 |
! ! |
4690 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
4691 |
!SystemBrowser class methodsFor:'startup'! |
36 | 4692 |
|
203 | 4693 |
browseAllSelect:aBlock |
4694 |
"launch a browser for all methods where aBlock returns true. |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4695 |
The block is called with 3 arguments, class, method and selector." |
203 | 4696 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4697 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4698 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4699 |
title:'selected messages' |
36 | 4700 |
|
53 | 4701 |
" |
203 | 4702 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 4703 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4704 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4705 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 4706 |
! |
75 | 4707 |
|
203 | 4708 |
browseClass:aClass |
4490 | 4709 |
"launch a browser for aClass. |
4710 |
Notice: better go via Smalltalk browseClass:, which honors the tool-preferences" |
|
203 | 4711 |
|
4712 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4713 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4714 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4715 |
arg:aClass |
203 | 4716 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4717 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4718 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4719 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4720 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4721 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 4722 |
! |
4723 |
||
4724 |
browseClass:aClass methodCategory:aCategory |
|
4725 |
"launch a browser for all methods under aCategory in aClass" |
|
4726 |
||
4727 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4728 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 4729 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4730 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4731 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4732 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4733 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4734 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 4735 |
! |
4736 |
||
4737 |
browseClass:aClass selector:selector |
|
4490 | 4738 |
"launch a browser for the method at selector in aClass." |
203 | 4739 |
|
4740 |
^ self |
|
4158 | 4741 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
4742 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
203 | 4743 |
|
4744 |
" |
|
4745 |
SystemBrowser browseClass:Object selector:#printString |
|
4746 |
" |
|
36 | 4747 |
! |
4748 |
||
203 | 4749 |
browseClassCategory:aClassCategory |
4750 |
"launch a browser for all classes under aCategory" |
|
4751 |
||
4752 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4753 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4754 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4755 |
arg:aClassCategory |
203 | 4756 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4757 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4758 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4759 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4760 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4761 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 4762 |
! |
4763 |
||
4764 |
browseClassHierarchy:aClass |
|
4765 |
"launch a browser for aClass and all its superclasses. |
|
4766 |
this is different from the fullProtocol browser." |
|
36 | 4767 |
|
203 | 4768 |
^ self |
4158 | 4769 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
4770 |
setupSelector:#setupForClassHierarchy: |
|
4771 |
arg:aClass |
|
203 | 4772 |
|
4773 |
" |
|
4774 |
SystemBrowser browseClassHierarchy:Number |
|
4775 |
" |
|
4776 |
! |
|
4777 |
||
4778 |
browseClasses:aList title:title |
|
4779 |
"launch a browser for all classes in aList" |
|
4780 |
||
4781 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4782 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4783 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 4784 |
|
4785 |
" |
|
4786 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4787 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4788 |
title:'two classes' |
203 | 4789 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4790 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4791 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4792 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4793 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4794 |
browseClasses:aList title:title sort:doSort |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4795 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4796 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4797 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4798 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4799 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4800 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4801 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4802 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4803 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4804 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4805 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4806 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4807 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 4808 |
! |
4809 |
||
203 | 4810 |
browseFullClassProtocol:aClass |
4811 |
"launch a browser for aClasses full protocol. |
|
4812 |
This is different from hierarchy browsing." |
|
4813 |
||
4814 |
^ self |
|
4158 | 4815 |
newWithLabel:(aClass name , '-' , 'full protocol') |
4816 |
setupSelector:#setupForFullClassProtocol: |
|
4817 |
arg:aClass |
|
203 | 4818 |
|
4819 |
" |
|
4820 |
SystemBrowser browseFullClassProtocol:Number |
|
4821 |
" |
|
4822 |
! |
|
36 | 4823 |
|
203 | 4824 |
browseFullClasses |
4825 |
"launch a browser showing all methods at once" |
|
4826 |
||
4827 |
^ self |
|
4158 | 4828 |
newWithLabel:'Full Class Browser' |
4829 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 4830 |
|
203 | 4831 |
"SystemBrowser browseFullClasses" |
4832 |
! |
|
4833 |
||
4834 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
4835 |
"launch a browser for all instance methods in aClass and all subclasses |
|
4836 |
where aBlock evaluates to true" |
|
36 | 4837 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4838 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4839 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4840 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4841 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4842 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4843 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4844 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4845 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 4846 |
! |
4847 |
||
4848 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
4849 |
"launch a browser for all instance methods of all classes in |
|
4850 |
aCollectionOfClasses where aBlock evaluates to true" |
|
4851 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4852 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4853 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4854 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4855 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4856 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4857 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 4858 |
! |
36 | 4859 |
|
203 | 4860 |
browseInstMethodsOf:aClass where:aBlock title:title |
4861 |
"launch a browser for all instance methods in aClass |
|
4862 |
where aBlock evaluates to true" |
|
4863 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4864 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4865 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4866 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4867 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4868 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4869 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4870 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 4871 |
! |
4872 |
||
4873 |
browseMethodCategory:aCategory |
|
4874 |
"launch a browser for all methods where category = aCategory" |
|
4875 |
||
4876 |
|searchBlock| |
|
4877 |
||
4878 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4879 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 4880 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4881 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 4882 |
]. |
4883 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4884 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 4885 |
|
4886 |
" |
|
4887 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
4888 |
SystemBrowser browseMethodCategory:'print*' |
|
4889 |
" |
|
4890 |
! |
|
4891 |
||
3666 | 4892 |
browseMethods:aListOfMethods |
4893 |
"launch a multi-method browser." |
|
4894 |
||
4895 |
^ self browseMethods:aListOfMethods title:'some methods' |
|
4896 |
||
4897 |
" |
|
4898 |
self |
|
4899 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4900 |
with:(OrderedCollection compiledMethodAt:#at:)) |
|
4901 |
||
4902 |
self |
|
4903 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4904 |
with:(Array compiledMethodAt:#at:put:)) |
|
4905 |
" |
|
4906 |
! |
|
4907 |
||
203 | 4908 |
browseMethods:aList title:aString |
4909 |
"launch a browser for an explicit list of class/selectors. |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4910 |
Each entry in the list can be either a method, or a string |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4911 |
consisting of the classes name and the selector, separated by spaces. |
634
24a678f81829
Change the name of a classes Metaclass from e.g. "SmallIntegerclass" to
Stefan Vogel <sv@exept.de>
parents:
620
diff
changeset
|
4912 |
For class methods, the string ' class' must be appended to the classname." |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4913 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4914 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4915 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4916 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4917 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4918 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4919 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4920 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4921 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4922 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4923 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4924 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4925 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4926 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4927 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4928 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4929 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4930 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4931 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4932 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4933 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4934 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4935 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4936 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4937 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4938 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4939 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4940 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4941 |
"launch a browser for an explicit list of class/selectors. |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4942 |
Each entry in the list can be either a method, or a string |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4943 |
consisting of the classes name and the selector, separated by spaces. |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4944 |
For class methods, the string ' class' must be appended to the classname." |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4945 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4946 |
|l| |
203 | 4947 |
|
4948 |
(aList size == 0) ifTrue:[ |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4949 |
self showNoneFound:aString. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4950 |
^ nil |
203 | 4951 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4952 |
l := aList asOrderedCollection. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4953 |
l := l collect:[:entry | |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4954 |
|who cls clsName| |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4955 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4956 |
entry isString ifTrue:[ |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4957 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4958 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4959 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4960 |
cls isNil ifTrue:[ |
1031 | 4961 |
'??? unbound' |
4962 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4963 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4964 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4965 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4966 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4967 |
]. |
2824 | 4968 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
4969 |
self halt. |
|
4970 |
]. |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4971 |
clsName |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4972 |
, ' ' |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4973 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry)) |
1031 | 4974 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4975 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4976 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4977 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4978 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4979 |
|
203 | 4980 |
^ self |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4981 |
newWithLabel:aString |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4982 |
setupSelector:#setupForList: |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4983 |
arg:l |
53 | 4984 |
|
203 | 4985 |
" |
4986 |
SystemBrowser |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4987 |
browseMethods:#('Object printOn:' 'Collection add:') |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4988 |
title:'some methods' |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4989 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4990 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4991 |
browseMethods:#('Behavior new:' 'Setclass new:') |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4992 |
title:'some new: methods' |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4993 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4994 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4995 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4996 |
with:(Collection compiledMethodAt:#add:) |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4997 |
with:(Object class compiledMethodAt:#initialize)) |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4998 |
title:'some methods' |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4999 |
|
203 | 5000 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
5001 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
5002 |
"Modified: / 17.6.1996 / 17:07:46 / stefan" |
2826 | 5003 |
"Modified: / 17.10.1998 / 11:25:53 / cg" |
5004 |
! |
|
53 | 5005 |
|
203 | 5006 |
browseMethodsFrom:aClass where:aBlock title:title |
5007 |
"launch a browser for all instance- and classmethods in aClass |
|
5008 |
and all its subclasses where aBlock evaluates to true. |
|
5009 |
The block is called with 3 arguments, class, method and seelctor." |
|
5010 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5011 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5012 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5013 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5014 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5015 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5016 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 5017 |
! |
5018 |
||
5019 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
5020 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
5021 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
5022 |
where aBlock evaluates to true. |
|
270 | 5023 |
The block is called with 3 arguments, class, method and selector." |
203 | 5024 |
|
5025 |
|list| |
|
53 | 5026 |
|
5027 |
" |
|
203 | 5028 |
since this may take a long time, lower my priority ... |
53 | 5029 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
5030 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
5031 |
withPriority:Processor activePriority-1 to:Processor activePriority |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
5032 |
do:[ |
2675 | 5033 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 5034 |
]. |
5035 |
^ self browseMethods:list title:title |
|
53 | 5036 |
! |
5037 |
||
3780 | 5038 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock |
5039 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
5040 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
5041 |
where aBlock evaluates to true. |
|
5042 |
The block is called with 3 arguments, class, method and selector." |
|
5043 |
||
5044 |
|list| |
|
5045 |
||
5046 |
" |
|
5047 |
since this may take a long time, lower my priority ... |
|
5048 |
" |
|
5049 |
Processor activeProcess |
|
5050 |
withPriority:Processor activePriority-1 to:Processor activePriority |
|
5051 |
do:[ |
|
5052 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock. |
|
5053 |
list size == 0 ifTrue:[warnBlock value]. |
|
5054 |
]. |
|
5055 |
^ self browseMethods:list title:title |
|
5056 |
! |
|
5057 |
||
203 | 5058 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
5059 |
"launch a browser for all instance- and classmethods from |
|
5060 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
5061 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 5062 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5063 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5064 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5065 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5066 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5067 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5068 |
title:title |
75 | 5069 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5070 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 5071 |
! |
5072 |
||
3780 | 5073 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock |
5074 |
"launch a browser for all instance- and classmethods from |
|
5075 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
5076 |
The block is called with 3 arguments, class, method and seelctor." |
|
5077 |
||
5078 |
^ self |
|
5079 |
browseMethodsIn:aCollectionOfClasses |
|
5080 |
inst:true |
|
5081 |
class:true |
|
5082 |
where:aBlock |
|
5083 |
title:title |
|
5084 |
ifNone:warnBlock |
|
5085 |
||
5086 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
|
5087 |
! |
|
5088 |
||
203 | 5089 |
browseMethodsOf:aClass where:aBlock title:title |
5090 |
"launch a browser for all instance- and classmethods in aClass |
|
5091 |
where aBlock evaluates to true. |
|
5092 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 5093 |
|
203 | 5094 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 5095 |
! |
5096 |
||
203 | 5097 |
browseMethodsWhere:aBlock title:title |
5098 |
"launch a browser for all methods where aBlock returns true. |
|
5099 |
The block is called with 3 arguments, class, method and seelctor." |
|
5100 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5101 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5102 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5103 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5104 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5105 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5106 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 5107 |
! |
5108 |
||
3780 | 5109 |
browseMethodsWhere:aBlock title:title ifNone:warnBlock |
5110 |
"launch a browser for all methods where aBlock returns true. |
|
5111 |
The block is called with 3 arguments, class, method and seelctor." |
|
5112 |
||
5113 |
^ self |
|
5114 |
browseMethodsIn:(Smalltalk allClasses) |
|
5115 |
where:aBlock |
|
5116 |
title:title |
|
5117 |
ifNone:warnBlock |
|
5118 |
||
5119 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
|
5120 |
! |
|
5121 |
||
2675 | 5122 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
5123 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
5124 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
5125 |
||
5126 |
|list checkedClasses checkBlock| |
|
5127 |
||
5128 |
checkedClasses := IdentitySet new. |
|
5129 |
list := OrderedCollection new. |
|
5130 |
||
5131 |
checkBlock := [:cls | |
|
5132 |
(checkedClasses includes:cls) ifFalse:[ |
|
5133 |
cls isObsolete ifTrue:[ |
|
2882 | 5134 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
2675 | 5135 |
] ifFalse:[ |
5136 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
|
5137 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
|
5138 |
list add:method "/ (cls name , ' ' , sel) |
|
5139 |
] |
|
5140 |
]. |
|
5141 |
checkedClasses add:cls. |
|
5142 |
] |
|
5143 |
] |
|
5144 |
]. |
|
5145 |
||
5146 |
aCollectionOfClasses do:[:aClass | |
|
3008 | 5147 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
2675 | 5148 |
" |
5149 |
output disabled - it slows down things too much (when searching for |
|
5150 |
implementors or senders) |
|
5151 |
" |
|
5152 |
wantInst ifTrue:[ |
|
5153 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
5154 |
checkBlock value:aClass |
|
5155 |
]. |
|
5156 |
wantClass ifTrue:[ |
|
5157 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
5158 |
checkBlock value:(aClass class) |
|
5159 |
]. |
|
5160 |
Processor yield |
|
5161 |
] |
|
5162 |
]. |
|
5163 |
^ list |
|
5164 |
! |
|
5165 |
||
5166 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
5167 |
"return all instance- and classmethods |
|
5168 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
5169 |
||
5170 |
^ self |
|
5171 |
findMethodsIn:aCollectionOfClasses |
|
5172 |
inst:true |
|
5173 |
class:true |
|
5174 |
where:aBlock |
|
203 | 5175 |
! ! |
93 | 5176 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5177 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 5178 |
|
5179 |
askThenBrowseClass |
|
5180 |
self getClassThenPerform:#browseClass: |
|
5181 |
||
5182 |
" |
|
5183 |
SystemBrowser askThenBrowseClass |
|
5184 |
" |
|
93 | 5185 |
! |
5186 |
||
203 | 5187 |
askThenBrowseClassHierarchy |
5188 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 5189 |
|
203 | 5190 |
" |
5191 |
SystemBrowser askThenBrowseClassHierarchy |
|
5192 |
" |
|
36 | 5193 |
! |
5194 |
||
203 | 5195 |
askThenBrowseFullClassProtocol |
5196 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 5197 |
|
203 | 5198 |
" |
5199 |
SystemBrowser askThenBrowseFullClassProtocol |
|
5200 |
" |
|
52 | 5201 |
! |
5202 |
||
203 | 5203 |
getClassThenPerform:aSelector |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5204 |
|enterBox resources| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5205 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5206 |
resources := self classResources. |
52 | 5207 |
|
6353 | 5208 |
enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:'). |
6640 | 5209 |
enterBox okText:(resources string:'Browse'). |
6873 | 5210 |
enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
203 | 5211 |
enterBox action:[:className | |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5212 |
|cls| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5213 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5214 |
cls := Smalltalk classNamed:className. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5215 |
cls isNil ifTrue:[ |
6640 | 5216 |
self warn:(resources string:'No such class'). |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5217 |
] ifFalse:[ |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5218 |
self perform:aSelector with:cls |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5219 |
] |
203 | 5220 |
]. |
5221 |
enterBox showAtPointer |
|
75 | 5222 |
|
203 | 5223 |
" |
5224 |
SystemBrowser getClassThenPerform:#browseClass: |
|
5225 |
" |
|
6873 | 5226 |
|
5227 |
"Modified: / 10-08-2006 / 12:54:20 / cg" |
|
36 | 5228 |
! ! |
5229 |
||
2813 | 5230 |
!SystemBrowser class methodsFor:'utilities'! |
5231 |
||
3833 | 5232 |
classWithNameSimilarTo:className |
5233 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
|
5234 |
||
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5235 |
|allMatchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5236 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5237 |
allMatchingClasses := self classesWithNameSimilarTo:className. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5238 |
^ allMatchingClasses firstIfEmpty:nil |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5239 |
! |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5240 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5241 |
classesWithNameSimilarTo:className |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5242 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5243 |
|
6944 | 5244 |
^ self classesWithNameSimilarTo:className from:nil |
5245 |
||
5246 |
"Modified: / 22-08-2006 / 13:22:41 / cg" |
|
5247 |
! |
|
5248 |
||
5249 |
classesWithNameSimilarTo:className from:aNameSpaceOrNil |
|
5250 |
"helper for class-name entry; finds classes with a name similar to the argument, className" |
|
5251 |
||
5252 |
|nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses |
|
5253 |
prefNameSpaceOrNil prefLcNameSpace| |
|
5254 |
||
5255 |
prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil]. |
|
3833 | 5256 |
|
5257 |
(className startsWith:'Smalltalk::') ifTrue:[ |
|
5258 |
nm := className copyFrom:('Smalltalk::' size + 1). |
|
5259 |
] ifFalse:[ |
|
5260 |
nm := className. |
|
5261 |
]. |
|
5262 |
||
6944 | 5263 |
prefNameSpaceOrNil notNil ifTrue:[ |
5264 |
class := prefNameSpaceOrNil at:nm asSymbol. |
|
5265 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
|
5266 |
prefLcNameSpace := prefNameSpaceOrNil name asLowercase. |
|
5267 |
]. |
|
3833 | 5268 |
class := Smalltalk at:nm asSymbol. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5269 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
3833 | 5270 |
|
5271 |
lcName := className asLowercase. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5272 |
|
3833 | 5273 |
allClasses := Smalltalk allClasses. |
4806 | 5274 |
|
6134 | 5275 |
triedDetectors := OrderedCollection new. |
5276 |
triedDetectors add:[:cls | cls name asLowercase = lcName]. |
|
5277 |
||
5278 |
triedDetectors do:[:eachTry | |
|
5279 |
|class| |
|
5280 |
||
5281 |
class := allClasses detect:eachTry ifNone:nil. |
|
5282 |
class notNil ifTrue:[^ Array with:class]. |
|
5283 |
]. |
|
5284 |
||
4806 | 5285 |
triedMatchers := OrderedCollection new. |
5018
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5286 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName]. |
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5287 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5288 |
|
4806 | 5289 |
triedMatchers add:[:cls | cls name asLowercase startsWith:lcName]. |
5290 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]. |
|
5291 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]. |
|
5292 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName]. |
|
6134 | 5293 |
triedMatchers add:[:cls | cls name asLowercase includesString:lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5294 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5295 |
allMatchingClasses := IdentitySet new. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5296 |
triedMatchers do:[:eachTry | |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5297 |
|matchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5298 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5299 |
matchingClasses := allClasses select:eachTry. |
6944 | 5300 |
"/ matchingClasses size == 1 ifTrue:[^ matchingClasses]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5301 |
allMatchingClasses addAll:matchingClasses. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5302 |
]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5303 |
allMatchingClasses isEmpty ifTrue:[^ #()]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5304 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5305 |
allMatchingClasses := allMatchingClasses asOrderedCollection. |
6944 | 5306 |
allMatchingClasses |
5307 |
sort:[:a :b | |
|
5308 |
|lcNameA lcNameB da db distA distB | |
|
5309 |
||
5310 |
lcNameA := a name asLowercase. |
|
5311 |
lcNameB := b name asLowercase. |
|
5312 |
prefNameSpaceOrNil notNil ifTrue:[ |
|
5313 |
a nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5314 |
lcNameA := a nameWithoutNameSpacePrefix asLowercase. |
|
5315 |
]. |
|
5316 |
b nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5317 |
lcNameB := b nameWithoutNameSpacePrefix asLowercase. |
|
5318 |
]. |
|
5319 |
]. |
|
5320 |
||
5321 |
distA := da := lcName levenshteinTo:lcNameA. |
|
5322 |
distB := db := lcName levenshteinTo:lcNameB. |
|
5323 |
"prefer prefixes (i.e. classes whose name starts with what we search for)" |
|
5324 |
||
5325 |
(lcNameA startsWith:lcName) ifTrue:[ |
|
5326 |
distB := distB * 2 |
|
5327 |
]. |
|
5328 |
(lcNameB startsWith:lcName) ifTrue:[ |
|
5329 |
distA := distA * 2 |
|
5330 |
]. |
|
5331 |
distA < distB |
|
5332 |
]. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5333 |
^ allMatchingClasses. |
6546 | 5334 |
|
5335 |
" |
|
6678 | 5336 |
self classesWithNameSimilarTo:'NewSystemBrowser' |
5337 |
self classesWithNameSimilarTo:'Moose::MSEAbstractOperator' |
|
6546 | 5338 |
" |
6944 | 5339 |
|
5340 |
"Created: / 22-08-2006 / 13:22:48 / cg" |
|
5341 |
"Modified: / 22-08-2006 / 14:53:38 / cg" |
|
3833 | 5342 |
! |
5343 |
||
2813 | 5344 |
extractClassAndSelectorFrom:aString into:aBlock |
5345 |
"given a string which can be either 'class>>sel' or |
|
5346 |
'class sel', extract className and selector, and call aBlock with |
|
5347 |
the result. |
|
5348 |
Useful to open browser on a method as selected in some documentation." |
|
5349 |
||
5350 |
|sel clsName isMeta sep s| |
|
5351 |
||
5352 |
sel := aString. |
|
5353 |
sel notNil ifTrue:[ |
|
5354 |
sel := sel asString withoutSeparators. |
|
5355 |
('*>>*' match:sel) ifTrue:[ |
|
5356 |
sep := $> |
|
5357 |
] ifFalse:[ |
|
5358 |
('* *' match:sel) ifTrue:[ |
|
5359 |
sep := Character space |
|
5360 |
] |
|
5361 |
]. |
|
5362 |
sep notNil ifTrue:[ |
|
5363 |
" |
|
5364 |
extract class/sel from selection |
|
5365 |
" |
|
5366 |
s := ReadStream on:sel. |
|
5367 |
clsName := s upTo:sep. |
|
5368 |
[s peek == sep] whileTrue:[s next]. |
|
5369 |
sel := s upToEnd. |
|
5370 |
||
5371 |
(clsName endsWith:' class') ifTrue:[ |
|
5372 |
isMeta := true. |
|
5373 |
clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)" |
|
5374 |
] ifFalse:[ |
|
5375 |
isMeta := false |
|
5376 |
]. |
|
5377 |
] |
|
5378 |
]. |
|
5379 |
aBlock value:clsName value:sel value:isMeta |
|
5380 |
||
5381 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
5382 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
5383 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
5384 |
! |
|
5385 |
||
5386 |
extractSelectorFrom:aString |
|
5387 |
"given an arbitrary string, try to extract a useful selector. |
|
5388 |
Useful to open browser on a selected code fragment." |
|
5389 |
||
5390 |
|s sel t| |
|
5391 |
||
5392 |
aString isNil ifTrue:[^ nil]. |
|
5393 |
||
5394 |
s := aString asString string. |
|
5395 |
s := s withoutSeparators. |
|
5396 |
sel := s. |
|
5397 |
||
6705 | 5398 |
((sel endsWith:$:) |
5399 |
and:[sel knownAsSymbol]) ifTrue:[ |
|
5400 |
^ sel asSymbol |
|
5401 |
]. |
|
5402 |
||
2813 | 5403 |
t := Parser selectorInExpression:sel. |
5404 |
t notNil ifTrue:[ |
|
5405 |
sel := t |
|
5406 |
]. |
|
5407 |
(sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[ |
|
5408 |
"oops - thats probably not what we want here ..." |
|
5409 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
|
5410 |
sel := s |
|
5411 |
] |
|
5412 |
]. |
|
5413 |
^ sel |
|
5414 |
||
5415 |
" |
|
5416 |
self extractSelectorFrom:'at:put:' |
|
5417 |
self extractSelectorFrom:'#at:put:' |
|
5418 |
self extractSelectorFrom:'at:something put:someValue' |
|
5419 |
self extractSelectorFrom:'self at:something put:someValue' |
|
5420 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
5421 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
5422 |
self extractSelectorFrom:'Array>>at:put:' |
|
5423 |
" |
|
5424 |
||
5425 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
5426 |
"Modified: / 6.2.2000 / 00:57:08 / cg" |
|
6560
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5427 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5428 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5429 |
resourceEditorClassFor:aResource |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5430 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5431 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5432 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5433 |
(aResource == #canvas) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5434 |
^ UIPainter |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5435 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5436 |
(aResource == #menu) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5437 |
^ MenuEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5438 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5439 |
((aResource == #image) or:[aResource == #fileImage]) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5440 |
^ ImageEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5441 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5442 |
(aResource == #help) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5443 |
^ UIHelpTool |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5444 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5445 |
(aResource == #tableColumns) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5446 |
^ DataSetBuilder |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5447 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5448 |
(aResource == #tabList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5449 |
^ TabListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5450 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5451 |
(aResource == #hierarchicalList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5452 |
^ HierarchicalListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5453 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5454 |
^ nil |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5455 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5456 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5457 |
resourceEditorClassForResources:resources |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5458 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5459 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5460 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5461 |
resources keysDo:[:eachResource | |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5462 |
|editor| |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5463 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5464 |
editor := self resourceEditorClassFor:eachResource. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5465 |
editor notNil ifTrue:[ ^ editor]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5466 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5467 |
^ nil |
2813 | 5468 |
! ! |
5469 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5470 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5471 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5472 |
className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5473 |
"return the value of the instance variable 'className' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5474 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5475 |
^ className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5476 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5477 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5478 |
className:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5479 |
"set the value of the instance variable 'className' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5480 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5481 |
className := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5482 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5483 |
|
3151 | 5484 |
className:classNameArg meta:metaArg selector:selectorArg |
5485 |
className := classNameArg. |
|
5486 |
meta := metaArg. |
|
5487 |
selector := selectorArg. |
|
5488 |
! |
|
5489 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5490 |
meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5491 |
"return the value of the instance variable 'meta' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5492 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5493 |
^ meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5494 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5495 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5496 |
meta:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5497 |
"set the value of the instance variable 'meta' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5498 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5499 |
meta := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5500 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5501 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5502 |
selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5503 |
"return the value of the instance variable 'selector' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5504 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5505 |
^ selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5506 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5507 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5508 |
selector:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5509 |
"set the value of the instance variable 'selector' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5510 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5511 |
selector := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5512 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5513 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5514 |
theClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5515 |
^ Smalltalk at:className asSymbol |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5516 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5517 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5518 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5519 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5520 |
= anEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5521 |
^ className = anEntry className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5522 |
and:[meta = anEntry meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5523 |
and:[selector = anEntry selector]] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5524 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5525 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5526 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 5527 |
|
203 | 5528 |
version |
7395 | 5529 |
^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.242 2006-10-12 19:31:34 cg Exp $' |
36 | 5530 |
! ! |
4112 | 5531 |
|
203 | 5532 |
SystemBrowser initialize! |