author | Claus Gittinger <cg@exept.de> |
Thu, 10 Sep 2009 17:31:20 +0200 | |
changeset 8688 | 71d973fdd817 |
parent 8685 | b39dc53c40ae |
child 8702 | 93616c89ade0 |
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 |
|
7998 | 226 |
SystemBrowser openOnRemoteImageOnHost:'192.168.8.1' port:nil |
3573 | 227 |
" |
228 |
! |
|
229 |
||
2818 | 230 |
openOnSnapShotImage:anImageFileName |
4921 | 231 |
|environment| |
2818 | 232 |
|
233 |
environment := SnapShotImage for:anImageFileName. |
|
4921 | 234 |
^ self |
235 |
openOn:environment |
|
236 |
label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName) |
|
2818 | 237 |
|
238 |
" |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
239 |
SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img') |
2824 | 240 |
" |
241 |
! ! |
|
36 | 242 |
|
4909 | 243 |
!SystemBrowser class methodsFor:'Compatibility-ST80'! |
1356 | 244 |
|
245 |
newOnClass:aClass |
|
246 |
^ self browseClass:aClass |
|
247 |
||
248 |
"Created: / 27.10.1997 / 20:10:39 / cg" |
|
249 |
! ! |
|
250 |
||
4909 | 251 |
!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
|
252 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
253 |
addToHistory:aClass selector:aSelectorOrNil |
3679 | 254 |
|newEntry oldEntry classHistory| |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
255 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
256 |
(newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self]. |
3679 | 257 |
classHistory := self classHistory. |
258 |
||
259 |
oldEntry := classHistory detect:[:entry | entry className = newEntry className] ifNone:nil. |
|
260 |
oldEntry notNil ifTrue:[ |
|
261 |
classHistory removeIdentical:oldEntry. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
262 |
]. |
3679 | 263 |
classHistory addFirst:newEntry. |
264 |
classHistory size > self visitedHistoryMaxSize ifTrue:[ |
|
265 |
classHistory removeLast |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
266 |
]. |
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
267 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
268 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
269 |
"Modified: / 20-11-2006 / 12:29:45 / cg" |
3131
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 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
272 |
checkClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
273 |
"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
|
274 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
275 |
"/ 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
|
276 |
self classHistory reverseDo:[:histEntry| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
277 |
(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
|
278 |
ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
279 |
self classHistory remove: histEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
280 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
281 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
282 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
283 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
284 |
classHistory |
3679 | 285 |
ClassHistory isNil ifTrue:[ |
286 |
ClassHistory := List new |
|
287 |
]. |
|
288 |
^ ClassHistory |
|
3131
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 |
classHistory:newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
292 |
ClassHistory := newCollection |
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 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
295 |
emptyClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
296 |
"removes all class history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
297 |
|
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
298 |
|classHistory| |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
299 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
300 |
classHistory := self classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
301 |
classHistory removeAll. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
302 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
303 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
304 |
"Modified: / 20-11-2006 / 12:29:42 / cg" |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
305 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
306 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
307 |
historyEntryForClass:aClass selector:aSelectorOrNil |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
308 |
|newEntry meta cls| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
309 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
310 |
aClass isBehavior ifFalse:[^ nil]. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
311 |
|
3151 | 312 |
(meta := aClass isMeta) ifTrue:[ |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
313 |
cls := aClass theNonMetaclass. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
314 |
] ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
315 |
cls := aClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
316 |
]. |
3151 | 317 |
newEntry := BrowserHistoryEntry new. |
318 |
newEntry |
|
319 |
className:cls name |
|
320 |
meta:meta |
|
321 |
selector:aSelectorOrNil. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
322 |
^ newEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
323 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
324 |
"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
|
325 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
326 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
327 |
!SystemBrowser class methodsFor:'defaults'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
328 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
329 |
classHistoryMaxLevels |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
330 |
^ 3 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
331 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
332 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
333 |
classHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
334 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
335 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
336 |
|
3549 | 337 |
methodTemplate |
338 |
"return a method definition template string" |
|
339 |
||
340 |
|s| |
|
341 |
||
342 |
s := TextStream on:''. |
|
343 |
s nextPutAll:'message selector and argument names |
|
344 |
"comment stating purpose of this message" |
|
345 |
||
346 |
|temporaries| |
|
347 |
||
348 |
statement. |
|
349 |
statement. |
|
350 |
||
351 |
||
352 |
" |
|
353 |
optional: comment giving example use |
|
354 |
" |
|
355 |
'. |
|
356 |
s cr. |
|
357 |
s emphasis:(UserPreferences current commentEmphasisAndColor). |
|
358 |
s nextPutAll:'" |
|
5802 | 359 |
change the above template into real code; |
360 |
remove this comment. |
|
3549 | 361 |
Then `accept'' either via the menu |
362 |
or via the keyboard (usually CMD-A). |
|
363 |
||
364 |
You do not need this template; you can also |
|
365 |
select any existing methods code, change it, |
|
366 |
and finally `accept''. The method will then be |
|
367 |
installed under the selector as defined in the |
|
368 |
actual text - no matter which method is selected |
|
369 |
in the browser. |
|
370 |
||
371 |
Or clear this text, type in the method from scratch |
|
372 |
and install it with `accept''. |
|
373 |
" |
|
374 |
'. |
|
375 |
^ s contents |
|
376 |
! |
|
377 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
378 |
visitedHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
379 |
"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
|
380 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
381 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
382 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
383 |
|
4909 | 384 |
!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
|
385 |
|
3352 | 386 |
emphasisForChangedCode |
4499 | 387 |
^ UserPreferences current emphasisForChangedCode. |
3352 | 388 |
|
389 |
" |
|
390 |
EmphasisForChangedCode := #underwave |
|
4112 | 391 |
EmphasisForChangedCode := #color->Color blue |
3352 | 392 |
EmphasisForChangedCode := #color->Color red lightened lightened lightened |
393 |
" |
|
394 |
||
395 |
"Created: / 31.10.2001 / 10:15:33 / cg" |
|
396 |
! |
|
397 |
||
398 |
emphasisForChangedCode:anEmphasis |
|
399 |
EmphasisForChangedCode := anEmphasis |
|
400 |
||
401 |
" |
|
402 |
self emphasisForChangedCode:#underwave |
|
403 |
self emphasisForChangedCode:(#color->Color red lightened lightened lightened) |
|
404 |
" |
|
405 |
||
406 |
"Created: / 31.10.2001 / 10:15:44 / cg" |
|
407 |
! |
|
408 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
409 |
emphasisForDifferentPackage |
4499 | 410 |
^ 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
|
411 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
412 |
" |
3352 | 413 |
EmphasisForDifferentPackage := nil. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
414 |
EmphasisForDifferentPackage := #underwave |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
415 |
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
|
416 |
" |
3352 | 417 |
|
418 |
"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
|
419 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
420 |
|
3241 | 421 |
emphasisForDifferentPackage:anEmphasis |
422 |
EmphasisForDifferentPackage := anEmphasis |
|
423 |
||
424 |
" |
|
425 |
self emphasisForDifferentPackage:#underwave |
|
426 |
self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened) |
|
427 |
" |
|
428 |
! |
|
429 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
430 |
emphasisForModifiedBuffer |
4499 | 431 |
^ 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
|
432 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
433 |
|
3241 | 434 |
emphasisForModifiedBuffer:anEmphasis |
435 |
EmphasisForModifiedBuffer := anEmphasis |
|
436 |
! |
|
437 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
438 |
emphasisForObsoleteCode |
4499 | 439 |
^ 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
|
440 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
441 |
|
3241 | 442 |
emphasisForObsoleteCode:anEmphasis |
443 |
EmphasisForObsoleteCode := anEmphasis |
|
444 |
! |
|
445 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
446 |
emphasisForReadVariable |
4499 | 447 |
^ 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
|
448 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
449 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
450 |
EmphasisForReadVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
451 |
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
|
452 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
453 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
454 |
|
3241 | 455 |
emphasisForReadVariable:anEmphasis |
456 |
EmphasisForReadVariable := anEmphasis |
|
457 |
||
458 |
" |
|
459 |
self emphasisForReadVariable:#underline |
|
460 |
self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow) |
|
461 |
" |
|
462 |
! |
|
463 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
464 |
emphasisForWrittenVariable |
4499 | 465 |
^ 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
|
466 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
467 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
468 |
EmphasisForWrittenVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
469 |
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
|
470 |
" |
3241 | 471 |
! |
472 |
||
473 |
emphasisForWrittenVariable:anEmphasis |
|
474 |
EmphasisForWrittenVariable := anEmphasis |
|
475 |
||
476 |
" |
|
477 |
self emphasisForWrittenVariable:#underline |
|
478 |
self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened) |
|
479 |
" |
|
6901 | 480 |
! |
481 |
||
482 |
iconForClass:aClass |
|
483 |
|c| |
|
484 |
||
7827 | 485 |
aClass withAllSuperclassesDo:[:eachCls | |
486 |
| iconSymbol | |
|
487 |
||
488 |
iconSymbol := eachCls iconInBrowserSymbol. |
|
489 |
iconSymbol notNil ifTrue:[ |
|
490 |
^ ToolbarIconLibrary perform:iconSymbol |
|
491 |
]. |
|
492 |
]. |
|
493 |
||
7361
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
494 |
(aClass isBrowserStartable) ifTrue:[ |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
495 |
aClass isVisualStartable ifTrue:[ |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
496 |
^ self startableVisualAppIcon |
fd281ab33547
protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents:
7066
diff
changeset
|
497 |
]. |
6901 | 498 |
^ self startableClassIcon |
499 |
]. |
|
500 |
aClass isLoaded ifFalse:[ |
|
501 |
^ self autoloadedClassIcon |
|
502 |
]. |
|
503 |
c := aClass. |
|
504 |
[c notNil] whileTrue:[ |
|
505 |
c == Warning ifTrue:[ |
|
506 |
^ self warningClassIcon |
|
507 |
]. |
|
508 |
c == Query ifTrue:[ |
|
509 |
^ self queryClassIcon |
|
510 |
]. |
|
511 |
c == Notification ifTrue:[ |
|
512 |
^ self notificationClassIcon |
|
513 |
]. |
|
514 |
c == Error ifTrue:[ |
|
515 |
^ self errorClassIcon |
|
516 |
]. |
|
517 |
c == GenericException ifTrue:[ |
|
518 |
^ self exceptionClassIcon |
|
519 |
]. |
|
520 |
c == SimpleView ifTrue:[ |
|
521 |
^ self windowClassIcon |
|
522 |
]. |
|
523 |
c == Collection ifTrue:[ |
|
524 |
^ self containerClassIcon |
|
525 |
]. |
|
526 |
(c == TestCase and:[aClass isAbstract not "aClass ~~ TestCase"]) ifTrue:[ |
|
527 |
^ self testCaseClassIconFor:aClass |
|
528 |
]. |
|
6925 | 529 |
(c == LibraryDefinition) ifTrue:[ |
530 |
aClass ~~ LibraryDefinition ifTrue:[ |
|
531 |
^ self packageIconSmall |
|
532 |
]. |
|
533 |
]. |
|
534 |
(c == ApplicationDefinition) ifTrue:[ |
|
535 |
aClass ~~ ApplicationDefinition ifTrue:[ |
|
6954 | 536 |
aClass isGUIApplication ifTrue:[ |
537 |
^ self packageIconGreenSmall |
|
538 |
]. |
|
539 |
^ self packageIconGraySmall. |
|
6925 | 540 |
]. |
6901 | 541 |
]. |
542 |
c := c superclass |
|
543 |
]. |
|
544 |
^ nil |
|
545 |
||
546 |
"Created: / 17-08-2006 / 09:11:27 / cg" |
|
7827 | 547 |
"Modified: / 20-07-2007 / 09:01:43 / cg" |
6901 | 548 |
! |
549 |
||
550 |
resourceIconForMethod:aMethod |
|
551 |
|resources| |
|
552 |
||
553 |
(resources := aMethod resources) isNil ifTrue:[^ nil]. |
|
554 |
||
555 |
(resources includesKey:#obsolete) ifTrue:[ |
|
556 |
^ self deprecatedMethodIcon |
|
557 |
]. |
|
558 |
(resources includesKey:#canvas) ifTrue:[ |
|
559 |
^ self canvasIcon |
|
560 |
]. |
|
561 |
(resources includesKey:#menu) ifTrue:[ |
|
562 |
^ self menuIcon |
|
563 |
]. |
|
564 |
(resources includesKey:#image) ifTrue:[ |
|
565 |
^ self imageIcon |
|
566 |
]. |
|
567 |
(resources includesKey:#fileImage) ifTrue:[ |
|
568 |
^ self fileImageIcon |
|
569 |
]. |
|
570 |
(resources includesKey:#programImage) ifTrue:[ |
|
571 |
^ self programImageIcon |
|
572 |
]. |
|
573 |
(resources includesKey:#help) ifTrue:[ |
|
574 |
^ self helpIcon |
|
575 |
]. |
|
576 |
(resources includesKey:#programMenu) ifTrue:[ |
|
577 |
^ self programMenuIcon |
|
578 |
]. |
|
579 |
(resources includesKey:#tableColumns) ifTrue:[ |
|
580 |
^ self tableColumnsIcon |
|
581 |
]. |
|
582 |
(resources includesKey:#tabList) ifTrue:[ |
|
583 |
^ self tabListIcon |
|
584 |
]. |
|
585 |
(resources includesKey:#hierarchicalList) ifTrue:[ |
|
586 |
^ self hierarchicalListIcon |
|
587 |
]. |
|
588 |
(resources includesKey:#programImage) ifTrue:[ |
|
589 |
^ self programImageIcon |
|
590 |
]. |
|
591 |
^ nil |
|
592 |
||
593 |
"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
|
594 |
! ! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
595 |
|
2692 | 596 |
!SystemBrowser class methodsFor:'image specs'! |
597 |
||
2748 | 598 |
abstractMethodIcon |
599 |
<resource: #programImage> |
|
600 |
||
601 |
^ self padLockGrayMiniIcon |
|
602 |
! |
|
603 |
||
3813 | 604 |
addBreakPointIcon |
605 |
"This resource specification was automatically generated |
|
606 |
by the ImageEditor of ST/X." |
|
607 |
||
608 |
"Do not manually edit this!! If it is corrupted, |
|
609 |
the ImageEditor may not be able to read the specification." |
|
610 |
||
611 |
" |
|
612 |
self addBreakPointIcon inspect |
|
613 |
ImageEditor openOnClass:self andSelector:#addBreakPointIcon |
|
4852 | 614 |
Icon flushCachedIcons |
3813 | 615 |
" |
616 |
||
617 |
<resource: #image> |
|
618 |
||
619 |
^Icon |
|
7968 | 620 |
constantNamed:'SystemBrowser class addBreakPointIcon' |
3813 | 621 |
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] |
622 |
! |
|
623 |
||
624 |
addBreakPointIcon2 |
|
6115 | 625 |
^ XPToolbarIconLibrary addBreakPointIcon2 |
3813 | 626 |
! |
627 |
||
4341 | 628 |
autoloadedClassIcon |
7827 | 629 |
<resource: #programImage> |
630 |
||
631 |
^ ToolbarIconLibrary autoloadedClassBrowserIcon |
|
632 |
||
633 |
"Modified: / 20-07-2007 / 09:15:37 / cg" |
|
4341 | 634 |
! |
635 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
636 |
canvasIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
637 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
638 |
by the ImageEditor of ST/X." |
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 |
"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
|
641 |
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
|
642 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
643 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
644 |
ImageEditor openOnClass:self andSelector:#canvasIcon |
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 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
647 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
648 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
649 |
^Icon |
7968 | 650 |
constantNamed:'SystemBrowser class canvasIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
651 |
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
|
652 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
653 |
|
4143 | 654 |
containerClassIcon |
7827 | 655 |
<resource: #programImage> |
656 |
||
657 |
^ ToolbarIconLibrary containerClassBrowserIcon |
|
658 |
||
659 |
"Modified: / 20-07-2007 / 09:14:54 / cg" |
|
4143 | 660 |
! |
661 |
||
2692 | 662 |
defaultIcon |
663 |
"This resource specification was automatically generated |
|
664 |
by the ImageEditor of ST/X." |
|
665 |
||
666 |
"Do not manually edit this!! If it is corrupted, |
|
667 |
the ImageEditor may not be able to read the specification." |
|
668 |
||
669 |
" |
|
670 |
self defaultIcon inspect |
|
671 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
672 |
" |
|
673 |
||
674 |
<resource: #image> |
|
675 |
||
676 |
^Icon |
|
7968 | 677 |
constantNamed:'SystemBrowser class defaultIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
678 |
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
|
679 |
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@ |
3794 | 680 |
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H" |
681 |
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
|
682 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
683 |
@@@@@@@@@@@@@@@@@@@@@@@@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 | 684 |
??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 | 685 |
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself] |
686 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
687 |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
688 |
deprecatedMethodIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
689 |
^ self doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
690 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
691 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
692 |
doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
693 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
694 |
by the ImageEditor of ST/X." |
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 |
"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
|
697 |
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
|
698 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
699 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
700 |
self doNotEnterIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
701 |
ImageEditor openOnClass:self andSelector:#doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
702 |
Icon flushCachedIcons |
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 |
<resource: #image> |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
706 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
707 |
^Icon |
7968 | 708 |
constantNamed:'SystemBrowser class doNotEnterIcon' |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
709 |
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
|
710 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
711 |
|
3354 | 712 |
emptyIcon |
713 |
"This resource specification was automatically generated |
|
714 |
by the ImageEditor of ST/X." |
|
715 |
||
716 |
"Do not manually edit this!! If it is corrupted, |
|
717 |
the ImageEditor may not be able to read the specification." |
|
718 |
||
719 |
" |
|
720 |
self emptyIcon inspect |
|
721 |
ImageEditor openOnClass:self andSelector:#emptyIcon |
|
722 |
" |
|
723 |
||
724 |
<resource: #image> |
|
725 |
||
726 |
^Icon |
|
7968 | 727 |
constantNamed:'SystemBrowser class emptyIcon' |
3354 | 728 |
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] |
729 |
||
730 |
"Created: / 5.11.2001 / 09:39:54 / cg" |
|
731 |
! |
|
732 |
||
4143 | 733 |
errorClassIcon |
7827 | 734 |
<resource: #programImage> |
735 |
||
736 |
^ ToolbarIconLibrary errorClassBrowserIcon |
|
737 |
||
738 |
"Modified: / 20-07-2007 / 09:14:06 / cg" |
|
4143 | 739 |
! |
740 |
||
741 |
exceptionClassIcon |
|
742 |
"This resource specification was automatically generated |
|
743 |
by the ImageEditor of ST/X." |
|
744 |
||
745 |
"Do not manually edit this!! If it is corrupted, |
|
746 |
the ImageEditor may not be able to read the specification." |
|
747 |
||
748 |
" |
|
749 |
self exceptionClassIcon inspect |
|
750 |
ImageEditor openOnClass:self andSelector:#exceptionClassIcon |
|
751 |
Icon flushCachedIcons |
|
752 |
" |
|
753 |
||
7827 | 754 |
<resource: #programImage> |
755 |
||
756 |
^ ToolbarIconLibrary exceptionClassBrowserIcon |
|
757 |
||
758 |
"Modified: / 20-07-2007 / 09:13:18 / cg" |
|
4143 | 759 |
! |
760 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
761 |
fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
762 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
763 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
764 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
765 |
"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
|
766 |
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
|
767 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
768 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
769 |
self fileImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
770 |
ImageEditor openOnClass:self andSelector:#fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
771 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
772 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
773 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
774 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
775 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
776 |
constantNamed:'SystemBrowser class fileImageIcon' |
2846 | 777 |
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] |
778 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
779 |
|
4166 | 780 |
greenCheckIcon |
781 |
"This resource specification was automatically generated |
|
782 |
by the ImageEditor of ST/X." |
|
783 |
||
784 |
"Do not manually edit this!! If it is corrupted, |
|
785 |
the ImageEditor may not be able to read the specification." |
|
786 |
||
787 |
" |
|
788 |
self greenCheckIcon inspect |
|
789 |
ImageEditor openOnClass:self andSelector:#greenCheckIcon |
|
790 |
Icon flushCachedIcons |
|
791 |
" |
|
792 |
||
793 |
<resource: #image> |
|
794 |
||
795 |
^Icon |
|
7968 | 796 |
constantNamed:'SystemBrowser class greenCheckIcon' |
4166 | 797 |
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] |
798 |
! |
|
799 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
800 |
greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
801 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
802 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
803 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
804 |
"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
|
805 |
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
|
806 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
807 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
808 |
self greenLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
809 |
ImageEditor openOnClass:self andSelector:#greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
810 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
811 |
|
3354 | 812 |
<resource: #programImage> |
813 |
||
2892 | 814 |
^ self padLockGreenMiniIcon |
3354 | 815 |
|
816 |
"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
|
817 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
818 |
|
4165 | 819 |
greenThumbUpIcon |
820 |
"This resource specification was automatically generated |
|
821 |
by the ImageEditor of ST/X." |
|
822 |
||
823 |
"Do not manually edit this!! If it is corrupted, |
|
824 |
the ImageEditor may not be able to read the specification." |
|
825 |
||
826 |
" |
|
827 |
self greenThumbUpIcon inspect |
|
828 |
ImageEditor openOnClass:self andSelector:#greenThumbUpIcon |
|
829 |
Icon flushCachedIcons |
|
830 |
" |
|
831 |
||
832 |
<resource: #image> |
|
833 |
||
834 |
^Icon |
|
7968 | 835 |
constantNamed:'SystemBrowser class greenThumbUpIcon' |
4165 | 836 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
837 |
@@@@@@@@@@@@A)<@@@@@@@@G( @@@@@@@@^/@@@@@@@@A9@@@@@@@@C)$@@@@@@@A)+<>]BM]0BZ(->&E''3&@I**J&DN];@@VZ*''G^DV] C%&Y8AY7,@@MQU |
|
838 |
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] |
|
839 |
! |
|
840 |
||
4166 | 841 |
greenThumbUpSmallIcon |
842 |
"This resource specification was automatically generated |
|
843 |
by the ImageEditor of ST/X." |
|
844 |
||
845 |
"Do not manually edit this!! If it is corrupted, |
|
846 |
the ImageEditor may not be able to read the specification." |
|
847 |
||
848 |
" |
|
849 |
self greenThumbUpSmallIcon inspect |
|
850 |
ImageEditor openOnClass:self andSelector:#greenThumbUpSmallIcon |
|
851 |
Icon flushCachedIcons |
|
852 |
" |
|
853 |
||
854 |
<resource: #image> |
|
855 |
||
856 |
^Icon |
|
7968 | 857 |
constantNamed:'SystemBrowser class greenThumbUpSmallIcon' |
4166 | 858 |
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] |
859 |
! |
|
860 |
||
861 |
greyCheckIcon |
|
862 |
"This resource specification was automatically generated |
|
863 |
by the ImageEditor of ST/X." |
|
864 |
||
865 |
"Do not manually edit this!! If it is corrupted, |
|
866 |
the ImageEditor may not be able to read the specification." |
|
867 |
||
868 |
" |
|
869 |
self greyCheckIcon inspect |
|
870 |
ImageEditor openOnClass:self andSelector:#greyCheckIcon |
|
871 |
Icon flushCachedIcons |
|
872 |
" |
|
873 |
||
874 |
<resource: #image> |
|
875 |
||
876 |
^Icon |
|
7968 | 877 |
constantNamed:'SystemBrowser class greyCheckIcon' |
4166 | 878 |
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] |
879 |
! |
|
880 |
||
4165 | 881 |
greyThumbUpIcon |
882 |
"This resource specification was automatically generated |
|
883 |
by the ImageEditor of ST/X." |
|
884 |
||
885 |
"Do not manually edit this!! If it is corrupted, |
|
886 |
the ImageEditor may not be able to read the specification." |
|
887 |
||
888 |
" |
|
889 |
self greyThumbUpIcon inspect |
|
890 |
ImageEditor openOnClass:self andSelector:#greyThumbUpIcon |
|
891 |
Icon flushCachedIcons |
|
892 |
" |
|
893 |
||
894 |
<resource: #image> |
|
895 |
||
896 |
^Icon |
|
7968 | 897 |
constantNamed:'SystemBrowser class greyThumbUpIcon' |
4165 | 898 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
899 |
@@@@@@@@@@ @@4\@@@@@@@@GE@@@@@@@@@\W@@@@@@@@A4@@@@@@@@@4P@@@@@@H@4E2]FAV]0AAEF\SH7X3@DDQPSHC]2@@]ADWI#H#\0@7]7LBM7H@@FY7 |
|
900 |
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] |
|
901 |
! |
|
902 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
903 |
helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
904 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
905 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
906 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
907 |
"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
|
908 |
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
|
909 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
910 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
911 |
self helpIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
912 |
ImageEditor openOnClass:self andSelector:#helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
913 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
914 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
915 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
916 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
917 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
918 |
constantNamed:'SystemBrowser class helpIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
919 |
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
|
920 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
921 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
922 |
hierarchicalListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
923 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
924 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
925 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
926 |
"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
|
927 |
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
|
928 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
929 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
930 |
ImageEditor openOnClass:self andSelector:#hierarchicalListIcon |
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 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
933 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
934 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
935 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
936 |
constantNamed:'SystemBrowser class hierarchicalListIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
937 |
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
|
938 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
939 |
|
5997 | 940 |
ignoredMethodIcon |
941 |
<resource: #programImage> |
|
942 |
||
943 |
^ self padLockBlackMiniIcon |
|
944 |
! |
|
945 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
946 |
imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
947 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
948 |
by the ImageEditor of ST/X." |
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 |
"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
|
951 |
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
|
952 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
953 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
954 |
self imageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
955 |
ImageEditor openOnClass:self andSelector:#imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
956 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
957 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
958 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
959 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
960 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
961 |
constantNamed:'SystemBrowser class imageIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
962 |
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
|
963 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
964 |
|
7992 | 965 |
instrumentationIcon |
966 |
<resource: #programImage> |
|
967 |
||
968 |
^ ToolbarIconLibrary pipette16x16Icon |
|
969 |
! |
|
970 |
||
3675 | 971 |
medium_methodEmptyInheritedIcon |
972 |
"This resource specification was automatically generated |
|
973 |
by the ImageEditor of ST/X." |
|
974 |
||
975 |
"Do not manually edit this!! If it is corrupted, |
|
976 |
the ImageEditor may not be able to read the specification." |
|
977 |
||
978 |
" |
|
979 |
self medium_methodEmptyInheritedIcon inspect |
|
980 |
ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon |
|
981 |
" |
|
982 |
||
983 |
<resource: #image> |
|
984 |
||
985 |
^Icon |
|
7968 | 986 |
constantNamed:'SystemBrowser class medium_methodEmptyInheritedIcon' |
3675 | 987 |
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] |
988 |
! |
|
989 |
||
990 |
medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
991 |
"This resource specification was automatically generated |
|
992 |
by the ImageEditor of ST/X." |
|
993 |
||
994 |
"Do not manually edit this!! If it is corrupted, |
|
995 |
the ImageEditor may not be able to read the specification." |
|
996 |
||
997 |
" |
|
998 |
self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
999 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
4130 | 1000 |
Icon flushCachedIcons |
3675 | 1001 |
" |
1002 |
||
1003 |
<resource: #image> |
|
1004 |
||
1005 |
^Icon |
|
7968 | 1006 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon' |
4130 | 1007 |
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 | 1008 |
! |
1009 |
||
1010 |
medium_methodInheritedFromAboveIcon |
|
1011 |
"This resource specification was automatically generated |
|
1012 |
by the ImageEditor of ST/X." |
|
1013 |
||
1014 |
"Do not manually edit this!! If it is corrupted, |
|
1015 |
the ImageEditor may not be able to read the specification." |
|
1016 |
||
1017 |
" |
|
1018 |
self medium_methodInheritedFromAboveIcon inspect |
|
1019 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon |
|
4130 | 1020 |
Icon flushCachedIcons |
3675 | 1021 |
" |
1022 |
||
1023 |
<resource: #image> |
|
1024 |
||
1025 |
^Icon |
|
7968 | 1026 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveIcon' |
4130 | 1027 |
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 | 1028 |
! |
1029 |
||
1030 |
medium_methodRedefinedBelowIcon |
|
1031 |
"This resource specification was automatically generated |
|
1032 |
by the ImageEditor of ST/X." |
|
1033 |
||
1034 |
"Do not manually edit this!! If it is corrupted, |
|
1035 |
the ImageEditor may not be able to read the specification." |
|
1036 |
||
1037 |
" |
|
1038 |
self medium_methodRedefinedBelowIcon inspect |
|
1039 |
ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon |
|
4130 | 1040 |
Icon flushCachedIcons |
3675 | 1041 |
" |
1042 |
||
1043 |
<resource: #image> |
|
1044 |
||
1045 |
^Icon |
|
7968 | 1046 |
constantNamed:'SystemBrowser class medium_methodRedefinedBelowIcon' |
4130 | 1047 |
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 | 1048 |
! |
1049 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1050 |
menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1051 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1052 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1053 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1054 |
"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
|
1055 |
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
|
1056 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1057 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1058 |
self menuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1059 |
ImageEditor openOnClass:self andSelector:#menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1060 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1061 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1062 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1063 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1064 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1065 |
constantNamed:'SystemBrowser class menuIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1066 |
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
|
1067 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1068 |
|
3675 | 1069 |
methodEmptyInheritedIcon |
1070 |
^ self small_methodEmptyInheritedIcon |
|
1071 |
! |
|
1072 |
||
1073 |
methodInheritedFromAboveAndRedefinedBelowIcon |
|
1074 |
^ self small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1075 |
! |
|
1076 |
||
1077 |
methodInheritedFromAboveIcon |
|
1078 |
^ self small_methodInheritedFromAboveIcon |
|
1079 |
! |
|
1080 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1081 |
methodIsSubclassResponsibilityAndRedefinedBelowIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1082 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1083 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1084 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1085 |
"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
|
1086 |
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
|
1087 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1088 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1089 |
self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1090 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1091 |
Icon flushCachedIcons |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1092 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1093 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1094 |
<resource: #image> |
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 |
^Icon |
7968 | 1097 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon' |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1098 |
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
|
1099 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1100 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1101 |
methodIsSubclassResponsibilityIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1102 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1103 |
by the ImageEditor of ST/X." |
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 |
"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
|
1106 |
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
|
1107 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1108 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1109 |
self methodIsSubclassResponsibilityIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1110 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1111 |
Icon flushCachedIcons |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1112 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1113 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1114 |
<resource: #image> |
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 |
^Icon |
7968 | 1117 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityIcon' |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1118 |
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
|
1119 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1120 |
|
3675 | 1121 |
methodRedefinedBelowIcon |
1122 |
^ self small_methodRedefinedBelowIcon |
|
1123 |
! |
|
1124 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1125 |
nameSpaceIcon |
7827 | 1126 |
<resource: #programImage> |
1127 |
||
1128 |
^ ToolbarIconLibrary nameSpaceBrowserIcon |
|
1129 |
||
1130 |
"Modified: / 20-07-2007 / 09:12:26 / cg" |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1131 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1132 |
|
4308 | 1133 |
notificationClassIcon |
7827 | 1134 |
<resource: #programImage> |
1135 |
||
1136 |
^ ToolbarIconLibrary notificationClassBrowserIcon |
|
1137 |
||
1138 |
"Modified: / 20-07-2007 / 09:11:21 / cg" |
|
4308 | 1139 |
! |
1140 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1141 |
packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1142 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1143 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1144 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1145 |
"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
|
1146 |
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
|
1147 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1148 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1149 |
self packageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1150 |
ImageEditor openOnClass:self andSelector:#packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1151 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1152 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1153 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1154 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1155 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1156 |
constantNamed:'SystemBrowser class packageIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1157 |
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
|
1158 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1159 |
|
6954 | 1160 |
packageIconGraySmall |
1161 |
"This resource specification was automatically generated |
|
1162 |
by the ImageEditor of ST/X." |
|
1163 |
||
1164 |
"Do not manually edit this!! If it is corrupted, |
|
1165 |
the ImageEditor may not be able to read the specification." |
|
1166 |
||
1167 |
" |
|
1168 |
self packageIconGraySmall inspect |
|
1169 |
ImageEditor openOnClass:self andSelector:#packageIconGraySmall |
|
1170 |
Icon flushCachedIcons |
|
1171 |
" |
|
1172 |
||
1173 |
<resource: #image> |
|
1174 |
||
1175 |
^Icon |
|
7968 | 1176 |
constantNamed:'SystemBrowser class packageIconGraySmall' |
6954 | 1177 |
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] |
1178 |
! |
|
1179 |
||
6925 | 1180 |
packageIconGreenSmall |
1181 |
"This resource specification was automatically generated |
|
1182 |
by the ImageEditor of ST/X." |
|
1183 |
||
1184 |
"Do not manually edit this!! If it is corrupted, |
|
1185 |
the ImageEditor may not be able to read the specification." |
|
1186 |
||
1187 |
" |
|
1188 |
self packageIconGreenSmall inspect |
|
1189 |
ImageEditor openOnClass:self andSelector:#packageIconGreenSmall |
|
1190 |
Icon flushCachedIcons |
|
1191 |
" |
|
1192 |
||
1193 |
<resource: #image> |
|
1194 |
||
1195 |
^Icon |
|
7968 | 1196 |
constantNamed:'SystemBrowser class packageIconGreenSmall' |
6955 | 1197 |
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 | 1198 |
! |
1199 |
||
1200 |
packageIconOrangeSmall |
|
1201 |
"This resource specification was automatically generated |
|
1202 |
by the ImageEditor of ST/X." |
|
1203 |
||
1204 |
"Do not manually edit this!! If it is corrupted, |
|
1205 |
the ImageEditor may not be able to read the specification." |
|
1206 |
||
1207 |
" |
|
1208 |
self packageIconOrangeSmall inspect |
|
1209 |
ImageEditor openOnClass:self andSelector:#packageIconOrangeSmall |
|
1210 |
Icon flushCachedIcons |
|
1211 |
" |
|
1212 |
||
1213 |
<resource: #image> |
|
1214 |
||
1215 |
^Icon |
|
7968 | 1216 |
constantNamed:'SystemBrowser class packageIconOrangeSmall' |
6955 | 1217 |
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 | 1218 |
! |
1219 |
||
6901 | 1220 |
packageIconSmall |
1221 |
"This resource specification was automatically generated |
|
1222 |
by the ImageEditor of ST/X." |
|
1223 |
||
1224 |
"Do not manually edit this!! If it is corrupted, |
|
1225 |
the ImageEditor may not be able to read the specification." |
|
1226 |
||
1227 |
" |
|
6925 | 1228 |
self packageIconSmall inspect |
1229 |
ImageEditor openOnClass:self andSelector:#packageIconSmall |
|
6901 | 1230 |
Icon flushCachedIcons |
1231 |
" |
|
1232 |
||
1233 |
<resource: #image> |
|
1234 |
||
1235 |
^Icon |
|
7968 | 1236 |
constantNamed:'SystemBrowser class packageIconSmall' |
6955 | 1237 |
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 | 1238 |
! |
1239 |
||
5997 | 1240 |
padLockBlackMiniIcon |
6333 | 1241 |
<resource: #programImage> |
1242 |
||
1243 |
^ XPToolbarIconLibrary padLockBlackMiniIcon |
|
5997 | 1244 |
! |
1245 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1246 |
padLockBlueMiniIcon |
6333 | 1247 |
<resource: #programImage> |
1248 |
||
1249 |
^ XPToolbarIconLibrary padLockBlueMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1250 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1251 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1252 |
padLockGrayMiniIcon |
6333 | 1253 |
<resource: #programImage> |
1254 |
||
1255 |
^ GenericToolbarIconLibrary padLockGrayMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1256 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1257 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1258 |
padLockGreenMiniIcon |
6333 | 1259 |
<resource: #programImage> |
1260 |
||
1261 |
^ GenericToolbarIconLibrary padLockGreenMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1262 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1263 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1264 |
padLockRedMiniIcon |
6333 | 1265 |
<resource: #programImage> |
1266 |
||
1267 |
^ GenericToolbarIconLibrary padLockRedMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1268 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1269 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1270 |
privateMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1271 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1272 |
|
2748 | 1273 |
^ self padLockRedMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1274 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1275 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1276 |
programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1277 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1278 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1279 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1280 |
"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
|
1281 |
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
|
1282 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1283 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1284 |
self programImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1285 |
ImageEditor openOnClass:self andSelector:#programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1286 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1287 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1288 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1289 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1290 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1291 |
constantNamed:#'SystemBrowser class programImageIcon' |
2846 | 1292 |
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] |
1293 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1294 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1295 |
programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1296 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1297 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1298 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1299 |
"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
|
1300 |
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
|
1301 |
|
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 |
self programMenuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1304 |
ImageEditor openOnClass:self andSelector:#programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1305 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1306 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1307 |
<resource: #image> |
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 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1310 |
constantNamed:#'SystemBrowser class programMenuIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1311 |
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
|
1312 |
! |
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 |
protectedMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1315 |
<resource: #programImage> |
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 |
^ self padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1318 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1319 |
|
4308 | 1320 |
queryClassIcon |
7827 | 1321 |
<resource: #programImage> |
1322 |
||
1323 |
^ ToolbarIconLibrary queryClassBrowserIcon |
|
1324 |
||
1325 |
"Modified: / 20-07-2007 / 09:10:32 / cg" |
|
4308 | 1326 |
! |
1327 |
||
4166 | 1328 |
redCheckIcon |
1329 |
"This resource specification was automatically generated |
|
1330 |
by the ImageEditor of ST/X." |
|
1331 |
||
1332 |
"Do not manually edit this!! If it is corrupted, |
|
1333 |
the ImageEditor may not be able to read the specification." |
|
1334 |
||
1335 |
" |
|
1336 |
self redCheckIcon inspect |
|
1337 |
ImageEditor openOnClass:self andSelector:#redCheckIcon |
|
1338 |
Icon flushCachedIcons |
|
1339 |
" |
|
1340 |
||
1341 |
<resource: #image> |
|
1342 |
||
1343 |
^Icon |
|
1344 |
constantNamed:#'SystemBrowser class redCheckIcon' |
|
1345 |
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] |
|
1346 |
! |
|
1347 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1348 |
redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1349 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1350 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1351 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1352 |
"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
|
1353 |
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
|
1354 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1355 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1356 |
self redLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1357 |
ImageEditor openOnClass:self andSelector:#redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1358 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1359 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1360 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1361 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1362 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1363 |
constantNamed:#'SystemBrowser class redLockIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1364 |
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
|
1365 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1366 |
|
4165 | 1367 |
redThumbDownIcon |
1368 |
"This resource specification was automatically generated |
|
1369 |
by the ImageEditor of ST/X." |
|
1370 |
||
1371 |
"Do not manually edit this!! If it is corrupted, |
|
1372 |
the ImageEditor may not be able to read the specification." |
|
1373 |
||
1374 |
" |
|
1375 |
self redThumbDownIcon inspect |
|
1376 |
ImageEditor openOnClass:self andSelector:#redThumbDownIcon |
|
1377 |
Icon flushCachedIcons |
|
1378 |
" |
|
1379 |
||
1380 |
<resource: #image> |
|
1381 |
||
1382 |
^Icon |
|
1383 |
constantNamed:#'SystemBrowser class redThumbDownIcon' |
|
1384 |
ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1385 |
@@@@@@@@@@@@@L3@!!;\@@@C6<J^7(@@H=-5*<Z);\@@]UUDJ^;(@@MH3N:<Z);\@H3MC^ F;(@@#MO$7);8WB@\#'')K0#;,@@AH @@@@@@@@B2@@@@@@@@@K |
|
1386 |
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] |
|
1387 |
! |
|
1388 |
||
4166 | 1389 |
redThumbDownSmallIcon |
1390 |
"This resource specification was automatically generated |
|
1391 |
by the ImageEditor of ST/X." |
|
1392 |
||
1393 |
"Do not manually edit this!! If it is corrupted, |
|
1394 |
the ImageEditor may not be able to read the specification." |
|
1395 |
||
1396 |
" |
|
1397 |
self redThumbDownSmallIcon inspect |
|
1398 |
ImageEditor openOnClass:self andSelector:#redThumbDownSmallIcon |
|
1399 |
Icon flushCachedIcons |
|
1400 |
" |
|
1401 |
||
1402 |
<resource: #image> |
|
1403 |
||
1404 |
^Icon |
|
1405 |
constantNamed:#'SystemBrowser class redThumbDownSmallIcon' |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
1406 |
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 | 1407 |
! |
1408 |
||
3813 | 1409 |
removeBreakPointIcon2 |
6115 | 1410 |
^ XPToolbarIconLibrary removeBreakPointIcon2 |
3813 | 1411 |
! |
1412 |
||
3675 | 1413 |
small_methodEmptyInheritedIcon |
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 small_methodEmptyInheritedIcon inspect |
|
1422 |
ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon |
|
1423 |
" |
|
1424 |
||
1425 |
<resource: #image> |
|
1426 |
||
1427 |
^Icon |
|
1428 |
constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon' |
|
1429 |
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] |
|
1430 |
! |
|
1431 |
||
1432 |
small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1433 |
"This resource specification was automatically generated |
|
1434 |
by the ImageEditor of ST/X." |
|
1435 |
||
1436 |
"Do not manually edit this!! If it is corrupted, |
|
1437 |
the ImageEditor may not be able to read the specification." |
|
1438 |
||
1439 |
" |
|
1440 |
self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1441 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
4130 | 1442 |
Icon flushCachedIcons |
3675 | 1443 |
" |
1444 |
||
1445 |
<resource: #image> |
|
1446 |
||
1447 |
^Icon |
|
1448 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon' |
|
4130 | 1449 |
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 | 1450 |
! |
1451 |
||
1452 |
small_methodInheritedFromAboveIcon |
|
1453 |
"This resource specification was automatically generated |
|
1454 |
by the ImageEditor of ST/X." |
|
1455 |
||
1456 |
"Do not manually edit this!! If it is corrupted, |
|
1457 |
the ImageEditor may not be able to read the specification." |
|
1458 |
||
1459 |
" |
|
1460 |
self small_methodInheritedFromAboveIcon inspect |
|
1461 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon |
|
4130 | 1462 |
Icon flushCachedIcons |
3675 | 1463 |
" |
1464 |
||
1465 |
<resource: #image> |
|
1466 |
||
1467 |
^Icon |
|
1468 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon' |
|
4130 | 1469 |
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 | 1470 |
! |
1471 |
||
1472 |
small_methodRedefinedBelowIcon |
|
1473 |
"This resource specification was automatically generated |
|
1474 |
by the ImageEditor of ST/X." |
|
1475 |
||
1476 |
"Do not manually edit this!! If it is corrupted, |
|
1477 |
the ImageEditor may not be able to read the specification." |
|
1478 |
||
1479 |
" |
|
1480 |
self small_methodRedefinedBelowIcon inspect |
|
1481 |
ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon |
|
4130 | 1482 |
Icon flushCachedIcons |
3675 | 1483 |
" |
1484 |
||
1485 |
<resource: #image> |
|
1486 |
||
1487 |
^Icon |
|
1488 |
constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon' |
|
4130 | 1489 |
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 | 1490 |
! |
1491 |
||
3354 | 1492 |
startableClassIcon |
7827 | 1493 |
<resource: #programImage> |
1494 |
||
1495 |
^ ToolbarIconLibrary startableClassBrowserIcon |
|
1496 |
||
1497 |
"Created: / 05-11-2001 / 09:50:16 / cg" |
|
1498 |
"Modified: / 20-07-2007 / 09:09:40 / cg" |
|
3354 | 1499 |
! |
1500 |
||
1501 |
startableVisualAppIcon |
|
7827 | 1502 |
<resource: #programImage> |
1503 |
||
1504 |
^ ToolbarIconLibrary visualStartableClassBrowserIcon |
|
1505 |
||
1506 |
"Created: / 05-11-2001 / 09:49:00 / cg" |
|
1507 |
"Modified: / 20-07-2007 / 09:08:34 / cg" |
|
3354 | 1508 |
! |
1509 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1510 |
stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1511 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1512 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1513 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1514 |
"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
|
1515 |
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
|
1516 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1517 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1518 |
self stopIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1519 |
ImageEditor openOnClass:self andSelector:#stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1520 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1521 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1522 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1523 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1524 |
^Icon |
3813 | 1525 |
constantNamed:#'SystemBrowser class stopIcon' |
1526 |
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
|
1527 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1528 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1529 |
tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1530 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1531 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1532 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1533 |
"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
|
1534 |
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
|
1535 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1536 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1537 |
self tabListIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1538 |
ImageEditor openOnClass:self andSelector:#tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1539 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1540 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1541 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1542 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1543 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1544 |
constantNamed:#'SystemBrowser class tabListIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1545 |
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
|
1546 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1547 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1548 |
tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1549 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1550 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1551 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1552 |
"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
|
1553 |
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
|
1554 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1555 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1556 |
self tableColumnsIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1557 |
ImageEditor openOnClass:self andSelector:#tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1558 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1559 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1560 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1561 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1562 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1563 |
constantNamed:#'SystemBrowser class tableColumnsIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1564 |
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
|
1565 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1566 |
|
4150 | 1567 |
testCaseClassIcon |
1568 |
"This resource specification was automatically generated |
|
1569 |
by the ImageEditor of ST/X." |
|
1570 |
||
1571 |
"Do not manually edit this!! If it is corrupted, |
|
1572 |
the ImageEditor may not be able to read the specification." |
|
1573 |
||
1574 |
" |
|
1575 |
self testCaseClassIcon inspect |
|
1576 |
ImageEditor openOnClass:self andSelector:#testCaseClassIcon |
|
1577 |
Icon flushCachedIcons |
|
1578 |
" |
|
1579 |
||
1580 |
<resource: #image> |
|
1581 |
||
1582 |
^Icon |
|
1583 |
constantNamed:#'SystemBrowser class testCaseClassIcon' |
|
1584 |
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] |
|
1585 |
! |
|
1586 |
||
1587 |
testCaseClassIconFor:cls |
|
4167 | 1588 |
<resource: #programImage> |
1589 |
||
4150 | 1590 |
|lastResult| |
1591 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
1592 |
lastResult := cls lastTestRunResultOrNil. |
4150 | 1593 |
|
1594 |
lastResult == true ifTrue:[ |
|
1595 |
^ self testCasePassedIcon |
|
1596 |
]. |
|
1597 |
lastResult == false ifTrue:[ |
|
1598 |
^ self testCaseFailedIcon |
|
1599 |
]. |
|
1600 |
^ self testCaseUnknownResultIcon |
|
6848 | 1601 |
|
1602 |
"Modified: / 06-08-2006 / 11:14:12 / cg" |
|
4150 | 1603 |
! |
1604 |
||
1605 |
testCaseFailedIcon |
|
4166 | 1606 |
<resource: #programImage> |
1607 |
||
1608 |
"/ ^ self redThumbDownIcon |
|
1609 |
^ self redThumbDownSmallIcon |
|
1610 |
"/ ^ self redCheckIcon |
|
4150 | 1611 |
! |
1612 |
||
1613 |
testCasePassedIcon |
|
4166 | 1614 |
<resource: #programImage> |
1615 |
||
1616 |
"/ ^ self greenThumbUpIcon |
|
1617 |
^ self greenThumbUpSmallIcon |
|
1618 |
"/ ^ self greenCheckIcon |
|
4150 | 1619 |
! |
1620 |
||
1621 |
testCaseUnknownResultIcon |
|
4166 | 1622 |
<resource: #programImage> |
1623 |
||
1624 |
"/ ^ self greyThumbUpIcon |
|
1625 |
^ self greyCheckIcon |
|
4150 | 1626 |
! |
1627 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1628 |
timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1629 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1630 |
by the ImageEditor of ST/X." |
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 |
"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
|
1633 |
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
|
1634 |
|
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 |
self timeIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1637 |
ImageEditor openOnClass:self andSelector:#timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1638 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1639 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1640 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1641 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1642 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1643 |
constantNamed:#'SystemBrowser class timeIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1644 |
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
|
1645 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1646 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1647 |
traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1648 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1649 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1650 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1651 |
"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
|
1652 |
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
|
1653 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1654 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1655 |
self traceIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1656 |
ImageEditor openOnClass:self andSelector:#traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1657 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1658 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1659 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1660 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1661 |
^Icon |
8478
ca4c5daa3fb3
image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents:
8281
diff
changeset
|
1662 |
constantNamed:#'SystemBrowser class traceIcon' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1663 |
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 | 1664 |
! |
1665 |
||
1666 |
visualStartableClassIcon |
|
1667 |
"This resource specification was automatically generated |
|
1668 |
by the ImageEditor of ST/X." |
|
1669 |
||
1670 |
"Do not manually edit this!! If it is corrupted, |
|
1671 |
the ImageEditor may not be able to read the specification." |
|
1672 |
||
1673 |
" |
|
1674 |
self visualStartableClassIcon inspect |
|
1675 |
ImageEditor openOnClass:self andSelector:#visualStartableClassIcon |
|
1676 |
" |
|
1677 |
||
1678 |
<resource: #image> |
|
1679 |
||
1680 |
^Icon |
|
2892 | 1681 |
constantNamed:#'SystemBrowser class visualStartableClassIcon' |
3354 | 1682 |
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] |
1683 |
||
1684 |
"Modified: / 5.11.2001 / 09:49:30 / cg" |
|
2892 | 1685 |
! |
1686 |
||
4275 | 1687 |
warningClassIcon |
7827 | 1688 |
<resource: #programImage> |
1689 |
||
1690 |
^ ToolbarIconLibrary warningClassBrowserIcon |
|
1691 |
||
1692 |
"Modified: / 20-07-2007 / 09:04:39 / cg" |
|
4275 | 1693 |
! |
1694 |
||
2892 | 1695 |
watchIcon |
1696 |
"This resource specification was automatically generated |
|
1697 |
by the ImageEditor of ST/X." |
|
1698 |
||
1699 |
"Do not manually edit this!! If it is corrupted, |
|
1700 |
the ImageEditor may not be able to read the specification." |
|
1701 |
||
1702 |
" |
|
1703 |
self watchIcon inspect |
|
1704 |
ImageEditor openOnClass:self andSelector:#watchIcon |
|
1705 |
" |
|
1706 |
||
1707 |
<resource: #image> |
|
1708 |
||
1709 |
^Icon |
|
1710 |
constantNamed:#'SystemBrowser class watchIcon' |
|
1711 |
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 | 1712 |
! |
1713 |
||
4143 | 1714 |
windowClassIcon |
7827 | 1715 |
<resource: #programImage> |
1716 |
||
1717 |
^ ToolbarIconLibrary windowClassBrowserIcon |
|
1718 |
||
1719 |
"Modified: / 20-07-2007 / 09:05:57 / cg" |
|
4143 | 1720 |
! |
1721 |
||
3354 | 1722 |
windowIcon |
1723 |
"This resource specification was automatically generated |
|
1724 |
by the ImageEditor of ST/X." |
|
1725 |
||
1726 |
"Do not manually edit this!! If it is corrupted, |
|
1727 |
the ImageEditor may not be able to read the specification." |
|
1728 |
||
1729 |
" |
|
1730 |
self windowIcon inspect |
|
1731 |
ImageEditor openOnClass:self andSelector:#windowIcon |
|
1732 |
" |
|
1733 |
||
1734 |
<resource: #image> |
|
1735 |
||
1736 |
^Icon |
|
1737 |
constantNamed:#'SystemBrowser class windowIcon' |
|
1738 |
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] |
|
1739 |
||
1740 |
"Created: / 5.11.2001 / 09:39:03 / cg" |
|
2846 | 1741 |
! ! |
2692 | 1742 |
|
1203 | 1743 |
!SystemBrowser class methodsFor:'interface specs'! |
1744 |
||
1367 | 1745 |
metaSpec |
1746 |
"UIPainter new openOnClass: self andSelector: #metaSpec" |
|
1747 |
||
1748 |
<resource: #canvas> |
|
1749 |
^#(#FullSpec |
|
1750 |
#window: |
|
1751 |
#(#WindowSpec |
|
1752 |
#label: 'Unlabeled Canvas' |
|
1753 |
#bounds: #(#Rectangle 27 249 325 334 ) ) |
|
1754 |
#component: |
|
1755 |
#(#SpecCollection |
|
1756 |
#collection: #( |
|
1757 |
#(#RadioButtonSpec |
|
1758 |
#layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) |
|
1759 |
#name: #instanceSwitch |
|
1760 |
#model: #metaHolder |
|
1761 |
#callbacksSpec: |
|
1762 |
#(#UIEventCallbackSubSpec |
|
1763 |
#requestValueChangeSelector: #changeRequest ) |
|
1764 |
#label: 'instance' |
|
1765 |
#select: false ) |
|
1766 |
#(#RadioButtonSpec |
|
1767 |
#layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) |
|
1768 |
#name: #classSwitch |
|
1769 |
#model: #metaHolder |
|
1770 |
#callbacksSpec: |
|
1771 |
#(#UIEventCallbackSubSpec |
|
1772 |
#requestValueChangeSelector: #changeRequest ) |
|
1773 |
#label: 'class' |
|
1774 |
#select: true ) ) ) ) |
|
1775 |
||
1776 |
"Created: / 30.10.1997 / 19:07:29 / cg" |
|
1777 |
! |
|
1778 |
||
1203 | 1779 |
methodMoveDialogSpec |
1780 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
1781 |
||
1782 |
"do not manually edit this - the painter/builder may not be able to |
|
1783 |
handle the specification if its corrupted." |
|
1784 |
||
1785 |
" |
|
1786 |
UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec |
|
1787 |
SystemBrowser new openDialogInterface:#methodMoveDialogSpec |
|
1788 |
" |
|
1789 |
||
1790 |
<resource: #canvas> |
|
1791 |
||
1792 |
^ |
|
1793 |
||
1794 |
#(#FullSpec |
|
1795 |
#'window:' |
|
1796 |
#(#WindowSpec |
|
1797 |
#'name:' 'uIPainterView' |
|
1798 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1799 |
#'label:' 'move method' |
|
1800 |
#'bounds:' #(#Rectangle 0 0 279 118) |
|
1801 |
) |
|
1802 |
#'component:' |
|
1803 |
#(#SpecCollection |
|
1804 |
#'collection:' |
|
1805 |
#( |
|
1806 |
#(#HorizontalPanelViewSpec |
|
1807 |
#'name:' 'horizontalPanelView' |
|
1808 |
#'layout:' #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0) |
|
1809 |
#'component:' |
|
1810 |
#(#SpecCollection |
|
1811 |
#'collection:' |
|
1812 |
#( |
|
1813 |
#(#ActionButtonSpec |
|
1814 |
#'name:' 'actionButton2' |
|
1815 |
#'label:' 'cancel' |
|
1816 |
#'tabable:' true |
|
1817 |
#'model:' #cancel |
|
1818 |
#'extent:' #(#Point 133 27) |
|
1819 |
) |
|
1820 |
#(#ActionButtonSpec |
|
1821 |
#'name:' 'actionButton1' |
|
1822 |
#'label:' 'move' |
|
1823 |
#'tabable:' true |
|
1824 |
#'isDefault:' true |
|
1825 |
#'model:' #accept |
|
1826 |
#'extent:' #(#Point 134 27) |
|
1827 |
) |
|
1828 |
) |
|
1829 |
) |
|
1830 |
#'level:' 0 |
|
1831 |
#'horizontalLayout:' #fitSpace |
|
1832 |
#'verticalLayout:' #center |
|
1833 |
#'horizontalSpace:' 4 |
|
1834 |
#'verticalSpace:' 4 |
|
1835 |
) |
|
1836 |
#(#LabelSpec |
|
1837 |
#'name:' 'label' |
|
1838 |
#'layout:' #(#LayoutFrame 2 0 2 0 -2 1.0 25 0) |
|
1839 |
#'label:' 'move current method to which class:' |
|
1840 |
#'style:' |
|
1841 |
#(#Font |
|
1842 |
'helvetica' 'medium' |
|
1843 |
'roman' 12 |
|
1844 |
) |
|
1845 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0) |
|
1846 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993) |
|
1847 |
#'adjust:' #left |
|
1848 |
) |
|
1849 |
#(#ComboBoxSpec |
|
1850 |
#'name:' 'comboBox1' |
|
1851 |
#'layout:' #(#LayoutFrame 2 0 29 0 -2 1.0 51 0) |
|
1852 |
#'tabable:' true |
|
1853 |
#'model:' #className |
|
1854 |
#'comboList:' #classList |
|
1855 |
) |
|
1856 |
) |
|
1857 |
) |
|
1858 |
) |
|
1859 |
||
1860 |
"Created: 25.6.1997 / 13:45:20 / cg" |
|
1861 |
"Modified: 25.6.1997 / 13:46:44 / cg" |
|
1862 |
! ! |
|
1863 |
||
4860 | 1864 |
!SystemBrowser class methodsFor:'private-helpers'! |
36 | 1865 |
|
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1866 |
askForPackageChangeFrom:oldPkg to:newPkg |
3626 | 1867 |
|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
|
1868 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1869 |
box := OptionBox |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1870 |
title: |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1871 |
('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
|
1872 |
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
|
1873 |
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
|
1874 |
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
|
1875 |
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
|
1876 |
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
|
1877 |
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
|
1878 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1879 |
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
|
1880 |
bindWith:(oldPkg allBold) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1881 |
with:(newPkg allBold)) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1882 |
numberOfOptions:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1883 |
|
3476 | 1884 |
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
|
1885 |
box defaultButtonIndex:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1886 |
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
|
1887 |
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
|
1888 |
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
|
1889 |
box addVerticalSpace:10. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1890 |
chk := box addCheckBox:'Dont show this dialog again (never keep)' on:(notAgain := false asValue). |
8158
f7b891e7fb75
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
8139
diff
changeset
|
1891 |
box preferredExtent:(box preferredExtent + (0 @ chk preferredHeight) + (0@10)). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1892 |
box resize. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1893 |
box showAtPointer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1894 |
box destroy. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1895 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1896 |
(answer ~~ #cancel) ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1897 |
notAgain value ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1898 |
Class catchMethodRedefinitions:false. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1899 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1900 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1901 |
^ answer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1902 |
! |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1903 |
|
203 | 1904 |
showNoneFound |
3244 | 1905 |
self warn:(self classResources string:'None found.'). |
203 | 1906 |
! |
36 | 1907 |
|
203 | 1908 |
showNoneFound:what |
1620 | 1909 |
|rs| |
1910 |
||
1911 |
rs := self classResources. |
|
3244 | 1912 |
self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs. |
203 | 1913 |
! ! |
36 | 1914 |
|
4860 | 1915 |
!SystemBrowser class methodsFor:'private-instance creation'! |
203 | 1916 |
|
1917 |
newWithLabel:aString setupBlock:aBlock |
|
1918 |
"common helper method for all creation methods" |
|
1919 |
||
1920 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current |
|
36 | 1921 |
! |
1922 |
||
203 | 1923 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation |
1924 |
"common helper method for all creation methods" |
|
36 | 1925 |
|
203 | 1926 |
|newBrowser| |
45 | 1927 |
|
203 | 1928 |
newBrowser := BrowserView onDevice:aWorkstation. |
1929 |
newBrowser title:aString. |
|
1930 |
aBlock value:newBrowser. |
|
45 | 1931 |
|
203 | 1932 |
newBrowser open. |
1933 |
^ newBrowser |
|
1934 |
! |
|
45 | 1935 |
|
203 | 1936 |
newWithLabel:aString setupSelector:aSymbol arg:arg |
1937 |
"common helper method for all creation methods" |
|
36 | 1938 |
|
203 | 1939 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current |
36 | 1940 |
! |
1941 |
||
203 | 1942 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation |
1943 |
"common helper method for all creation methods" |
|
1944 |
||
1945 |
|newBrowser| |
|
52 | 1946 |
|
203 | 1947 |
newBrowser := BrowserView onDevice:aWorkstation. |
1948 |
newBrowser title:aString. |
|
1949 |
newBrowser perform:aSymbol with:arg. |
|
1950 |
newBrowser open. |
|
1951 |
^ newBrowser |
|
1952 |
! ! |
|
1953 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1954 |
!SystemBrowser class methodsFor:'special search startup'! |
203 | 1955 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1956 |
allCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1957 |
"return a collection of methods which send aSelector." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1958 |
|
4270 | 1959 |
^ 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
|
1960 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1961 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1962 |
SystemBrowser allCallsOn:#at:put: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1963 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1964 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1965 |
"Created: 24.1.1997 / 19:42:57 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1966 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1967 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1968 |
allCallsOn:aSelectorString in:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1969 |
"return a collection of methods which send aSelector. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1970 |
Methods from classes in aCollectionOfClasses are searched only." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1971 |
|
4270 | 1972 |
^ 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
|
1973 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1974 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1975 |
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
|
1976 |
"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
|
1977 |
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
|
1978 |
|
4270 | 1979 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
1980 |
||
1981 |
" |
|
1982 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
|
1983 |
" |
|
1984 |
||
1985 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
|
1986 |
! |
|
1987 |
||
1988 |
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
1989 |
"return a collection of methods which send aSelector. |
|
1990 |
Methods from classes in aCollectionOfClasses are searched only." |
|
1991 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
1992 |
|sel searchBlock classesSearched| |
3471
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
1993 |
|
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
1994 |
aSelectorString size == 0 ifTrue:[ ^ #() ]. |
4270 | 1995 |
doMatch ifFalse:[ |
5090 | 1996 |
ignoreCase ifFalse:[ |
1997 |
sel := aSelectorString asSymbolIfInterned. |
|
1998 |
sel isNil ifTrue:[ |
|
1999 |
^ #() "/ none (no such selector) |
|
2000 |
]. |
|
4270 | 2001 |
]. |
2002 |
]. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2003 |
|
2901 | 2004 |
classesSearched := aCollectionOfClasses. |
4270 | 2005 |
(doMatch and:[aSelectorString includesMatchCharacters]) ifFalse:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2006 |
"/ exclude javaClasses, if selector cannot be a valid java-selector |
4270 | 2007 |
(aSelectorString includes:$() ifFalse:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2008 |
classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not]. |
2846 | 2009 |
]. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2010 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2011 |
|
4270 | 2012 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
4332 | 2013 |
searchBlock isNil ifTrue:[ |
2014 |
^ #() "/ none (no such selector) |
|
2015 |
]. |
|
2901 | 2016 |
^ self allMethodsIn:classesSearched where:searchBlock |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2017 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2018 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2019 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2020 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2021 |
|
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2022 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2023 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2024 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2025 |
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2026 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2027 |
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
|
2028 |
considered. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2029 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2030 |
|
2769 | 2031 |
|list activePriority| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2032 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2033 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2034 |
since this may take a long time, lower my priority ... |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2035 |
" |
2769 | 2036 |
activePriority := Processor activePriority. |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
2037 |
Processor activeProcess |
2769 | 2038 |
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
|
2039 |
do:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2040 |
|checkedClasses checkBlock detectedMethods| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2041 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2042 |
checkedClasses := IdentitySet new. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2043 |
list := OrderedCollection new. |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2044 |
detectedMethods := IdentitySet new. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2045 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2046 |
checkBlock := [:cls | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2047 |
(checkedClasses includes:cls) ifFalse:[ |
8554
441ea25ad1fd
Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents:
8505
diff
changeset
|
2048 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
2882 | 2049 |
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
|
2050 |
] ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2051 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2052 |
(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
|
2053 |
"/ 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
|
2054 |
(detectedMethods includes:method) ifFalse:[ |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2055 |
list add:method. |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2056 |
detectedMethods add:method |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2057 |
] |
996
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 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2060 |
checkedClasses add:cls. |
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 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2063 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2064 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2065 |
aCollectionOfClasses do:[:aClass | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2066 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2067 |
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
|
2068 |
implementors or senders) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2069 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2070 |
wantInst ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2071 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2072 |
checkBlock value:aClass |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2073 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2074 |
wantClass ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2075 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2076 |
checkBlock value:(aClass class) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2077 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2078 |
Processor yield |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2079 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2080 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2081 |
^ list |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2082 |
|
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2083 |
"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
|
2084 |
"Modified: / 14.12.1999 / 14:59:02 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2085 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2086 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2087 |
allMethodsIn:aCollectionOfClasses where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2088 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2089 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2090 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2091 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2092 |
allMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2093 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2094 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2095 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2096 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2097 |
"Created: 24.1.1997 / 19:41:49 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2098 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2099 |
|
203 | 2100 |
aproposSearch:aString |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2101 |
"browse all methods, which have aString in their selector." |
203 | 2102 |
|
2103 |
^ self aproposSearch:aString in:(Smalltalk allClasses) |
|
75 | 2104 |
|
52 | 2105 |
! |
2106 |
||
203 | 2107 |
aproposSearch:aString in:aCollectionOfClasses |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2108 |
"browse all methods, which have aString. |
203 | 2109 |
This is relatively slow, since all source must be processed." |
52 | 2110 |
|
203 | 2111 |
|matchString list s searchBlock browser| |
52 | 2112 |
|
203 | 2113 |
matchString := '*' , aString , '*'. |
52 | 2114 |
|
203 | 2115 |
list := OrderedCollection new. |
52 | 2116 |
|
203 | 2117 |
(aString includesMatchCharacters) ifTrue:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2118 |
s := '*' , aString asLowercase , '*'. |
256 | 2119 |
"a matchString" |
2120 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0]. |
|
203 | 2121 |
] ifFalse:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2122 |
searchBlock := [:source | (source findString:aString asLowercase) ~~ 0] |
203 | 2123 |
]. |
52 | 2124 |
|
203 | 2125 |
browser := self browseMethodsIn:aCollectionOfClasses |
256 | 2126 |
where:[:class :method :sel | |
2127 |
|comment| |
|
52 | 2128 |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2129 |
(searchBlock value:sel asLowercase) |
256 | 2130 |
] |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
2131 |
title:(self classResources string:'selectors containing: %1' with:aString). |
52 | 2132 |
|
203 | 2133 |
browser notNil ifTrue:[ |
256 | 2134 |
browser autoSearch:aString |
203 | 2135 |
]. |
2136 |
^ browser |
|
52 | 2137 |
|
2138 |
" |
|
203 | 2139 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses) |
2140 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses) |
|
2141 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses) |
|
2142 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses) |
|
52 | 2143 |
" |
203 | 2144 |
|
256 | 2145 |
"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
|
2146 |
! |
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
2147 |
|
203 | 2148 |
browseAllCallsOn:aSelectorString |
4490 | 2149 |
"launch a browser for all senders of aSelector. |
2150 |
Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences" |
|
52 | 2151 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2152 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2153 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2154 |
in:(Smalltalk allClasses) |
52 | 2155 |
|
2156 |
" |
|
203 | 2157 |
SystemBrowser browseAllCallsOn:#+ |
52 | 2158 |
" |
256 | 2159 |
|
2160 |
"Created: 9.12.1995 / 18:00:41 / cg" |
|
666 | 2161 |
"Modified: 10.7.1996 / 10:26:15 / cg" |
2162 |
! |
|
2163 |
||
2164 |
browseAllCallsOn:aSelectorString in:aSetOfClasses |
|
2165 |
"launch a browser for all senders of aSelector" |
|
2166 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2167 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2168 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2169 |
in:aSetOfClasses |
4200 | 2170 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
666 | 2171 |
|
2172 |
" |
|
2173 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
|
2174 |
" |
|
2175 |
||
2176 |
"Created: 10.7.1996 / 10:25:49 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2177 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
52 | 2178 |
! |
2179 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2180 |
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
|
2181 |
"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
|
2182 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2183 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2184 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2185 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2186 |
ignoreCase:ignoreCase |
6476 | 2187 |
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
|
2188 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2189 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2190 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2191 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2192 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2193 |
"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
|
2194 |
"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
|
2195 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2196 |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2197 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
52 | 2198 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
2199 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2200 |
|list list2 browser selWithColon title rs| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2201 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2202 |
title := titleArg. |
4200 | 2203 |
|
4270 | 2204 |
list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
4200 | 2205 |
list isEmpty ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2206 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2207 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2208 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2209 |
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
|
2210 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2211 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2212 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2213 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2214 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2215 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2216 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2217 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2218 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2219 |
(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
|
2220 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2221 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2222 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2223 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2224 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2225 |
title := title , ':'. |
4200 | 2226 |
]. |
2227 |
||
2228 |
browser := self browseMethods:list title:title. |
|
52 | 2229 |
browser notNil ifTrue:[ |
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2230 |
|s| |
52 | 2231 |
|
8139
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2232 |
"/ " |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2233 |
"/ kludge for now, if its a multipart selector, |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2234 |
"/ no easy search is (as yet) possible |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2235 |
"/ " |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2236 |
"/ s := aSelectorString. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2237 |
"/ (s includes:$:) ifTrue:[ |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2238 |
"/ s := s copyTo:(s indexOf:$:) |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2239 |
"/ ]. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2240 |
"/ browser autoSearch:s |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2241 |
browser autoSearchSelector:aSelectorString ignoreCase:ignoreCase doMatch:true. |
52 | 2242 |
]. |
2243 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2244 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2245 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2246 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2247 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2248 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2249 |
title:'just a test' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2250 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2251 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2252 |
"Modified: 24.1.1997 / 19:48:54 / cg" |
52 | 2253 |
! |
2254 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2255 |
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
|
2256 |
"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
|
2257 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2258 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2259 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2260 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2261 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2262 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2263 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2264 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2265 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2266 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2267 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2268 |
title:'just a test' |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2269 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2270 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2271 |
"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
|
2272 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2273 |
|
203 | 2274 |
browseCallsOn:aSelectorString under:aClass |
2275 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
2276 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2277 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2278 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2279 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2280 |
title:(self classResources |
6476 | 2281 |
string:'Senders of: %1 (in and below %2)' |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2282 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2283 |
with:aClass name) |
203 | 2284 |
|
2285 |
" |
|
256 | 2286 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 2287 |
" |
256 | 2288 |
|
2289 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2290 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 2291 |
! |
2292 |
||
2293 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2294 |
"launch a browser for all methods in aClass where the classVar named |
|
2295 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
2296 |
classvar is modified" |
|
2297 |
||
2298 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2299 |
! |
|
2300 |
||
2301 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2302 |
"launch a browser for all methods in aCollectionOfClasses, |
|
2303 |
where the classVar named aString is referenced; |
|
2304 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2305 |
||
2306 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2307 |
! |
|
2308 |
||
2309 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
2310 |
"launch a browser for all methods in aClass and subclasses |
|
2311 |
where the classVar named aString is referenced; |
|
2312 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2313 |
||
2314 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
2315 |
||
2316 |
! |
|
2317 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2318 |
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
|
2319 |
"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
|
2320 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2321 |
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
|
2322 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2323 |
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
|
2324 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2325 |
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
|
2326 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2327 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
2328 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2329 |
|
1356 | 2330 |
"/ search for any resource can be done without looking |
2331 |
"/ at the source ... |
|
2332 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
2333 |
searchBlock := [:class :method :s | method hasResource] |
|
2334 |
] ifFalse:[ |
|
2335 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2336 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2337 |
|
1356 | 2338 |
found := false. |
2339 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2340 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2341 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2342 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2343 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2344 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2345 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2346 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2347 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2348 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2349 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2350 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2351 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2352 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2353 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2354 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2355 |
] |
1356 | 2356 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2357 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2358 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2359 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2360 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2361 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2362 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2363 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2364 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2365 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2366 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2367 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2368 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2369 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2370 |
] |
1356 | 2371 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2372 |
found := item match:val printString |
1356 | 2373 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2374 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2375 |
found := item match:rsrc printString |
1356 | 2376 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2377 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2378 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2379 |
] |
1356 | 2380 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2381 |
]. |
1356 | 2382 |
found |
2383 |
]. |
|
2384 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2385 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2386 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2387 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2388 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2389 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2390 |
browser autoSearch:'resource:' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2391 |
]. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2392 |
^ browser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2393 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2394 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2395 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2396 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2397 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2398 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2399 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2400 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2401 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2402 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2403 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2404 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2405 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2406 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2407 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2408 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2409 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2410 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2411 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2412 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2413 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2414 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2415 |
"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
|
2416 |
! |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2417 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2418 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2419 |
"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
|
2420 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2421 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2422 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2423 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2424 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2425 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2426 |
title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2427 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2428 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2429 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2430 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2431 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2432 |
title:'methods accessing styleSheet values' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2433 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2434 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2435 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2436 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2437 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2438 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2439 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2440 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2441 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2442 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2443 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2444 |
title:'methods with a resource' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2445 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2446 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2447 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2448 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2449 |
|
203 | 2450 |
browseForString:aString |
2451 |
"launch a browser for all methods containing a string in their source. |
|
2452 |
This may be slow, since source-code has to be scanned." |
|
2453 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2454 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2455 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2456 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 2457 |
! |
2458 |
||
2459 |
browseForString:aString in:aCollectionOfClasses |
|
2460 |
"launch a browser for all methods in aCollectionOfClasses |
|
2461 |
containing a string in their source. |
|
2462 |
This may be slow, since source-code has to be scanned." |
|
2463 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2464 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2465 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2466 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2467 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2468 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2469 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2470 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2471 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2472 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2473 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2474 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2475 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2476 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2477 |
! |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2478 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2479 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2480 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2481 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2482 |
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
|
2483 |
|
203 | 2484 |
|browser searchBlock title s| |
2485 |
||
6476 | 2486 |
title := self classResources string:'Methods containing: %1' with:aString displayString. |
203 | 2487 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2488 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2489 |
or:[ignoreCase]) ifTrue:[ |
256 | 2490 |
s := '*' , aString , '*'. |
2491 |
"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
|
2492 |
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
|
2493 |
|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
|
2494 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2495 |
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
|
2496 |
('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
|
2497 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2498 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2499 |
s match:src ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2500 |
] |
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
|
2501 |
] |
203 | 2502 |
] 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
|
2503 |
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
|
2504 |
|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
|
2505 |
|
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
2506 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2507 |
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
|
2508 |
('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
|
2509 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2510 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2511 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2512 |
] |
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
|
2513 |
] |
203 | 2514 |
]. |
2515 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
2516 |
||
2517 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2518 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 2519 |
]. |
2520 |
^ browser |
|
2521 |
||
2522 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2523 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2524 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 2525 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
2526 |
" |
|
2527 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2528 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2529 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 2530 |
! |
2531 |
||
2532 |
browseForSymbol:aSymbol |
|
2533 |
"launch a browser for all methods referencing aSymbol" |
|
2534 |
||
666 | 2535 |
^ self |
2536 |
browseForSymbol:aSymbol |
|
6476 | 2537 |
title:(self classResources string:'Users of: %1' with:aSymbol) |
666 | 2538 |
warnIfNone:true |
256 | 2539 |
|
2540 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 2541 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
2542 |
! |
|
2543 |
||
2544 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
2545 |
"launch a browser for all methods referencing aSymbol" |
|
2546 |
||
7914 | 2547 |
^ self |
2548 |
browseForSymbol:aSymbol |
|
2549 |
in:aSetOfClasses |
|
2550 |
title:title |
|
2551 |
warnIfNone:doWarn |
|
2552 |
searchFor:aSymbol |
|
203 | 2553 |
! |
2554 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2555 |
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
|
2556 |
"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
|
2557 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2558 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2559 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2560 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2561 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2562 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2563 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2564 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2565 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2566 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2567 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2568 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2569 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2570 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2571 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2572 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2573 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2574 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2575 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2576 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2577 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2578 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2579 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2580 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2581 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2582 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2583 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2584 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2585 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2586 |
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
|
2587 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2588 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2589 |
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
|
2590 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2591 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2592 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2593 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2594 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2595 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2596 |
^ browser |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2597 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2598 |
"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
|
2599 |
"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
|
2600 |
"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
|
2601 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2602 |
|
2409 | 2603 |
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
|
2604 |
"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
|
2605 |
|
203 | 2606 |
|browser searchBlock sym| |
2607 |
||
2608 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
375 | 2609 |
"a matchString" |
2610 |
searchBlock := [:c :m :s | |
|
2439 | 2611 |
m referencesGlobalMatching:aSymbol |
2612 |
"/ (m literalsDetect:[:aLiteral| |
|
2613 |
"/ (aLiteral isMemberOf:Symbol) |
|
2614 |
"/ and:[aSymbol match:aLiteral] |
|
2615 |
"/ ] ifNone:nil) notNil |
|
375 | 2616 |
]. |
203 | 2617 |
] ifFalse:[ |
375 | 2618 |
" |
2619 |
can do a faster search |
|
2620 |
" |
|
2621 |
sym := aSymbol asSymbolIfInterned. |
|
2622 |
sym isNil ifTrue:[ |
|
2409 | 2623 |
actionIfNoneFound value. |
375 | 2624 |
^ nil |
2625 |
]. |
|
203 | 2626 |
|
375 | 2627 |
searchBlock := [:c :m :s | |
2439 | 2628 |
m referencesGlobal:sym |
2629 |
"/ (m literalsDetect:[:aLiteral| |
|
2630 |
"/ (sym == aLiteral) |
|
2631 |
"/ ] ifNone:nil) notNil |
|
375 | 2632 |
]. |
203 | 2633 |
]. |
2409 | 2634 |
|
2635 |
WarningSignal ignoreIn:[ |
|
2636 |
InformationSignal ignoreIn:[ |
|
375 | 2637 |
browser := self browseMethodsWhere:searchBlock title:title. |
2638 |
] |
|
2409 | 2639 |
]. |
2640 |
browser isNil ifTrue:[ |
|
2641 |
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
|
2642 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2643 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2644 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2645 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2646 |
browser autoSearch:searchString |
203 | 2647 |
]. |
2648 |
^ browser |
|
375 | 2649 |
|
2439 | 2650 |
"Modified: / 24.6.1996 / 14:39:07 / stefan" |
2651 |
"Created: / 31.10.1996 / 14:45:08 / cg" |
|
2652 |
"Modified: / 9.11.1999 / 17:04:30 / cg" |
|
203 | 2653 |
! |
2654 |
||
2409 | 2655 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
2656 |
"launch a browser for all methods referencing aSymbol" |
|
2657 |
||
2658 |
^ self |
|
2659 |
browseForSymbol:aSymbol |
|
2660 |
title:title |
|
2661 |
warnIfNone:doWarn |
|
2662 |
searchFor:aSymbol |
|
2663 |
||
2664 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
2665 |
! |
|
2666 |
||
2667 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
2668 |
"launch a browser for all methods referencing aSymbol" |
|
2669 |
||
2414 | 2670 |
|b| |
2671 |
||
2672 |
doWarn ifTrue: [ |
|
4158 | 2673 |
b := [self showNoneFound:title] |
2414 | 2674 |
]. |
2409 | 2675 |
^ self |
2676 |
browseForSymbol:aSymbol |
|
2677 |
title:title |
|
2414 | 2678 |
ifNone:b |
2409 | 2679 |
searchFor:searchString |
2680 |
! |
|
2681 |
||
4158 | 2682 |
browseImplementorsMatching:aSelectorString |
2683 |
"launch a browser for all implementors of aSelector" |
|
2684 |
||
2685 |
^ self |
|
2686 |
browseImplementorsMatching:aSelectorString |
|
2687 |
in:(Smalltalk allClasses) |
|
2688 |
||
2689 |
" |
|
2690 |
SystemBrowser browseImplementorsOf:#+ |
|
2691 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2692 |
" |
|
2693 |
||
2694 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
2695 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
2696 |
! |
|
2697 |
||
2698 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses |
|
2699 |
"launch a browser for all implementors of aSelector" |
|
2700 |
||
2701 |
^ self |
|
2702 |
browseImplementorsMatching:aSelectorString |
|
2703 |
in:aSetOfClasses |
|
2704 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2705 |
||
2706 |
" |
|
2707 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2708 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2709 |
" |
|
2710 |
||
2711 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2712 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
2713 |
! |
|
2714 |
||
2715 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
|
2716 |
"launch a browser for all implementors of aSelector" |
|
2717 |
||
2718 |
^ self |
|
2719 |
browseImplementorsMatching:aSelectorString |
|
2720 |
in:aSetOfClasses |
|
2721 |
ignoreCase:ignoreCase |
|
2722 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2723 |
||
2724 |
" |
|
2725 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2726 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2727 |
" |
|
2728 |
||
2729 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2730 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
|
2731 |
! |
|
2732 |
||
2733 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
2734 |
"launch a browser for all implementors of aSelector in |
|
2735 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2736 |
||
2737 |
|list| |
|
2738 |
||
2739 |
list := self |
|
2740 |
findImplementorsMatching:aSelectorString |
|
2741 |
in:aCollectionOfClasses |
|
2742 |
ignoreCase:ignoreCase. |
|
2743 |
||
2744 |
list size == 0 ifTrue:[ |
|
2745 |
self showNoneFound:title. |
|
2746 |
^ nil |
|
2747 |
]. |
|
2748 |
||
2749 |
^ self browseMethods:list asOrderedCollection title:title |
|
2750 |
||
2751 |
" |
|
2752 |
SystemBrowser browseImplementorsOf:#+ |
|
2753 |
in:(Array with:Number |
|
2754 |
with:Float |
|
2755 |
with:SmallInteger) |
|
2756 |
title:'some implementors of +' |
|
2757 |
||
2758 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2759 |
in:(Array with:Number |
|
2760 |
with:Float |
|
2761 |
with:SmallInteger) |
|
2762 |
title:'some implementors of +' |
|
2763 |
" |
|
2764 |
||
2765 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
2766 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
2767 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
2768 |
! |
|
2769 |
||
2770 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title |
|
2771 |
"launch a browser for all implementors of aSelector in |
|
2772 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2773 |
||
2774 |
^ self |
|
2775 |
browseImplementorsMatching:aSelectorString |
|
2776 |
in:aCollectionOfClasses |
|
2777 |
ignoreCase:false |
|
2778 |
title:title |
|
2779 |
! |
|
2780 |
||
2781 |
browseImplementorsMatching:aSelectorString under:aClass |
|
2782 |
"launch a browser for all implementors of aSelector in aClass |
|
2783 |
and its subclasses" |
|
2784 |
||
2785 |
^ self |
|
2786 |
browseImplementorsMatching:aSelectorString |
|
2787 |
in:(aClass withAllSubclasses) |
|
2788 |
title:(self classResources |
|
2789 |
string:'implementors of: %1 (in and below %2)' |
|
2790 |
with:aSelectorString |
|
2791 |
with:aClass name) |
|
2792 |
||
2793 |
" |
|
2794 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
2795 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
|
2796 |
" |
|
2797 |
||
2798 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
|
2799 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
|
2800 |
! |
|
2801 |
||
52 | 2802 |
browseImplementorsOf:aSelectorString |
2803 |
"launch a browser for all implementors of aSelector" |
|
2804 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2805 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2806 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2807 |
in:(Smalltalk allClasses) |
52 | 2808 |
|
2809 |
" |
|
2810 |
SystemBrowser browseImplementorsOf:#+ |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2811 |
NewSystemBrowser browseImplementorsOf:#+ |
52 | 2812 |
" |
256 | 2813 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2814 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2815 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
666 | 2816 |
! |
2817 |
||
2818 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
2819 |
"launch a browser for all implementors of aSelector" |
|
2820 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2821 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2822 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2823 |
in:aSetOfClasses |
6476 | 2824 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString) |
666 | 2825 |
|
2826 |
" |
|
2827 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2828 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
666 | 2829 |
" |
2830 |
||
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2831 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2832 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
52 | 2833 |
! |
2834 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2835 |
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
|
2836 |
"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
|
2837 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2838 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2839 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2840 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2841 |
ignoreCase:ignoreCase |
6476 | 2842 |
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
|
2843 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2844 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2845 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2846 |
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
|
2847 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2848 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2849 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2850 |
"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
|
2851 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2852 |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2853 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
36 | 2854 |
"launch a browser for all implementors of aSelector in |
2855 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2856 |
||
8688 | 2857 |
|list list2 rs selWithColon title top20 allSelectors choice| |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2858 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2859 |
title := titleArg. |
2642 | 2860 |
list := self |
4158 | 2861 |
findImplementorsOf:aSelectorString |
2642 | 2862 |
in:aCollectionOfClasses |
2863 |
ignoreCase:ignoreCase. |
|
45 | 2864 |
|
2642 | 2865 |
list size == 0 ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2866 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2867 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2868 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2869 |
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
|
2870 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2871 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2872 |
list2 size == 0 ifTrue:[ |
8678 | 2873 |
"/ self showNoneFound:title. |
2874 |
"/ ^ self |
|
8688 | 2875 |
allSelectors := Set new. |
8678 | 2876 |
top20 := SortedCollection new. |
2877 |
top20 sortBlock:[:a :b | (a spellAgainst:aSelectorString) > (b spellAgainst:aSelectorString)]. |
|
2878 |
Smalltalk allClasses do:[:cls | |
|
2879 |
cls instAndClassSelectorsAndMethodsDo:[:s :m | |
|
2880 |
(s spellAgainst:aSelectorString) > 30 ifTrue:[ |
|
8688 | 2881 |
(allSelectors includes:s) ifFalse:[ |
2882 |
allSelectors add:s. |
|
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
2883 |
top20 add:s. |
8688 | 2884 |
top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ]. |
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
2885 |
] |
8678 | 2886 |
]. |
2887 |
] |
|
2888 |
]. |
|
2889 |
choice := Dialog |
|
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
2890 |
choose:(title allBold,' - none found.\\Browse implementors of a similar selector or cancel:' withCRs) |
8678 | 2891 |
fromList:top20 |
2892 |
lines:10. |
|
2893 |
choice notEmptyOrNil ifTrue:[ |
|
2894 |
self browseImplementorsOf:choice in:aCollectionOfClasses ignoreCase:ignoreCase title:'Implementors of ',choice. |
|
2895 |
]. |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2896 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2897 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2898 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2899 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2900 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2901 |
(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
|
2902 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2903 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2904 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2905 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2906 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2907 |
title := title , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2908 |
|
36 | 2909 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2910 |
|
270 | 2911 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 2912 |
|
2913 |
" |
|
2914 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 2915 |
in:(Array with:Number |
2916 |
with:Float |
|
2917 |
with:SmallInteger) |
|
2918 |
title:'some implementors of +' |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2919 |
|
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2920 |
NewSystemBrowser browseImplementorsOf:#+ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2921 |
in:(Array with:Number |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2922 |
with:Float |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2923 |
with:SmallInteger) |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2924 |
title:'some implementors of +' |
36 | 2925 |
" |
132 | 2926 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2927 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2928 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2929 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
36 | 2930 |
! |
2931 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2932 |
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
|
2933 |
"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
|
2934 |
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
|
2935 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2936 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2937 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2938 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2939 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2940 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2941 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2942 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2943 |
|
52 | 2944 |
browseImplementorsOf:aSelectorString under:aClass |
2945 |
"launch a browser for all implementors of aSelector in aClass |
|
2946 |
and its subclasses" |
|
2947 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2948 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2949 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2950 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2951 |
title:(self classResources |
6476 | 2952 |
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
|
2953 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2954 |
with:aClass name) |
52 | 2955 |
|
2956 |
" |
|
2957 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2958 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
52 | 2959 |
" |
256 | 2960 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2961 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2962 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
52 | 2963 |
! |
2964 |
||
3663 | 2965 |
browseImplementorsOfAny:setOfSelectors |
2966 |
"launch a browser for all implementors of aSelector" |
|
2967 |
||
2968 |
^ self |
|
2969 |
browseImplementorsOfAny:setOfSelectors |
|
2970 |
in:(Smalltalk allClasses) |
|
2971 |
||
2972 |
" |
|
2973 |
SystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
2974 |
NewSystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
2975 |
" |
|
2976 |
||
2977 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
2978 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
2979 |
! |
|
2980 |
||
2981 |
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses |
|
2982 |
"launch a browser for all implementors of aSelector" |
|
2983 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2984 |
|title| |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2985 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2986 |
setOfSelectors size == 1 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2987 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2988 |
string:'Implementors of %1' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2989 |
with:(setOfSelectors asOrderedCollection first). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2990 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2991 |
setOfSelectors size == 2 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2992 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2993 |
string:'Implementors of %1 or %2' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2994 |
with:(setOfSelectors asOrderedCollection first) |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2995 |
with:(setOfSelectors asOrderedCollection second). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2996 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2997 |
title := self classResources string:'Implementors of some'. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2998 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2999 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3000 |
|
3663 | 3001 |
^ self |
3002 |
browseImplementorsOfAny:setOfSelectors |
|
3003 |
in:aSetOfClasses |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3004 |
title:title |
3663 | 3005 |
|
3006 |
" |
|
3007 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3008 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3009 |
" |
|
3010 |
||
3011 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3012 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3013 |
! |
|
3014 |
||
3015 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3016 |
"launch a browser for all implementors of aSelector in |
|
3017 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
3018 |
||
3019 |
|list| |
|
3020 |
||
3021 |
list := self |
|
3022 |
findImplementorsOfAny:setOfSelectors |
|
3023 |
in:aCollectionOfClasses |
|
3024 |
ignoreCase:ignoreCase. |
|
3025 |
||
3026 |
list size == 0 ifTrue:[ |
|
3027 |
self showNoneFound:title. |
|
3028 |
^ nil |
|
3029 |
]. |
|
3030 |
||
3031 |
^ self browseMethods:list asOrderedCollection title:title |
|
3032 |
||
3033 |
" |
|
3034 |
SystemBrowser browseImplementorsOf:#+ |
|
3035 |
in:(Array with:Number |
|
3036 |
with:Float |
|
3037 |
with:SmallInteger) |
|
3038 |
title:'some implementors of +' |
|
3039 |
||
3040 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3041 |
in:(Array with:Number |
|
3042 |
with:Float |
|
3043 |
with:SmallInteger) |
|
3044 |
title:'some implementors of +' |
|
3045 |
" |
|
3046 |
||
3047 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3048 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3049 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3050 |
! |
|
3051 |
||
3052 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title |
|
3053 |
"launch a browser for all implementors of aSelector in |
|
3054 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
3055 |
||
3056 |
^ self |
|
3057 |
browseImplementorsOfAny:setOfSelectors |
|
3058 |
in:aCollectionOfClasses |
|
3059 |
ignoreCase:false |
|
3060 |
title:title |
|
3061 |
! |
|
3062 |
||
203 | 3063 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
3064 |
"launch a browser for all methods in aClass where the instVar named |
|
3065 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3066 |
instvar is modified" |
|
45 | 3067 |
|
203 | 3068 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 3069 |
! |
3070 |
||
203 | 3071 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
3072 |
"launch a browser for all methods in aClass where the instVar named |
|
3073 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3074 |
instvar is modified" |
|
52 | 3075 |
|
203 | 3076 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 3077 |
! |
3078 |
||
203 | 3079 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3080 |
"launch a browser for all methods in aClass and subclasses |
|
3081 |
where the instVar named aString is referenced; |
|
3082 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 3083 |
|
203 | 3084 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 3085 |
! |
3086 |
||
3087 |
browseReferendsOf:aGlobalName |
|
3088 |
"launch a browser for all methods referencing a global |
|
1367 | 3089 |
named aGlobalName. The argument may be a symbol, a string or |
3090 |
a matchPattern. |
|
36 | 3091 |
" |
3092 |
||
3093 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
3094 |
||
3095 |
" |
|
3096 |
Browser browseReferendsOf:#Transcript |
|
1367 | 3097 |
Browser browseReferendsOf:'Tr*' |
36 | 3098 |
" |
75 | 3099 |
|
1367 | 3100 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 3101 |
! |
3102 |
||
2409 | 3103 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
3104 |
"launch a browser for all methods referencing a global |
|
3105 |
named aGlobalName. |
|
3106 |
" |
|
3107 |
||
3108 |
^ self |
|
3109 |
browseReferendsOf:aGlobalName |
|
6476 | 3110 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
2409 | 3111 |
ifNone:actionIfNone |
3112 |
||
3113 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
3114 |
! |
|
3115 |
||
666 | 3116 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
3117 |
"launch a browser for all methods referencing a global |
|
3118 |
named aGlobalName. |
|
3119 |
" |
|
3120 |
||
3121 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
3122 |
||
3123 |
" |
|
3124 |
Browser browseReferendsOf:#Transcript |
|
3125 |
" |
|
3126 |
||
3127 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
3128 |
! |
|
3129 |
||
3130 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
3131 |
"launch a browser for all methods referencing a global |
|
3132 |
named aGlobalName. |
|
3133 |
" |
|
3134 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3135 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3136 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3137 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3138 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3139 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3140 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3141 |
|
666 | 3142 |
^ self browseForSymbol:aGlobalName |
3143 |
in:aSetOfClasses |
|
6476 | 3144 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
666 | 3145 |
warnIfNone:doWarn |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3146 |
searchFor:globalsPlainName |
666 | 3147 |
|
3148 |
"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
|
3149 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 3150 |
! |
3151 |
||
2409 | 3152 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
203 | 3153 |
"launch a browser for all methods referencing a global |
3154 |
named aGlobalName. |
|
3155 |
" |
|
3156 |
||
2828 | 3157 |
|globalsPlainName idx searchBlock |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3158 |
sym browser matchingGlobalNames| |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3159 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3160 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3161 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
1367 | 3162 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
3163 |
(globalsPlainName size == 0 |
|
3164 |
or:[globalsPlainName = '*']) ifTrue:[ |
|
3165 |
globalsPlainName := aGlobalName |
|
3166 |
] |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3167 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3168 |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3169 |
matchingGlobalNames := OrderedCollection new. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3170 |
|
3125 | 3171 |
(sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3172 |
matchingGlobalNames add:sym. |
3125 | 3173 |
searchBlock := [:cls :mthd :sel | |mSource| |
3174 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
3175 |
mthd isLazyMethod ifTrue:[ |
|
3176 |
mSource := mthd source. |
|
3177 |
(mSource notNil |
|
3178 |
and:[(mSource includesString:sym) |
|
3179 |
and:[mthd usedGlobals includes:sym]]) |
|
3180 |
] ifFalse:[ |
|
3181 |
((mthd refersToLiteral:sym) |
|
3182 |
and:[mthd usedGlobals includes:sym]) |
|
3183 |
] |
|
3184 |
] |
|
3185 |
] ifFalse:[ |
|
2828 | 3186 |
aGlobalName includesMatchCharacters ifFalse:[ |
3187 |
actionIfNone value. |
|
3188 |
^ nil |
|
3189 |
]. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3190 |
searchBlock := [:cls :mthd :sel | |mSource usedGlobals global| |
2828 | 3191 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
3192 |
mthd isLazyMethod ifTrue:[ |
|
3193 |
mSource := mthd source. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3194 |
mSource notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3195 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3196 |
] |
2828 | 3197 |
] ifFalse:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3198 |
(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
|
3199 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3200 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3201 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3202 |
usedGlobals notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3203 |
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
|
3204 |
global notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3205 |
matchingGlobalNames add:global. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3206 |
] |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3207 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3208 |
global notNil |
2828 | 3209 |
] |
3210 |
]. |
|
3780 | 3211 |
"/ WarningSignal ignoreIn:[ |
3212 |
"/ InformationSignal ignoreIn:[ |
|
3213 |
browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil]. |
|
3214 |
"/ ]. |
|
3215 |
"/ ]. |
|
2828 | 3216 |
browser isNil ifTrue:[ |
3217 |
actionIfNone value |
|
3218 |
] ifFalse:[ |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3219 |
browser autoSearchVariables:matchingGlobalNames readers:true writers:true. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3220 |
"/ browser autoSearch:globalsPlainName. |
2828 | 3221 |
]. |
3222 |
^ browser |
|
2409 | 3223 |
! |
3224 |
||
3225 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
3226 |
"launch a browser for all methods referencing a global |
|
3227 |
named aGlobalName. |
|
3228 |
" |
|
3229 |
||
2414 | 3230 |
|b| |
3231 |
||
3232 |
doWarn ifTrue: [ |
|
4158 | 3233 |
b := [self showNoneFound:title] |
2414 | 3234 |
]. |
3235 |
||
2409 | 3236 |
^ self |
3237 |
browseReferendsOf:aGlobalName |
|
3238 |
title:title |
|
2414 | 3239 |
ifNone:b |
2409 | 3240 |
|
1367 | 3241 |
! |
3242 |
||
3243 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
3244 |
"launch a browser for all methods referencing a global |
|
3245 |
named aGlobalName. |
|
3246 |
" |
|
3247 |
||
3248 |
^ self |
|
3249 |
browseReferendsOf:aGlobalName |
|
6476 | 3250 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
1367 | 3251 |
warnIfNone:doWarn |
3252 |
||
3253 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 3254 |
! |
3255 |
||
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3256 |
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3257 |
"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
|
3258 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3259 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3260 |
|globalsPlainName searchBlock browser| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3261 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3262 |
searchBlock := [:cls :mthd :sel | |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3263 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3264 |
|mSource globals potentialNames| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3265 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3266 |
"/ 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
|
3267 |
mthd isLazyMethod ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3268 |
mSource := mthd source. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3269 |
mSource notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3270 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3271 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3272 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3273 |
"/ try hard to avoid the usedGlobals - its expensive |
6640 | 3274 |
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
|
3275 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3276 |
potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3277 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3278 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3279 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3280 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3281 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3282 |
globals notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3283 |
globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3284 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3285 |
false |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3286 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3287 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3288 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3289 |
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
|
3290 |
browser isNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3291 |
actionIfNone value |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3292 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3293 |
browser autoSearch:globalsPlainName |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3294 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3295 |
^ browser |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3296 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3297 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3298 |
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3299 |
"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
|
3300 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3301 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3302 |
|b| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3303 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3304 |
doWarn ifTrue: [ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3305 |
b := [self showNoneFound:title] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3306 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3307 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3308 |
^ self |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3309 |
browseReferendsOfUnboundGlobalsWithTitle:title |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3310 |
ifNone:b |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3311 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3312 |
|
203 | 3313 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
3314 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3315 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3316 |
instvar is modified" |
|
3317 |
||
3318 |
|title| |
|
3319 |
||
3320 |
modsOnly ifTrue:[ |
|
6476 | 3321 |
title := 'Modifications of: %1' |
203 | 3322 |
] ifFalse:[ |
6476 | 3323 |
title := 'References to: %1 ' |
203 | 3324 |
]. |
3325 |
^ self |
|
256 | 3326 |
browseRefsTo:aString |
3327 |
classVars:classVars |
|
3328 |
in:aCollectionOfClasses |
|
3329 |
modificationsOnly:modsOnly |
|
3330 |
title:(self classResources string:title with:aString) |
|
3331 |
||
3332 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
3333 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 3334 |
! |
3335 |
||
3336 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3337 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3338 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3339 |
instvar is modified" |
|
3340 |
||
3341 |
|filter browser pattern| |
|
3342 |
||
3343 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 3344 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 3345 |
|
3346 |
browser notNil ifTrue:[ |
|
2677 | 3347 |
modsOnly ifTrue:[ |
3348 |
pattern := varName , ' :=' |
|
3349 |
] ifFalse:[ |
|
3350 |
pattern := varName |
|
3351 |
]. |
|
3352 |
browser autoSearch:pattern |
|
203 | 3353 |
]. |
3354 |
^ browser |
|
3355 |
! |
|
3356 |
||
3407 | 3357 |
browseSendersOf:aSelectorString |
3358 |
"launch a browser for all senders of aSelector" |
|
3359 |
||
3360 |
^ self browseAllCallsOn:aSelectorString |
|
3361 |
||
3362 |
" |
|
3363 |
SystemBrowser browseSendersOf:#+ |
|
7914 | 3364 |
UserPreferences current systemBrowserClass browseSendersOf:#+ |
3407 | 3365 |
" |
3366 |
||
3367 |
"Modified: / 10.7.1996 / 10:26:15 / cg" |
|
3368 |
"Created: / 13.11.2001 / 13:52:12 / cg" |
|
3369 |
! |
|
3370 |
||
256 | 3371 |
browseSuperCallsIn:aCollectionOfClasses title:title |
3372 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
3373 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
3374 |
|browser searchBlock| |
256 | 3375 |
|
3376 |
searchBlock := [:class :method :s | |
|
504 | 3377 |
|src parser| |
256 | 3378 |
|
504 | 3379 |
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
|
3380 |
(src notNil and:[src findString:'super']) ~~ 0 ifTrue:[ |
504 | 3381 |
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
|
3382 |
parseMethod:src |
504 | 3383 |
in:class |
3384 |
ignoreErrors:true |
|
3385 |
ignoreWarnings:true. |
|
3386 |
||
7711 | 3387 |
(parser notNil and:[parser ~~ #Error and:[parser usesSuper]]) |
504 | 3388 |
] ifFalse:[ |
3389 |
false |
|
3390 |
] |
|
256 | 3391 |
]. |
3392 |
||
3393 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 3394 |
where:searchBlock |
3395 |
title:title. |
|
256 | 3396 |
|
3397 |
browser notNil ifTrue:[ |
|
504 | 3398 |
browser autoSearch:'super' |
256 | 3399 |
]. |
3400 |
^ browser |
|
3401 |
||
504 | 3402 |
" |
3403 |
SystemBrowser |
|
3404 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
3405 |
title:'superSends in SortedCollection' |
|
3406 |
" |
|
3407 |
||
7711 | 3408 |
"Created: / 23-11-1995 / 14:08:55 / cg" |
3409 |
"Modified: / 06-03-2007 / 14:00:12 / cg" |
|
256 | 3410 |
! |
3411 |
||
3412 |
browseSuperCallsUnder:aClass |
|
3413 |
"launch a browser for all supersends in aClass and subclasses" |
|
3414 |
||
3415 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
6476 | 3416 |
title:(self classResources string:'Supersends (in and below %1)' with:aClass name) |
256 | 3417 |
|
3418 |
" |
|
3419 |
SystemBrowser browseSuperCallsUnder:Number |
|
3420 |
" |
|
3421 |
||
3422 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
3423 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
3424 |
! |
|
3425 |
||
52 | 3426 |
browseUsesOf:aClass |
3427 |
|dict owners offsets |
|
3428 |
sz "{ Class: SmallInteger }" |
|
3429 |
n "{ Class: SmallInteger }" |
|
3430 |
removeSet newDict| |
|
3431 |
||
3432 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
3433 |
||
3434 |
" |
|
3435 |
collect set of offsets in dict; key is class |
|
3436 |
" |
|
3437 |
dict := IdentityDictionary new. |
|
3438 |
owners do:[:someObject | |
|
4158 | 3439 |
|cls create| |
3440 |
||
3441 |
someObject isContext ifFalse:[ |
|
3442 |
" |
|
3443 |
someObject refers to an instance of aClass; |
|
3444 |
find out, which instVar(s) |
|
3445 |
" |
|
3446 |
cls := someObject class. |
|
3447 |
cls ~~ Array ifTrue:[ |
|
3448 |
n := cls instSize. |
|
3449 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
3450 |
||
3451 |
1 to:n do:[:i | |
|
3452 |
|ref| |
|
3453 |
||
3454 |
ref := someObject instVarAt:i. |
|
3455 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3456 |
offsets := dict at:cls ifAbsent:create. |
|
3457 |
offsets add:i. |
|
3458 |
] |
|
3459 |
]. |
|
3460 |
cls isVariable ifTrue:[ |
|
3461 |
cls isPointers ifTrue:[ |
|
3462 |
| idx "{ Class: SmallInteger }" | |
|
3463 |
||
3464 |
sz := someObject basicSize. |
|
3465 |
idx := 1. |
|
3466 |
[idx <= sz] whileTrue:[ |
|
3467 |
|ref| |
|
3468 |
||
3469 |
ref := someObject basicAt:idx. |
|
3470 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3471 |
offsets := dict at:cls ifAbsent:create. |
|
3472 |
offsets add:0. |
|
3473 |
idx := sz |
|
3474 |
]. |
|
3475 |
idx := idx + 1 |
|
3476 |
] |
|
3477 |
] |
|
3478 |
] |
|
3479 |
] |
|
3480 |
] |
|
52 | 3481 |
]. |
3482 |
||
3483 |
" |
|
3484 |
merge with superclass refs |
|
3485 |
" |
|
3486 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3487 |
cls allSuperclasses do:[:aSuperclass | |
3488 |
|superSet| |
|
3489 |
||
3490 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
3491 |
superSet notNil ifTrue:[ |
|
3492 |
|removeSet| |
|
3493 |
||
3494 |
superSet := dict at:aSuperclass. |
|
3495 |
removeSet := Set new. |
|
3496 |
set do:[:offset | |
|
3497 |
(superSet includes:offset) ifTrue:[ |
|
3498 |
removeSet add:offset |
|
3499 |
] |
|
3500 |
]. |
|
3501 |
set removeAll:removeSet |
|
3502 |
] |
|
3503 |
] |
|
52 | 3504 |
]. |
3505 |
||
3506 |
" |
|
3507 |
remove empty ones |
|
3508 |
" |
|
3509 |
removeSet := Set new. |
|
3510 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3511 |
set isEmpty ifTrue:[ |
3512 |
removeSet add:cls |
|
3513 |
] |
|
52 | 3514 |
]. |
3515 |
removeSet do:[:cls | |
|
4158 | 3516 |
dict removeKey:cls |
52 | 3517 |
]. |
3518 |
||
3519 |
" |
|
3520 |
replace the indices by real names |
|
3521 |
" |
|
3522 |
newDict := IdentityDictionary new. |
|
3523 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3524 |
|newSet names| |
3525 |
||
3526 |
names := cls allInstVarNames. |
|
3527 |
newSet := set collect:[:index | |
|
3528 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
3529 |
]. |
|
3530 |
newDict at:cls put:newSet |
|
52 | 3531 |
]. |
3532 |
||
3533 |
newDict inspect |
|
3534 |
||
75 | 3535 |
|
52 | 3536 |
! |
3537 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3538 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
7914 | 3539 |
"return a searchblock for variable references (obsolete)" |
3540 |
||
3541 |
^ self |
|
3542 |
filterToSearchRefsTo:varName |
|
3543 |
instVars:(classVars not) |
|
3544 |
classVars:classVars |
|
3545 |
globals:false |
|
3546 |
access:accessType |
|
3547 |
! |
|
3548 |
||
3549 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
|
3550 |
"return a searchblock for variable references" |
|
3551 |
||
3552 |
^ self |
|
3553 |
filterToSearchRefsTo:varName |
|
3554 |
classVars:classVars |
|
3555 |
access:(modsOnly ifTrue:#write ifFalse:#readWrite) |
|
3556 |
! |
|
3557 |
||
3558 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals access:accessType |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3559 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3560 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3561 |
|searchBlock| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3562 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3563 |
searchBlock := [:c :m :s | |
7914 | 3564 |
|src result parser vars instVars classVars globals needMatch| |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3565 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3566 |
needMatch := varName includesMatchCharacters. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3567 |
|
7914 | 3568 |
result := false. |
3569 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3570 |
src := m source. |
7914 | 3571 |
src notNil ifTrue:[ |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3572 |
needMatch ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3573 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3574 |
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
|
3575 |
methods source for the variables name ... |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3576 |
" |
7914 | 3577 |
(varName includes:$:) ifTrue:[ |
3578 |
result := (src findString:(varName copyFrom:(varName lastIndexOf:$:)+1)) ~~ 0. |
|
3579 |
] ifFalse:[ |
|
3580 |
result := (src findString:varName) ~~ 0. |
|
3581 |
]. |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3582 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3583 |
result := true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3584 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3585 |
result ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3586 |
result := false. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3587 |
parser := Parser |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3588 |
parseMethod:src |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3589 |
in:c |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3590 |
ignoreErrors:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3591 |
ignoreWarnings:true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3592 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3593 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
7914 | 3594 |
vars := Set new. |
3595 |
doInstVars ifTrue:[ |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3596 |
accessType == #read ifTrue:[ |
7914 | 3597 |
instVars := parser readInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3598 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3599 |
accessType == #write ifTrue:[ |
7914 | 3600 |
instVars := parser modifiedInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3601 |
] ifFalse:[ |
7914 | 3602 |
instVars := parser usedInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3603 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3604 |
]. |
7914 | 3605 |
vars addAll:instVars. |
3606 |
]. |
|
3607 |
doClassVars ifTrue:[ |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3608 |
accessType == #read ifTrue:[ |
7914 | 3609 |
classVars := parser readClassVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3610 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3611 |
accessType == #write ifTrue:[ |
7914 | 3612 |
classVars := parser modifiedClassVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3613 |
] ifFalse:[ |
7914 | 3614 |
classVars := parser usedClassVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3615 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3616 |
]. |
7914 | 3617 |
vars addAll:classVars. |
3618 |
]. |
|
3619 |
doGlobals ifTrue:[ |
|
3620 |
accessType == #read ifTrue:[ |
|
3621 |
globals := parser readGlobals |
|
3622 |
] ifFalse:[ |
|
3623 |
accessType == #write ifTrue:[ |
|
3624 |
globals := parser modifiedGlobals |
|
3625 |
] ifFalse:[ |
|
3626 |
globals := parser usedGlobals |
|
3627 |
] |
|
3628 |
]. |
|
3629 |
vars addAll:globals. |
|
2736
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 |
vars size > 0 ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3632 |
needMatch ifTrue:[ |
7914 | 3633 |
result := vars contains:[:cv | (varName match:cv)] |
504 | 3634 |
] ifFalse:[ |
3635 |
result := vars includes:varName |
|
3636 |
] |
|
3637 |
] |
|
3638 |
]. |
|
3639 |
]. |
|
3640 |
]. |
|
3641 |
Processor yield. |
|
3642 |
result |
|
36 | 3643 |
]. |
203 | 3644 |
^ searchBlock |
504 | 3645 |
|
1190 | 3646 |
"Modified: 19.6.1997 / 18:27:57 / cg" |
2642 | 3647 |
! |
3648 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3649 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3650 |
"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
|
3651 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3652 |
^ 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
|
3653 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3654 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3655 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3656 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3657 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3658 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3659 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3660 |
"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
|
3661 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3662 |
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
|
3663 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3664 |
^ 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
|
3665 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3666 |
|
2677 | 3667 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 3668 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 3669 |
aString is referenced; |
3670 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3671 |
||
3672 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3673 |
! |
|
3674 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3675 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3676 |
"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
|
3677 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3678 |
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
|
3679 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3680 |
^ 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
|
3681 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3682 |
|
2728 | 3683 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
3684 |
"return all methods in aClass where the classVar named |
|
3685 |
aString is referenced; |
|
3686 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3687 |
||
3688 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
3689 |
! |
|
3690 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3691 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3692 |
"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
|
3693 |
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
|
3694 |
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
|
3695 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3696 |
^ 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
|
3697 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3698 |
|
2677 | 3699 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
3700 |
"return all methods in aClass and subclasses |
|
3701 |
where the classVar named aString is referenced; |
|
3702 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3703 |
||
3704 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3705 |
||
3706 |
! |
|
3707 |
||
5094 | 3708 |
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
5243 | 3709 |
"return a collection of all methods in aCollectionOfClasses |
5094 | 3710 |
containing a matching piece of code. |
3711 |
This may be slow, since source-code has to be scanned." |
|
3712 |
||
3713 |
|searchBlock| |
|
3714 |
||
3715 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
5226 | 3716 |
searchBlock isNil ifTrue:[ ^ nil]. |
5094 | 3717 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
3718 |
! |
|
3719 |
||
5243 | 3720 |
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod |
3721 |
"return a collection of all methods in aCollectionOfMethods |
|
3722 |
containing a matching piece of code." |
|
3723 |
||
3724 |
|searchBlock| |
|
3725 |
||
3726 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
3727 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
3728 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
3729 |
! |
|
3730 |
||
8129 | 3731 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 3732 |
"return a collection of all help-spec methods in aCollectionOfClasses |
3733 |
containing a string in their source. |
|
3734 |
This may be slow, since source-code has to be scanned." |
|
8129 | 3735 |
|
3736 |
^ self |
|
3737 |
findSpecMethodsFor:#help |
|
3738 |
withString:aString |
|
3739 |
in:aCollectionOfClasses |
|
3740 |
ignoreCase:ignoreCase |
|
3741 |
! |
|
3742 |
||
3743 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
3744 |
"return a collection of all help-spec methods in aCollectionOfClasses |
|
3745 |
containing a string in their source. |
|
3746 |
This may be slow, since source-code has to be scanned." |
|
3747 |
||
3748 |
^ self |
|
3749 |
findSpecMethodsFor:#help |
|
3750 |
withString:aString |
|
3751 |
in:aCollectionOfClasses |
|
3752 |
ignoreCase:ignoreCase |
|
3753 |
match:doMatch |
|
3314 | 3754 |
! |
3755 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3756 |
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
3675 | 3757 |
"search for all implementors of aSelector in |
3758 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3759 |
Return a collection of methods" |
|
3760 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3761 |
|list compare testST testJava lcSelector| |
3675 | 3762 |
|
3763 |
list := IdentitySet new. |
|
6051 | 3764 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
3765 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3766 |
doMatch ifTrue:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3767 |
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
|
3768 |
] ifFalse:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3769 |
compare := [:sel :search | sel = search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3770 |
]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3771 |
|
3675 | 3772 |
ignoreCase == true ifTrue:[ |
3773 |
lcSelector := aSelectorMatchString asLowercase. |
|
3774 |
||
7847 | 3775 |
testST := [:aSelector :aMethod | (compare value:lcSelector value:(aMethod name ? '') asLowercase) ]. |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3776 |
testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ]. |
3675 | 3777 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3778 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3779 |
testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
3675 | 3780 |
]. |
3781 |
||
3782 |
aCollectionOfClasses do:[:aClass | |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3783 |
|testBlock srchBlock| |
3675 | 3784 |
|
3785 |
aClass isObsolete ifFalse:[ |
|
3786 |
aClass isJavaClass ifTrue:[ |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3787 |
testBlock := testJava |
3675 | 3788 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3789 |
testBlock := testST |
3675 | 3790 |
]. |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3791 |
srchBlock := [:sel :mthd | (testBlock value:sel value:mthd) ifTrue:[ list add:mthd]]. |
3675 | 3792 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
3793 |
aClass isMeta ifFalse:[ |
|
3794 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
3795 |
] |
|
3796 |
] |
|
3797 |
]. |
|
3798 |
||
3799 |
^ list |
|
3800 |
||
3801 |
" |
|
3802 |
SystemBrowser findImplementorsOf:#+ |
|
3803 |
in:(Array with:Number |
|
3804 |
with:Float |
|
3805 |
with:SmallInteger) |
|
3806 |
" |
|
7847 | 3807 |
|
3808 |
"Modified: / 20-09-2007 / 16:02:10 / cg" |
|
3675 | 3809 |
! |
3810 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3811 |
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3812 |
"search for all implementors of aSelector in |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3813 |
the classes contained in aCollectionOfClasses and its metaclasses. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3814 |
Return a collection of methods" |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3815 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3816 |
|list compare testST testJava lcSelector| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3817 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3818 |
list := IdentitySet new. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3819 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3820 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3821 |
doMatch ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3822 |
compare := [:sel :search | sel match:search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3823 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3824 |
compare := [:sel :search | sel = search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3825 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3826 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3827 |
ignoreCase == true ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3828 |
lcSelector := aSelectorMatchString asLowercase. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3829 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3830 |
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
|
3831 |
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
|
3832 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3833 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3834 |
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
|
3835 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3836 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3837 |
aCollectionOfMethods do:[:eachMethod | |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3838 |
|cls sel testBlock| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3839 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3840 |
cls := eachMethod mclass. |
7066 | 3841 |
(cls isNil or:[cls isObsolete]) ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3842 |
cls isJavaClass ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3843 |
testBlock := testJava |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3844 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3845 |
testBlock := testST |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3846 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3847 |
sel := eachMethod selector. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3848 |
(testBlock value:sel value:eachMethod) ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3849 |
list add:eachMethod |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3850 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3851 |
] |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3852 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3853 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3854 |
^ list |
7066 | 3855 |
|
3856 |
"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
|
3857 |
! |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3858 |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3859 |
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
|
3860 |
"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
|
3861 |
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
|
3862 |
Return a collection of methods" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3863 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3864 |
^ 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
|
3865 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3866 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3867 |
SystemBrowser findImplementorsOf:#+ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3868 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3869 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3870 |
with:SmallInteger) |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3871 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3872 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3873 |
|
3675 | 3874 |
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
3875 |
"search for all implementors of any in aCollectionOfSelectors in |
|
3876 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3877 |
Return a collection of methods. |
|
3878 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
3879 |
||
6052 | 3880 |
^ aCollectionOfSelectors |
3881 |
collectAll:[:eachSelector | |
|
3882 |
self findImplementorsMatching:eachSelector |
|
3883 |
in:aCollectionOfClasses |
|
3884 |
ignoreCase:ignoreCase. |
|
3885 |
]. |
|
3886 |
||
3887 |
"/ |implementors| |
|
3888 |
"/ |
|
6051 | 3889 |
"/ implementors := IdentitySet new. |
3890 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
3891 |
"/ implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
3892 |
"/ ]. |
|
6052 | 3893 |
"/ ^ implementors |
6051 | 3894 |
|
3895 |
" |
|
3896 |
self |
|
3897 |
findImplementorsMatchingAny:#( 'at*:' '*size') |
|
3898 |
in:(Smalltalk allClasses) |
|
3899 |
ignoreCase:true |
|
3900 |
" |
|
3675 | 3901 |
! |
3902 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3903 |
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
2642 | 3904 |
"search for all implementors of aSelector in |
3905 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3906 |
Return a collection of methods" |
|
3907 |
||
6480 | 3908 |
^ self |
3909 |
findImplementors:aSelectorMatchString |
|
3910 |
in:aCollectionOfClasses |
|
3911 |
ignoreCase:ignoreCase |
|
3912 |
match:false |
|
2642 | 3913 |
|
3914 |
" |
|
3915 |
SystemBrowser findImplementorsOf:#+ |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3916 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3917 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3918 |
with:SmallInteger) |
2642 | 3919 |
" |
3920 |
! |
|
3921 |
||
2811 | 3922 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
3923 |
"search for all implementors of any in aCollectionOfSelectors in |
|
3924 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3925 |
Return a collection of methods. |
|
3926 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
3927 |
||
6052 | 3928 |
^ aCollectionOfSelectors |
3929 |
collectAll:[:eachSelector | |
|
3930 |
self findImplementorsOf:eachSelector |
|
3931 |
in:aCollectionOfClasses |
|
3932 |
ignoreCase:ignoreCase. |
|
3933 |
]. |
|
3934 |
||
3935 |
"/ |implementors| |
|
3936 |
"/ |
|
3937 |
"/ implementors := IdentitySet new. |
|
3938 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
3939 |
"/ implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
3940 |
"/ ]. |
|
3941 |
"/ ^ implementors |
|
2811 | 3942 |
! |
3943 |
||
2741 | 3944 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
3945 |
"return all methods in aCollectionOfClasses where the instVar named |
|
3946 |
aString is referenced; |
|
3947 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3948 |
||
3949 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
3950 |
! |
|
3951 |
||
2677 | 3952 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 3953 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 3954 |
aString is referenced; if modsOnly is true, browse only methods where the |
3955 |
instvar is modified" |
|
3956 |
||
3957 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3958 |
! |
|
3959 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3960 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3961 |
"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
|
3962 |
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
|
3963 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3964 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3965 |
^ 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
|
3966 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3967 |
|
2728 | 3968 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
3969 |
"return all methods in aClass where the instVar named |
|
3970 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3971 |
instvar is modified" |
|
3972 |
||
3973 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
3974 |
! |
|
3975 |
||
2741 | 3976 |
findInstRefsTo:aString under:aClass access:accessType |
3977 |
"return all methods in aClass and subclasses |
|
3978 |
where the classVar named aString is referenced; |
|
3979 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3980 |
||
3981 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
3982 |
! |
|
3983 |
||
2677 | 3984 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3985 |
"return all methods in aClass and subclasses |
|
3986 |
where the instVar named aString is referenced; |
|
3987 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
3988 |
||
3989 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3990 |
! |
|
3991 |
||
8129 | 3992 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 3993 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
3994 |
containing a string in their source. |
|
3995 |
This may be slow, since source-code has to be scanned." |
|
8129 | 3996 |
|
3997 |
^ self |
|
3998 |
findSpecMethodsFor:#menu |
|
3999 |
withString:aString |
|
4000 |
in:aCollectionOfClasses |
|
4001 |
ignoreCase:ignoreCase |
|
4002 |
! |
|
4003 |
||
4004 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4005 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
|
4006 |
containing a string in their source. |
|
4007 |
This may be slow, since source-code has to be scanned." |
|
4008 |
||
4009 |
^ self |
|
4010 |
findSpecMethodsFor:#menu |
|
4011 |
withString:aString |
|
4012 |
in:aCollectionOfClasses |
|
4013 |
ignoreCase:ignoreCase |
|
4014 |
match:doMatch |
|
3314 | 4015 |
! |
4016 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4017 |
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
|
4018 |
"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
|
4019 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4020 |
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
|
4021 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4022 |
|filter| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4023 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4024 |
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
|
4025 |
^ 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
|
4026 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4027 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4028 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4029 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4030 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4031 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4032 |
modificationsOnly:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4033 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4034 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4035 |
|
2677 | 4036 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4037 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
4038 |
varName is referenced; |
|
4039 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4040 |
||
4041 |
|filter| |
|
4042 |
||
4043 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
4044 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
4045 |
||
4046 |
" |
|
4047 |
self |
|
4048 |
findRefsTo:'x' |
|
4049 |
classVars:false |
|
4050 |
in:(Array with:Point) |
|
4051 |
modificationsOnly:true |
|
4052 |
" |
|
4053 |
! |
|
4054 |
||
2692 | 4055 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
4056 |
"return a collection of all methods in aCollectionOfClasses |
|
4057 |
containing a resource." |
|
4058 |
||
4059 |
|searchBlock| |
|
4060 |
||
4061 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
4062 |
searchBlock := [:c :m :sel | |resources| |
|
4063 |
(resources := m resources) size > 0 |
|
4064 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
4065 |
]. |
|
4066 |
] ifFalse:[ |
|
4067 |
searchBlock := [:c :m :sel | |resources| |
|
4068 |
(resources := m resources) size > 0 |
|
4069 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
4070 |
]. |
|
4071 |
]. |
|
4072 |
||
4073 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4074 |
||
4075 |
" |
|
4076 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
4077 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
4078 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
4079 |
" |
|
4080 |
! |
|
4081 |
||
2642 | 4082 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
4083 |
"search for all senders of aSelector in |
|
4084 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4085 |
Return a collection of methods" |
|
4086 |
||
4270 | 4087 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2642 | 4088 |
|
4089 |
" |
|
4090 |
SystemBrowser findSendersOf:#+ |
|
4091 |
in:(Array with:Number |
|
4092 |
with:Float |
|
4093 |
with:SmallInteger) |
|
4094 |
ignoreCase:false |
|
4095 |
" |
|
4270 | 4096 |
! |
4097 |
||
4098 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4099 |
"search for all senders of aSelector in |
|
4100 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4101 |
Return a collection of methods" |
|
4102 |
||
4103 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4104 |
||
4105 |
" |
|
4106 |
SystemBrowser findSendersOf:#+ |
|
4107 |
in:(Array with:Number |
|
4108 |
with:Float |
|
4109 |
with:SmallInteger) |
|
4110 |
ignoreCase:false |
|
4111 |
" |
|
2675 | 4112 |
! |
4113 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4114 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4115 |
"search for all senders of aSelector in aCollectionOfMethods. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4116 |
Return a collection of methods" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4117 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4118 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4119 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4120 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4121 |
^ 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
|
4122 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4123 |
|
4350 | 4124 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
4125 |
"search for all senders of aSelector in aCollectionOfMethods. |
|
4126 |
Return a collection of methods" |
|
4127 |
||
4128 |
|searchBlock| |
|
4129 |
||
4130 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
|
4131 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4132 |
! |
|
4133 |
||
2811 | 4134 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4135 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
4136 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4137 |
Return a collection of methods. |
|
4138 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4139 |
||
6052 | 4140 |
^ aCollectionOfSelectors |
4141 |
collectAll:[:eachSelector | |
|
6184 | 4142 |
(self allCallsOn:eachSelector |
6052 | 4143 |
in:aCollectionOfClasses |
4144 |
ignoreCase:ignoreCase |
|
6184 | 4145 |
match:false) asSet. |
6052 | 4146 |
]. |
4147 |
||
4148 |
"/ |allSenders| |
|
4149 |
"/ |
|
4150 |
"/ allSenders := IdentitySet new. |
|
4151 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4152 |
"/ allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true) |
|
4153 |
"/ ]. |
|
4154 |
"/ ^ allSenders |
|
2811 | 4155 |
|
4156 |
" |
|
4157 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
4158 |
in:(Array with:Number |
|
4159 |
with:Float |
|
4160 |
with:SmallInteger) |
|
4161 |
ignoreCase:false |
|
4162 |
" |
|
4163 |
! |
|
4164 |
||
3314 | 4165 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
4166 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
4167 |
containing a string in their source. |
|
4168 |
This may be slow, since source-code has to be scanned." |
|
4169 |
||
8129 | 4170 |
self |
4171 |
findSpecMethodsFor:specSymbol |
|
4172 |
withString:aString |
|
4173 |
in:aCollectionOfClasses |
|
4174 |
ignoreCase:ignoreCase |
|
4175 |
match:true |
|
4176 |
! |
|
4177 |
||
4178 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4179 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
4180 |
containing a string in their source. |
|
4181 |
This may be slow, since source-code has to be scanned." |
|
4182 |
||
4183 |
|searchBlock innerSearchBlock| |
|
4184 |
||
4185 |
innerSearchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
|
4186 |
||
4187 |
searchBlock := [:c :m :sel | |
|
4188 |
|resources| |
|
3314 | 4189 |
|
4190 |
((resources := m resources) size > 0 |
|
4191 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
8129 | 4192 |
innerSearchBlock value:c value:m value:sel |
3314 | 4193 |
] |
8129 | 4194 |
]. |
4195 |
||
3314 | 4196 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
4197 |
! |
|
4198 |
||
8129 | 4199 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5243 | 4200 |
"return a collection of all methods in aCollectionOfClasses |
2675 | 4201 |
containing a string in their source. |
4202 |
This may be slow, since source-code has to be scanned." |
|
8129 | 4203 |
|
4204 |
^ self |
|
4205 |
findString:aString |
|
4206 |
in:aCollectionOfClasses |
|
4207 |
ignoreCase:ignoreCase |
|
4208 |
match:true |
|
4209 |
||
4210 |
" |
|
4211 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4212 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4213 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4214 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4215 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5243 | 4216 |
"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
|
4217 |
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
|
4218 |
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
|
4219 |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4220 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4221 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4222 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4223 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4224 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4225 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4226 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4227 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4228 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4229 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4230 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5243 | 4231 |
"return a collection of all methods in aCollectionOfClasses |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4232 |
containing a string in their source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4233 |
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
|
4234 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4235 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4236 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4237 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4238 |
^ 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
|
4239 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4240 |
|
5877 | 4241 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
4242 |
"return a collection of all methods in aCollectionOfClasses |
|
4243 |
containing a string in any of their string-literals." |
|
4244 |
||
4245 |
|searchBlock| |
|
4246 |
||
4247 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4248 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4249 |
||
4250 |
" |
|
4251 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4252 |
" |
|
4253 |
! |
|
4254 |
||
4255 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
|
4256 |
"return a collection of all methods in aCollectionOfClasses |
|
4257 |
containing a string in any of their string-literals." |
|
4258 |
||
4259 |
|searchBlock| |
|
4260 |
||
4261 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4262 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4263 |
! |
|
4264 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4265 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase |
4270 | 4266 |
^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true |
4267 |
! |
|
4268 |
||
4269 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4270 |
|sel searchBlock lcString quickMatch| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4271 |
|
4270 | 4272 |
(doMatch |
4273 |
and:[(aSelectorString ~= '*') |
|
4274 |
and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[ |
|
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4275 |
"/ a matchString or ignoreCase - need string matching procedure |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4276 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4277 |
ignoreCase ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4278 |
lcString := aSelectorString asLowercase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4279 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4280 |
lcString := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4281 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4282 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4283 |
quickMatch := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4284 |
(quickMatch startsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4285 |
quickMatch := quickMatch copyFrom:2 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4286 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4287 |
(quickMatch endsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4288 |
quickMatch := quickMatch copyWithoutLast:1 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4289 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4290 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4291 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4292 |
]. |
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4293 |
|
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4294 |
(ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4295 |
searchBlock := [:class :method :s | |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4296 |
|src inLiterals| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4297 |
|
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4298 |
inLiterals := false. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4299 |
method isLazyMethod ifTrue:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4300 |
src := method source. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4301 |
(src notNil and:[src includesString:quickMatch]) ifTrue:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4302 |
method makeRealMethod. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4303 |
inLiterals := (method |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4304 |
literalsDetect:[:aLiteral| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4305 |
(aLiteral isMemberOf:Symbol) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4306 |
and:[(lcString includesString:quickMatch) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4307 |
and:[(lcString match:aLiteral)]]] |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4308 |
ifNone:nil) notNil |
4235
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 |
] ifFalse:[ |
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4311 |
inLiterals := (method |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4312 |
literalsDetect:[:aLiteral| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4313 |
(aLiteral isMemberOf:Symbol) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4314 |
and:[(lcString includesString:quickMatch) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4315 |
and:[(lcString match:aLiteral)]]] |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4316 |
ifNone:nil) notNil |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4317 |
]. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4318 |
inLiterals |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4319 |
and:[ method messagesSent contains:[:anySelector | aSelectorString match:anySelector ignoreCase:ignoreCase] ] |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4320 |
]. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4321 |
] ifFalse:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4322 |
searchBlock := [:class :method :s | |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4323 |
|src inLiterals| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4324 |
|
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4325 |
"/ expensive search |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4326 |
inLiterals := false. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4327 |
method isLazyMethod ifTrue:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4328 |
src := method source. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4329 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4330 |
method makeRealMethod. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4331 |
inLiterals := (method |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4332 |
literalsDetect:[:aLiteral| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4333 |
(aLiteral isMemberOf:Symbol) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4334 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4335 |
or:[ignoreCase not and:[lcString match:aLiteral]]]] |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4336 |
ifNone:nil) notNil |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4337 |
] |
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4338 |
] ifFalse:[ |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4339 |
inLiterals := (method literalsDetect:[:aLiteral| |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4340 |
(aLiteral isMemberOf:Symbol) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4341 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4342 |
or:[ignoreCase not and:[lcString match:aLiteral]]]] |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4343 |
ifNone:nil) notNil |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4344 |
]. |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4345 |
inLiterals |
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4346 |
and:[ method messagesSent contains:[:anySelector | aSelectorString match:anySelector ignoreCase:ignoreCase] ] |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4347 |
]. |
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
4348 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4349 |
] ifFalse:[ |
4270 | 4350 |
(doMatch and:[aSelectorString = '*']) ifTrue:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4351 |
searchBlock := [:class :method :s | true]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4352 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4353 |
"/ no matchString - can do it much faster |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4354 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4355 |
sel := aSelectorString asSymbolIfInterned. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4356 |
sel isNil ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4357 |
^ nil "/ none |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4358 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4359 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4360 |
quickMatch := sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4361 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4362 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4363 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4364 |
searchBlock := [:class :method :s | |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4365 |
|src| |
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 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4368 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4369 |
(src notNil and:[src includesString:quickMatch]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4370 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4371 |
method sends:sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4372 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4373 |
false |
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 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4376 |
method sends:sel |
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 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4379 |
] |
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 |
^ searchBlock |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4382 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4383 |
|
5094 | 4384 |
searchBlockForCode:aCodeString isMethod:isMethod |
7395 | 4385 |
"return a block to search for a piece of code (intelligent search)." |
5094 | 4386 |
|
6581 | 4387 |
|errAction searchTree searcher globalVariablesUsed usedSymbols |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4388 |
sentMessages searchBlock foundMatch numMethodArgs methodSelector| |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4389 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4390 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4391 |
"/rule := ParseTreeLintRule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4392 |
"/ createParseTreeRule: (Array with: aCodeString) |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4393 |
"/ method: isMethod |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4394 |
"/ name: 'Search for: ' , aCodeString. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4395 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4396 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4397 |
"/ searchBlock := [:c :m :sel | |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4398 |
"/ rslt := SmalllintChecker |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4399 |
"/ runRule:rule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4400 |
"/ 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
|
4401 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4402 |
"/ self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4403 |
"/ ]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4404 |
"/^ searchBlock. |
5226 | 4405 |
|
4406 |
errAction := [:str :pos | |
|
4407 |
Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'. |
|
4408 |
^ nil |
|
4409 |
]. |
|
5094 | 4410 |
|
4411 |
isMethod ifTrue:[ |
|
4412 |
searchTree := RBParser |
|
4413 |
parseRewriteMethod:aCodeString |
|
5226 | 4414 |
onError: errAction. |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4415 |
numMethodArgs := searchTree arguments size. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4416 |
methodSelector := searchTree selector. |
5094 | 4417 |
] ifFalse:[ |
4418 |
searchTree := RBParser |
|
4419 |
parseRewriteExpression:aCodeString |
|
5226 | 4420 |
onError: errAction. |
5094 | 4421 |
]. |
4422 |
||
6368 | 4423 |
Error handle:[:ex | |
4424 |
] do:[ |
|
6549 | 4425 |
sentMessages := searchTree sentMessages. |
5135 | 4426 |
]. |
6581 | 4427 |
|
6549 | 4428 |
globalVariablesUsed := searchTree referencedVariables |
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4429 |
select:[:node | |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4430 |
node isPatternNode not |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4431 |
and:[ Smalltalk includesKey: node name asSymbol ] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4432 |
] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4433 |
thenCollect:[:node | node name asSymbol]. |
5135 | 4434 |
|
6581 | 4435 |
usedSymbols := searchTree usedSymbols. |
4436 |
||
7395 | 4437 |
"/ cannot use literals to speedup the search, because stc does not store |
4438 |
"/ constants in the literal-array. |
|
4439 |
"/ literalsUsed := searchTree usedLiterals. |
|
4440 |
"/ literalsUsed := literalsUsed select:[:lit | lit isString]. |
|
4441 |
||
5094 | 4442 |
searcher := ParseTreeSearcher new. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4443 |
isMethod ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4444 |
searcher |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4445 |
matchesMethod:aCodeString |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4446 |
do:[:aNode :answer | foundMatch := true]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4447 |
] ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4448 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4449 |
matchesTree:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4450 |
do:[:aNode :answer | foundMatch := true]. |
6303 | 4451 |
]. |
5094 | 4452 |
|
6581 | 4453 |
|
4454 |
searchBlock := [:c :m :sel | |
|
4455 |
|allSelectorsInLiteralArray allMessagesSent |
|
4456 |
allGlobalsReferenced allUsedSymbolsInLiteralArray allSent src rslt parseTree| |
|
4457 |
||
4458 |
foundMatch := false. |
|
4459 |
||
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4460 |
"/ can speedup the search, by filtering for number of message-args first... |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4461 |
(isMethod not |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4462 |
or:[ numMethodArgs isNil |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4463 |
or:[ numMethodArgs == m numArgs ]]) ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4464 |
m isLazyMethod ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4465 |
src := m source. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4466 |
src notNil ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4467 |
m makeRealMethod. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4468 |
]. |
5135 | 4469 |
]. |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4470 |
"/ can speedup the search, by filtering for sent messages first... |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4471 |
allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ m literals includesAll:sentMessages ]. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4472 |
allSelectorsInLiteralArray ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4473 |
allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ m literals includesAll:usedSymbols ]. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4474 |
allUsedSymbolsInLiteralArray ifTrue:[ |
8505
dd4cfeb8d6ad
allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents:
8478
diff
changeset
|
4475 |
allGlobalsReferenced := globalVariablesUsed conform:[:varName | m referencesGlobal:varName]. |
dd4cfeb8d6ad
allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents:
8478
diff
changeset
|
4476 |
allGlobalsReferenced ifTrue:[ |
dd4cfeb8d6ad
allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents:
8478
diff
changeset
|
4477 |
allMessagesSent := sentMessages isEmptyOrNil or:[ m messages includesAll:sentMessages ]. |
dd4cfeb8d6ad
allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents:
8478
diff
changeset
|
4478 |
allMessagesSent ifTrue:[ |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4479 |
allSent := sentMessages conform:[:sel | (m sends:sel)]. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4480 |
allSent ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4481 |
src := m source. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4482 |
src isNil ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4483 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4484 |
false |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4485 |
] ifFalse:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4486 |
parseTree := RBParser |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4487 |
parseSearchMethod:src |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4488 |
onError: [:str :pos | |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4489 |
Transcript show:'Error in '; showCR:m. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4490 |
Transcript showCR:str. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4491 |
Transcript showCR:pos. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4492 |
nil]. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4493 |
|
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4494 |
parseTree notNil ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4495 |
false "isMethod" ifTrue:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4496 |
rslt := searcher executeMethod:parseTree. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4497 |
] ifFalse:[ |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4498 |
rslt := searcher executeTree:parseTree. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4499 |
]. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
4500 |
] |
6552
343882b29fec
code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents:
6549
diff
changeset
|
4501 |
] |
6368 | 4502 |
] |
4503 |
] |
|
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4504 |
] |
5135 | 4505 |
] |
6581 | 4506 |
] |
4507 |
]. |
|
4508 |
foundMatch. |
|
4509 |
]. |
|
5094 | 4510 |
^ searchBlock. |
7395 | 4511 |
|
4512 |
"Modified: / 12-10-2006 / 21:30:05 / cg" |
|
5094 | 4513 |
! |
4514 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4515 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch |
5094 | 4516 |
"return a block to search for a string." |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4517 |
|
8129 | 4518 |
|searchBlock s| |
5891 | 4519 |
|
4520 |
(doMatch and:[ aString includesMatchCharacters ]) ifTrue:[ |
|
2675 | 4521 |
s := '*' , aString , '*'. |
4522 |
"a matchString" |
|
4523 |
searchBlock := [:c :m :sel | |
|
4524 |
|src| |
|
4525 |
src := m source. |
|
4526 |
src isNil ifTrue:[ |
|
4527 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4528 |
false |
|
4529 |
] ifFalse:[ |
|
4530 |
s match:src ignoreCase:ignoreCase |
|
4531 |
] |
|
4532 |
] |
|
4533 |
] ifFalse:[ |
|
8129 | 4534 |
searchBlock := |
4535 |
[:c :m :sel | |
|
4536 |
|src| |
|
4537 |
||
4538 |
src := m source. |
|
4539 |
src isNil ifTrue:[ |
|
4540 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4541 |
false |
|
4542 |
] ifFalse:[ |
|
4543 |
(src findString:aString ignoreCase:ignoreCase) ~~ 0 |
|
4544 |
] |
|
5891 | 4545 |
] |
2675 | 4546 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4547 |
^ searchBlock. |
2675 | 4548 |
|
4549 |
" |
|
4550 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
4551 |
" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4552 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4553 |
|
5877 | 4554 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch |
4555 |
"return a block to search for a string-literal." |
|
4556 |
||
4557 |
|searchBlock s| |
|
4558 |
||
5891 | 4559 |
(doMatch and:[ aString includesMatchCharacters]) ifTrue:[ |
5877 | 4560 |
s := '*' , aString , '*'. |
4561 |
"a matchString" |
|
4562 |
searchBlock := [:c :m :sel | |
|
4563 |
|lits| |
|
4564 |
lits := m literals ? #(). |
|
4565 |
lits contains:[:lit | |
|
4566 |
lit isString |
|
4567 |
and:[lit isSymbol not |
|
4568 |
and:[s match:lit ignoreCase:ignoreCase]] |
|
4569 |
] |
|
4570 |
] |
|
4571 |
] ifFalse:[ |
|
5891 | 4572 |
ignoreCase ifTrue:[ |
4573 |
s := aString asLowercase. |
|
4574 |
searchBlock := [:c :m :sel | |
|
4575 |
|lits| |
|
4576 |
lits := m literals ? #(). |
|
4577 |
lits contains:[:lit | |
|
4578 |
lit isString |
|
4579 |
and:[lit isSymbol not |
|
4580 |
and:[s = lit asLowercase]] |
|
4581 |
] |
|
4582 |
] |
|
4583 |
] ifFalse:[ |
|
4584 |
searchBlock := [:c :m :sel | |
|
4585 |
|lits| |
|
4586 |
lits := m literals ? #(). |
|
4587 |
lits contains:[:lit | |
|
4588 |
lit isString |
|
4589 |
and:[lit isSymbol not |
|
4590 |
and:[s = lit]] |
|
4591 |
] |
|
4592 |
] |
|
4593 |
]. |
|
5877 | 4594 |
]. |
4595 |
^ searchBlock. |
|
4596 |
||
4597 |
" |
|
4598 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
4599 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4600 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
4601 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
4602 |
" |
|
203 | 4603 |
! ! |
4604 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
4605 |
!SystemBrowser class methodsFor:'startup'! |
36 | 4606 |
|
203 | 4607 |
browseAllSelect:aBlock |
4608 |
"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
|
4609 |
The block is called with 3 arguments, class, method and selector." |
203 | 4610 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4611 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4612 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4613 |
title:'selected messages' |
36 | 4614 |
|
53 | 4615 |
" |
203 | 4616 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 4617 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4618 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4619 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 4620 |
! |
75 | 4621 |
|
203 | 4622 |
browseClass:aClass |
4490 | 4623 |
"launch a browser for aClass. |
4624 |
Notice: better go via Smalltalk browseClass:, which honors the tool-preferences" |
|
203 | 4625 |
|
4626 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4627 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4628 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4629 |
arg:aClass |
203 | 4630 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4631 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4632 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4633 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4634 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4635 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 4636 |
! |
4637 |
||
4638 |
browseClass:aClass methodCategory:aCategory |
|
4639 |
"launch a browser for all methods under aCategory in aClass" |
|
4640 |
||
4641 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4642 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 4643 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4644 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4645 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4646 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4647 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4648 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 4649 |
! |
4650 |
||
4651 |
browseClass:aClass selector:selector |
|
4490 | 4652 |
"launch a browser for the method at selector in aClass." |
203 | 4653 |
|
4654 |
^ self |
|
4158 | 4655 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
4656 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
203 | 4657 |
|
4658 |
" |
|
4659 |
SystemBrowser browseClass:Object selector:#printString |
|
4660 |
" |
|
36 | 4661 |
! |
4662 |
||
203 | 4663 |
browseClassCategory:aClassCategory |
4664 |
"launch a browser for all classes under aCategory" |
|
4665 |
||
4666 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4667 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4668 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4669 |
arg:aClassCategory |
203 | 4670 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4671 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4672 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4673 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4674 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4675 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 4676 |
! |
4677 |
||
4678 |
browseClassHierarchy:aClass |
|
4679 |
"launch a browser for aClass and all its superclasses. |
|
4680 |
this is different from the fullProtocol browser." |
|
36 | 4681 |
|
203 | 4682 |
^ self |
4158 | 4683 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
4684 |
setupSelector:#setupForClassHierarchy: |
|
4685 |
arg:aClass |
|
203 | 4686 |
|
4687 |
" |
|
4688 |
SystemBrowser browseClassHierarchy:Number |
|
4689 |
" |
|
4690 |
! |
|
4691 |
||
4692 |
browseClasses:aList title:title |
|
4693 |
"launch a browser for all classes in aList" |
|
4694 |
||
4695 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4696 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4697 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 4698 |
|
4699 |
" |
|
4700 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4701 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4702 |
title:'two classes' |
203 | 4703 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4704 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4705 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4706 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4707 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4708 |
browseClasses:aList title:title sort:doSort |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4709 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4710 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4711 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4712 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4713 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4714 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4715 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4716 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4717 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4718 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4719 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4720 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4721 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 4722 |
! |
4723 |
||
203 | 4724 |
browseFullClassProtocol:aClass |
4725 |
"launch a browser for aClasses full protocol. |
|
4726 |
This is different from hierarchy browsing." |
|
4727 |
||
4728 |
^ self |
|
4158 | 4729 |
newWithLabel:(aClass name , '-' , 'full protocol') |
4730 |
setupSelector:#setupForFullClassProtocol: |
|
4731 |
arg:aClass |
|
203 | 4732 |
|
4733 |
" |
|
4734 |
SystemBrowser browseFullClassProtocol:Number |
|
4735 |
" |
|
4736 |
! |
|
36 | 4737 |
|
203 | 4738 |
browseFullClasses |
4739 |
"launch a browser showing all methods at once" |
|
4740 |
||
4741 |
^ self |
|
4158 | 4742 |
newWithLabel:'Full Class Browser' |
4743 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 4744 |
|
203 | 4745 |
"SystemBrowser browseFullClasses" |
4746 |
! |
|
4747 |
||
4748 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
4749 |
"launch a browser for all instance methods in aClass and all subclasses |
|
4750 |
where aBlock evaluates to true" |
|
36 | 4751 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4752 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4753 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4754 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4755 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4756 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4757 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4758 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4759 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 4760 |
! |
4761 |
||
4762 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
4763 |
"launch a browser for all instance methods of all classes in |
|
4764 |
aCollectionOfClasses where aBlock evaluates to true" |
|
4765 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4766 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4767 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4768 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4769 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4770 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4771 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 4772 |
! |
36 | 4773 |
|
203 | 4774 |
browseInstMethodsOf:aClass where:aBlock title:title |
4775 |
"launch a browser for all instance methods in aClass |
|
4776 |
where aBlock evaluates to true" |
|
4777 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4778 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4779 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4780 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4781 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4782 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4783 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4784 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 4785 |
! |
4786 |
||
4787 |
browseMethodCategory:aCategory |
|
4788 |
"launch a browser for all methods where category = aCategory" |
|
4789 |
||
4790 |
|searchBlock| |
|
4791 |
||
4792 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4793 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 4794 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4795 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 4796 |
]. |
4797 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4798 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 4799 |
|
4800 |
" |
|
4801 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
4802 |
SystemBrowser browseMethodCategory:'print*' |
|
4803 |
" |
|
4804 |
! |
|
4805 |
||
3666 | 4806 |
browseMethods:aListOfMethods |
4807 |
"launch a multi-method browser." |
|
4808 |
||
4809 |
^ self browseMethods:aListOfMethods title:'some methods' |
|
4810 |
||
4811 |
" |
|
4812 |
self |
|
4813 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4814 |
with:(OrderedCollection compiledMethodAt:#at:)) |
|
4815 |
||
4816 |
self |
|
4817 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4818 |
with:(Array compiledMethodAt:#at:put:)) |
|
4819 |
" |
|
4820 |
! |
|
4821 |
||
203 | 4822 |
browseMethods:aList title:aString |
4823 |
"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
|
4824 |
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
|
4825 |
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
|
4826 |
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
|
4827 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4828 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4829 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4830 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4831 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4832 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4833 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4834 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4835 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4836 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4837 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4838 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4839 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4840 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4841 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4842 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4843 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4844 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4845 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4846 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4847 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4848 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4849 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4850 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4851 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4852 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4853 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4854 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4855 |
"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
|
4856 |
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
|
4857 |
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
|
4858 |
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
|
4859 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4860 |
|l| |
203 | 4861 |
|
4862 |
(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
|
4863 |
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
|
4864 |
^ nil |
203 | 4865 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4866 |
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
|
4867 |
l := l collect:[:entry | |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4868 |
|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
|
4869 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4870 |
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
|
4871 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4872 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4873 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4874 |
cls isNil ifTrue:[ |
1031 | 4875 |
'??? unbound' |
4876 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4877 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4878 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4879 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4880 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4881 |
]. |
7915 | 4882 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
4883 |
clsName |
|
4884 |
, ' ' |
|
4885 |
, '???' |
|
4886 |
] ifFalse:[ |
|
4887 |
clsName |
|
4888 |
, ' ' |
|
4889 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry) inClass:cls) |
|
4890 |
] |
|
1031 | 4891 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4892 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4893 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4894 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4895 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4896 |
|
203 | 4897 |
^ 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
|
4898 |
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
|
4899 |
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
|
4900 |
arg:l |
53 | 4901 |
|
203 | 4902 |
" |
4903 |
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
|
4904 |
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
|
4905 |
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
|
4906 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4907 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4908 |
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
|
4909 |
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
|
4910 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4911 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4912 |
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
|
4913 |
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
|
4914 |
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
|
4915 |
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
|
4916 |
|
203 | 4917 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4918 |
|
7711 | 4919 |
"Modified: / 17-06-1996 / 17:07:46 / stefan" |
4920 |
"Modified: / 05-03-2007 / 16:25:25 / cg" |
|
2826 | 4921 |
! |
53 | 4922 |
|
203 | 4923 |
browseMethodsFrom:aClass where:aBlock title:title |
4924 |
"launch a browser for all instance- and classmethods in aClass |
|
4925 |
and all its subclasses where aBlock evaluates to true. |
|
4926 |
The block is called with 3 arguments, class, method and seelctor." |
|
4927 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4928 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4929 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4930 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4931 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4932 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4933 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 4934 |
! |
4935 |
||
4936 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
4937 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
4938 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
4939 |
where aBlock evaluates to true. |
|
270 | 4940 |
The block is called with 3 arguments, class, method and selector." |
203 | 4941 |
|
4942 |
|list| |
|
53 | 4943 |
|
4944 |
" |
|
203 | 4945 |
since this may take a long time, lower my priority ... |
53 | 4946 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
4947 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
4948 |
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
|
4949 |
do:[ |
2675 | 4950 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 4951 |
]. |
4952 |
^ self browseMethods:list title:title |
|
53 | 4953 |
! |
4954 |
||
3780 | 4955 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock |
4956 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
4957 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
4958 |
where aBlock evaluates to true. |
|
4959 |
The block is called with 3 arguments, class, method and selector." |
|
4960 |
||
4961 |
|list| |
|
4962 |
||
4963 |
" |
|
4964 |
since this may take a long time, lower my priority ... |
|
4965 |
" |
|
4966 |
Processor activeProcess |
|
4967 |
withPriority:Processor activePriority-1 to:Processor activePriority |
|
4968 |
do:[ |
|
4969 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock. |
|
4970 |
list size == 0 ifTrue:[warnBlock value]. |
|
4971 |
]. |
|
4972 |
^ self browseMethods:list title:title |
|
4973 |
! |
|
4974 |
||
203 | 4975 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
4976 |
"launch a browser for all instance- and classmethods from |
|
4977 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
4978 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 4979 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4980 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4981 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4982 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4983 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4984 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4985 |
title:title |
75 | 4986 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4987 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 4988 |
! |
4989 |
||
3780 | 4990 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock |
4991 |
"launch a browser for all instance- and classmethods from |
|
4992 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
4993 |
The block is called with 3 arguments, class, method and seelctor." |
|
4994 |
||
4995 |
^ self |
|
4996 |
browseMethodsIn:aCollectionOfClasses |
|
4997 |
inst:true |
|
4998 |
class:true |
|
4999 |
where:aBlock |
|
5000 |
title:title |
|
5001 |
ifNone:warnBlock |
|
5002 |
||
5003 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
|
5004 |
! |
|
5005 |
||
203 | 5006 |
browseMethodsOf:aClass where:aBlock title:title |
5007 |
"launch a browser for all instance- and classmethods in aClass |
|
5008 |
where aBlock evaluates to true. |
|
5009 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 5010 |
|
203 | 5011 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 5012 |
! |
5013 |
||
203 | 5014 |
browseMethodsWhere:aBlock title:title |
5015 |
"launch a browser for all methods where aBlock returns true. |
|
5016 |
The block is called with 3 arguments, class, method and seelctor." |
|
5017 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5018 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5019 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5020 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5021 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5022 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
5023 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 5024 |
! |
5025 |
||
3780 | 5026 |
browseMethodsWhere:aBlock title:title ifNone:warnBlock |
5027 |
"launch a browser for all methods where aBlock returns true. |
|
5028 |
The block is called with 3 arguments, class, method and seelctor." |
|
5029 |
||
5030 |
^ self |
|
5031 |
browseMethodsIn:(Smalltalk allClasses) |
|
5032 |
where:aBlock |
|
5033 |
title:title |
|
5034 |
ifNone:warnBlock |
|
5035 |
||
5036 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
|
5037 |
! |
|
5038 |
||
2675 | 5039 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
5040 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
5041 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
5042 |
||
5043 |
|list checkedClasses checkBlock| |
|
5044 |
||
5045 |
checkedClasses := IdentitySet new. |
|
5046 |
list := OrderedCollection new. |
|
5047 |
||
5048 |
checkBlock := [:cls | |
|
5049 |
(checkedClasses includes:cls) ifFalse:[ |
|
8554
441ea25ad1fd
Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents:
8505
diff
changeset
|
5050 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
2882 | 5051 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
2675 | 5052 |
] ifFalse:[ |
5053 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
|
5054 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
|
5055 |
list add:method "/ (cls name , ' ' , sel) |
|
5056 |
] |
|
5057 |
]. |
|
5058 |
checkedClasses add:cls. |
|
5059 |
] |
|
5060 |
] |
|
5061 |
]. |
|
5062 |
||
5063 |
aCollectionOfClasses do:[:aClass | |
|
3008 | 5064 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
2675 | 5065 |
" |
5066 |
output disabled - it slows down things too much (when searching for |
|
5067 |
implementors or senders) |
|
5068 |
" |
|
5069 |
wantInst ifTrue:[ |
|
5070 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
5071 |
checkBlock value:aClass |
|
5072 |
]. |
|
5073 |
wantClass ifTrue:[ |
|
5074 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
5075 |
checkBlock value:(aClass class) |
|
5076 |
]. |
|
5077 |
Processor yield |
|
5078 |
] |
|
5079 |
]. |
|
5080 |
^ list |
|
5081 |
! |
|
5082 |
||
5083 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
5084 |
"return all instance- and classmethods |
|
5085 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
5086 |
||
5087 |
^ self |
|
5088 |
findMethodsIn:aCollectionOfClasses |
|
5089 |
inst:true |
|
5090 |
class:true |
|
5091 |
where:aBlock |
|
203 | 5092 |
! ! |
93 | 5093 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5094 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 5095 |
|
5096 |
askThenBrowseClass |
|
5097 |
self getClassThenPerform:#browseClass: |
|
5098 |
||
5099 |
" |
|
5100 |
SystemBrowser askThenBrowseClass |
|
5101 |
" |
|
93 | 5102 |
! |
5103 |
||
203 | 5104 |
askThenBrowseClassHierarchy |
5105 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 5106 |
|
203 | 5107 |
" |
5108 |
SystemBrowser askThenBrowseClassHierarchy |
|
5109 |
" |
|
36 | 5110 |
! |
5111 |
||
203 | 5112 |
askThenBrowseFullClassProtocol |
5113 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 5114 |
|
203 | 5115 |
" |
5116 |
SystemBrowser askThenBrowseFullClassProtocol |
|
5117 |
" |
|
52 | 5118 |
! |
5119 |
||
203 | 5120 |
getClassThenPerform:aSelector |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5121 |
|enterBox resources| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5122 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5123 |
resources := self classResources. |
52 | 5124 |
|
6353 | 5125 |
enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:'). |
6640 | 5126 |
enterBox okText:(resources string:'Browse'). |
6873 | 5127 |
enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
203 | 5128 |
enterBox action:[:className | |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5129 |
|cls| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5130 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5131 |
cls := Smalltalk classNamed:className. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5132 |
cls isNil ifTrue:[ |
6640 | 5133 |
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
|
5134 |
] ifFalse:[ |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5135 |
self perform:aSelector with:cls |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5136 |
] |
203 | 5137 |
]. |
5138 |
enterBox showAtPointer |
|
75 | 5139 |
|
203 | 5140 |
" |
5141 |
SystemBrowser getClassThenPerform:#browseClass: |
|
5142 |
" |
|
6873 | 5143 |
|
5144 |
"Modified: / 10-08-2006 / 12:54:20 / cg" |
|
36 | 5145 |
! ! |
5146 |
||
2813 | 5147 |
!SystemBrowser class methodsFor:'utilities'! |
5148 |
||
3833 | 5149 |
classWithNameSimilarTo:className |
5150 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
|
5151 |
||
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5152 |
|allMatchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5153 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5154 |
allMatchingClasses := self classesWithNameSimilarTo:className. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5155 |
^ allMatchingClasses firstIfEmpty:nil |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5156 |
! |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5157 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5158 |
classesWithNameSimilarTo:className |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5159 |
"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
|
5160 |
|
6944 | 5161 |
^ self classesWithNameSimilarTo:className from:nil |
5162 |
||
5163 |
"Modified: / 22-08-2006 / 13:22:41 / cg" |
|
5164 |
! |
|
5165 |
||
5166 |
classesWithNameSimilarTo:className from:aNameSpaceOrNil |
|
5167 |
"helper for class-name entry; finds classes with a name similar to the argument, className" |
|
5168 |
||
5169 |
|nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses |
|
5170 |
prefNameSpaceOrNil prefLcNameSpace| |
|
5171 |
||
5172 |
prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil]. |
|
3833 | 5173 |
|
5174 |
(className startsWith:'Smalltalk::') ifTrue:[ |
|
5175 |
nm := className copyFrom:('Smalltalk::' size + 1). |
|
5176 |
] ifFalse:[ |
|
5177 |
nm := className. |
|
5178 |
]. |
|
5179 |
||
6944 | 5180 |
prefNameSpaceOrNil notNil ifTrue:[ |
5181 |
class := prefNameSpaceOrNil at:nm asSymbol. |
|
5182 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
|
5183 |
prefLcNameSpace := prefNameSpaceOrNil name asLowercase. |
|
5184 |
]. |
|
3833 | 5185 |
class := Smalltalk at:nm asSymbol. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5186 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
3833 | 5187 |
|
5188 |
lcName := className asLowercase. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5189 |
|
3833 | 5190 |
allClasses := Smalltalk allClasses. |
4806 | 5191 |
|
6134 | 5192 |
triedDetectors := OrderedCollection new. |
5193 |
triedDetectors add:[:cls | cls name asLowercase = lcName]. |
|
5194 |
||
5195 |
triedDetectors do:[:eachTry | |
|
5196 |
|class| |
|
5197 |
||
5198 |
class := allClasses detect:eachTry ifNone:nil. |
|
5199 |
class notNil ifTrue:[^ Array with:class]. |
|
5200 |
]. |
|
5201 |
||
4806 | 5202 |
triedMatchers := OrderedCollection new. |
5018
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5203 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName]. |
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5204 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5205 |
|
4806 | 5206 |
triedMatchers add:[:cls | cls name asLowercase startsWith:lcName]. |
5207 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]. |
|
5208 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]. |
|
5209 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName]. |
|
6134 | 5210 |
triedMatchers add:[:cls | cls name asLowercase includesString:lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5211 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5212 |
allMatchingClasses := IdentitySet new. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5213 |
triedMatchers do:[:eachTry | |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5214 |
|matchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5215 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5216 |
matchingClasses := allClasses select:eachTry. |
6944 | 5217 |
"/ matchingClasses size == 1 ifTrue:[^ matchingClasses]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5218 |
allMatchingClasses addAll:matchingClasses. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5219 |
]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5220 |
allMatchingClasses isEmpty ifTrue:[^ #()]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5221 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5222 |
allMatchingClasses := allMatchingClasses asOrderedCollection. |
6944 | 5223 |
allMatchingClasses |
5224 |
sort:[:a :b | |
|
5225 |
|lcNameA lcNameB da db distA distB | |
|
5226 |
||
5227 |
lcNameA := a name asLowercase. |
|
5228 |
lcNameB := b name asLowercase. |
|
5229 |
prefNameSpaceOrNil notNil ifTrue:[ |
|
5230 |
a nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5231 |
lcNameA := a nameWithoutNameSpacePrefix asLowercase. |
|
5232 |
]. |
|
5233 |
b nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5234 |
lcNameB := b nameWithoutNameSpacePrefix asLowercase. |
|
5235 |
]. |
|
5236 |
]. |
|
5237 |
||
5238 |
distA := da := lcName levenshteinTo:lcNameA. |
|
5239 |
distB := db := lcName levenshteinTo:lcNameB. |
|
5240 |
"prefer prefixes (i.e. classes whose name starts with what we search for)" |
|
5241 |
||
5242 |
(lcNameA startsWith:lcName) ifTrue:[ |
|
5243 |
distB := distB * 2 |
|
5244 |
]. |
|
5245 |
(lcNameB startsWith:lcName) ifTrue:[ |
|
5246 |
distA := distA * 2 |
|
5247 |
]. |
|
5248 |
distA < distB |
|
5249 |
]. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5250 |
^ allMatchingClasses. |
6546 | 5251 |
|
5252 |
" |
|
6678 | 5253 |
self classesWithNameSimilarTo:'NewSystemBrowser' |
5254 |
self classesWithNameSimilarTo:'Moose::MSEAbstractOperator' |
|
6546 | 5255 |
" |
6944 | 5256 |
|
5257 |
"Created: / 22-08-2006 / 13:22:48 / cg" |
|
5258 |
"Modified: / 22-08-2006 / 14:53:38 / cg" |
|
3833 | 5259 |
! |
5260 |
||
2813 | 5261 |
extractClassAndSelectorFrom:aString into:aBlock |
5262 |
"given a string which can be either 'class>>sel' or |
|
5263 |
'class sel', extract className and selector, and call aBlock with |
|
5264 |
the result. |
|
5265 |
Useful to open browser on a method as selected in some documentation." |
|
5266 |
||
5267 |
|sel clsName isMeta sep s| |
|
5268 |
||
5269 |
sel := aString. |
|
5270 |
sel notNil ifTrue:[ |
|
5271 |
sel := sel asString withoutSeparators. |
|
5272 |
('*>>*' match:sel) ifTrue:[ |
|
5273 |
sep := $> |
|
5274 |
] ifFalse:[ |
|
5275 |
('* *' match:sel) ifTrue:[ |
|
5276 |
sep := Character space |
|
5277 |
] |
|
5278 |
]. |
|
5279 |
sep notNil ifTrue:[ |
|
5280 |
" |
|
5281 |
extract class/sel from selection |
|
5282 |
" |
|
5283 |
s := ReadStream on:sel. |
|
5284 |
clsName := s upTo:sep. |
|
5285 |
[s peek == sep] whileTrue:[s next]. |
|
5286 |
sel := s upToEnd. |
|
5287 |
||
5288 |
(clsName endsWith:' class') ifTrue:[ |
|
5289 |
isMeta := true. |
|
5290 |
clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)" |
|
5291 |
] ifFalse:[ |
|
5292 |
isMeta := false |
|
5293 |
]. |
|
5294 |
] |
|
5295 |
]. |
|
5296 |
aBlock value:clsName value:sel value:isMeta |
|
5297 |
||
5298 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
5299 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
5300 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
5301 |
! |
|
5302 |
||
5303 |
extractSelectorFrom:aString |
|
5304 |
"given an arbitrary string, try to extract a useful selector. |
|
5305 |
Useful to open browser on a selected code fragment." |
|
5306 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5307 |
|s sel sel2 t| |
2813 | 5308 |
|
5309 |
aString isNil ifTrue:[^ nil]. |
|
5310 |
||
5311 |
s := aString asString string. |
|
5312 |
s := s withoutSeparators. |
|
5313 |
sel := s. |
|
5314 |
||
6705 | 5315 |
((sel endsWith:$:) |
5316 |
and:[sel knownAsSymbol]) ifTrue:[ |
|
5317 |
^ sel asSymbol |
|
5318 |
]. |
|
5319 |
||
2813 | 5320 |
t := Parser selectorInExpression:sel. |
5321 |
t notNil ifTrue:[ |
|
5322 |
sel := t |
|
5323 |
]. |
|
5324 |
(sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[ |
|
5325 |
"oops - thats probably not what we want here ..." |
|
5326 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
|
5327 |
sel := s |
|
5328 |
] |
|
5329 |
]. |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5330 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5331 |
sel asSymbolIfInterned isNil ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5332 |
(sel startsWith:'#') ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5333 |
sel2 := sel copyFrom:2. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5334 |
((sel2 startsWith:'''') and:[(sel2 endsWith:'''')]) ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5335 |
sel2 := (sel2 copyFrom:2) copyWithoutLast:1 |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5336 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5337 |
sel2 asSymbolIfInterned notNil ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5338 |
^ sel2 |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5339 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5340 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5341 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5342 |
|
2813 | 5343 |
^ sel |
5344 |
||
5345 |
" |
|
5346 |
self extractSelectorFrom:'at:put:' |
|
5347 |
self extractSelectorFrom:'#at:put:' |
|
5348 |
self extractSelectorFrom:'at:something put:someValue' |
|
5349 |
self extractSelectorFrom:'self at:something put:someValue' |
|
5350 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
5351 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
5352 |
self extractSelectorFrom:'Array>>at:put:' |
|
5353 |
" |
|
5354 |
||
5355 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
5356 |
"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
|
5357 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5358 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5359 |
resourceEditorClassFor:aResource |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5360 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5361 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5362 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5363 |
(aResource == #canvas) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5364 |
^ UIPainter |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5365 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5366 |
(aResource == #menu) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5367 |
^ MenuEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5368 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5369 |
((aResource == #image) or:[aResource == #fileImage]) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5370 |
^ ImageEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5371 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5372 |
(aResource == #help) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5373 |
^ UIHelpTool |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5374 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5375 |
(aResource == #tableColumns) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5376 |
^ DataSetBuilder |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5377 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5378 |
(aResource == #tabList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5379 |
^ TabListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5380 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5381 |
(aResource == #hierarchicalList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5382 |
^ HierarchicalListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5383 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5384 |
^ nil |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5385 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5386 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5387 |
resourceEditorClassForResources:resources |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5388 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5389 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5390 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5391 |
resources keysDo:[:eachResource | |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5392 |
|editor| |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5393 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5394 |
editor := self resourceEditorClassFor:eachResource. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5395 |
editor notNil ifTrue:[ ^ editor]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5396 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5397 |
^ nil |
2813 | 5398 |
! ! |
5399 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5400 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5401 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5402 |
className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5403 |
"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
|
5404 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5405 |
^ className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5406 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5407 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5408 |
className:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5409 |
"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
|
5410 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5411 |
className := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5412 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5413 |
|
3151 | 5414 |
className:classNameArg meta:metaArg selector:selectorArg |
5415 |
className := classNameArg. |
|
5416 |
meta := metaArg. |
|
5417 |
selector := selectorArg. |
|
5418 |
! |
|
5419 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5420 |
meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5421 |
"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
|
5422 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5423 |
^ meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5424 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5425 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5426 |
meta:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5427 |
"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
|
5428 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5429 |
meta := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5430 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5431 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5432 |
selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5433 |
"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
|
5434 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5435 |
^ selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5436 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5437 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5438 |
selector:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5439 |
"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
|
5440 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5441 |
selector := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5442 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5443 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5444 |
theClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5445 |
^ Smalltalk at:className asSymbol |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5446 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5447 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5448 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5449 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5450 |
= anEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5451 |
^ className = anEntry className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5452 |
and:[meta = anEntry meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5453 |
and:[selector = anEntry selector]] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5454 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5455 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5456 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 5457 |
|
203 | 5458 |
version |
8688 | 5459 |
^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.262 2009-09-10 15:31:20 cg Exp $' |
36 | 5460 |
! ! |
4112 | 5461 |
|
203 | 5462 |
SystemBrowser initialize! |