author | Claus Gittinger <cg@exept.de> |
Fri, 04 Apr 2008 17:31:50 +0200 | |
changeset 8047 | 8bc319ff9ba7 |
parent 7998 | 0c63e8647d1f |
child 8129 | 9bb5ca89393a |
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 |
7968 | 776 |
constantNamed:'SystemBrowser 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 |
7968 | 918 |
constantNamed:'SystemBrowser 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 |
7968 | 936 |
constantNamed:'SystemBrowser 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 |
7968 | 961 |
constantNamed:'SystemBrowser 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 |
7968 | 1065 |
constantNamed:'SystemBrowser 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 |
7968 | 1156 |
constantNamed:'SystemBrowser 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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1291 |
constantNamed:#'SystemBrowser 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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1310 |
constantNamed:#'SystemBrowser programMenuIcon' |
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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1363 |
constantNamed:#'SystemBrowser redLockIcon' |
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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1544 |
constantNamed:#'SystemBrowser tabListIcon' |
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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1563 |
constantNamed:#'SystemBrowser tableColumnsIcon' |
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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1643 |
constantNamed:#'SystemBrowser timeIcon' |
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 |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1662 |
constantNamed:#'SystemBrowser traceIcon' |
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). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
1891 |
box preferredExtent:(box preferredExtent + (0 @ chk preferredExtent y) + (0@10)). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
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:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2048 |
cls isObsolete 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 |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2232 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2233 |
kludge for now, if its a multipart selector, |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2234 |
no easy search is (as yet) possible |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2235 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2236 |
s := aSelectorString. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2237 |
(s includes:$:) ifTrue:[ |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2238 |
s := s copyTo:(s indexOf:$:) |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2239 |
]. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2240 |
browser autoSearch:s |
52 | 2241 |
]. |
2242 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2243 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2244 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2245 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2246 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2247 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2248 |
title:'just a test' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2249 |
" |
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 |
"Modified: 24.1.1997 / 19:48:54 / cg" |
52 | 2252 |
! |
2253 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2254 |
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
|
2255 |
"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
|
2256 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2257 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2258 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2259 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2260 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2261 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2262 |
|
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 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2265 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2266 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2267 |
title:'just a test' |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2268 |
" |
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 |
"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
|
2271 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2272 |
|
203 | 2273 |
browseCallsOn:aSelectorString under:aClass |
2274 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
2275 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2276 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2277 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2278 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2279 |
title:(self classResources |
6476 | 2280 |
string:'Senders of: %1 (in and below %2)' |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2281 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2282 |
with:aClass name) |
203 | 2283 |
|
2284 |
" |
|
256 | 2285 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 2286 |
" |
256 | 2287 |
|
2288 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2289 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 2290 |
! |
2291 |
||
2292 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2293 |
"launch a browser for all methods in aClass where the classVar named |
|
2294 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
2295 |
classvar is modified" |
|
2296 |
||
2297 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2298 |
! |
|
2299 |
||
2300 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2301 |
"launch a browser for all methods in aCollectionOfClasses, |
|
2302 |
where the classVar named aString is referenced; |
|
2303 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2304 |
||
2305 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2306 |
! |
|
2307 |
||
2308 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
2309 |
"launch a browser for all methods in aClass and subclasses |
|
2310 |
where the classVar named aString is referenced; |
|
2311 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2312 |
||
2313 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
2314 |
||
2315 |
! |
|
2316 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2317 |
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
|
2318 |
"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
|
2319 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2320 |
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
|
2321 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2322 |
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
|
2323 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2324 |
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
|
2325 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2326 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
2327 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2328 |
|
1356 | 2329 |
"/ search for any resource can be done without looking |
2330 |
"/ at the source ... |
|
2331 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
2332 |
searchBlock := [:class :method :s | method hasResource] |
|
2333 |
] ifFalse:[ |
|
2334 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2335 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2336 |
|
1356 | 2337 |
found := false. |
2338 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2339 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2340 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2341 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2342 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2343 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2344 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2345 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2346 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2347 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2348 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2349 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2350 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2351 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2352 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2353 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2354 |
] |
1356 | 2355 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2356 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2357 |
] |
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 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2360 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2361 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2362 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2363 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2364 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2365 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2366 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2367 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2368 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2369 |
] |
1356 | 2370 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2371 |
found := item match:val printString |
1356 | 2372 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2373 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2374 |
found := item match:rsrc printString |
1356 | 2375 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2376 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2377 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2378 |
] |
1356 | 2379 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2380 |
]. |
1356 | 2381 |
found |
2382 |
]. |
|
2383 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2384 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2385 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2386 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2387 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2388 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2389 |
browser autoSearch:'resource:' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2390 |
]. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2391 |
^ browser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2392 |
|
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 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2395 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2396 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2397 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2398 |
" |
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 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2401 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2402 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2403 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2404 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2405 |
" |
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 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2408 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2409 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2410 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2411 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2412 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2413 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
2414 |
"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
|
2415 |
! |
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 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2418 |
"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
|
2419 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2420 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2421 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2422 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2423 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2424 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2425 |
title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2426 |
|
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 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2429 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2430 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2431 |
title:'methods accessing styleSheet values' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2432 |
" |
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 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2435 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2436 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2437 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2438 |
" |
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 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2441 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2442 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2443 |
title:'methods with a resource' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2444 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2445 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
2446 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2447 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
2448 |
|
203 | 2449 |
browseForString:aString |
2450 |
"launch a browser for all methods containing a string in their source. |
|
2451 |
This may be slow, since source-code has to be scanned." |
|
2452 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2453 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2454 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2455 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 2456 |
! |
2457 |
||
2458 |
browseForString:aString in:aCollectionOfClasses |
|
2459 |
"launch a browser for all methods in aCollectionOfClasses |
|
2460 |
containing a string in their source. |
|
2461 |
This may be slow, since source-code has to be scanned." |
|
2462 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2463 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2464 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2465 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2466 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2467 |
|
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 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2470 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2471 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2472 |
" |
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 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2475 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2476 |
! |
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 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2479 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2480 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2481 |
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
|
2482 |
|
203 | 2483 |
|browser searchBlock title s| |
2484 |
||
6476 | 2485 |
title := self classResources string:'Methods containing: %1' with:aString displayString. |
203 | 2486 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2487 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2488 |
or:[ignoreCase]) ifTrue:[ |
256 | 2489 |
s := '*' , aString , '*'. |
2490 |
"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
|
2491 |
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
|
2492 |
|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
|
2493 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2494 |
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
|
2495 |
('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
|
2496 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2497 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2498 |
s match:src ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2499 |
] |
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
|
2500 |
] |
203 | 2501 |
] 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
|
2502 |
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
|
2503 |
|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
|
2504 |
|
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 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2506 |
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
|
2507 |
('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
|
2508 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2509 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2510 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2511 |
] |
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
|
2512 |
] |
203 | 2513 |
]. |
2514 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
2515 |
||
2516 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2517 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 2518 |
]. |
2519 |
^ browser |
|
2520 |
||
2521 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2522 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2523 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 2524 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
2525 |
" |
|
2526 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2527 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
2528 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 2529 |
! |
2530 |
||
2531 |
browseForSymbol:aSymbol |
|
2532 |
"launch a browser for all methods referencing aSymbol" |
|
2533 |
||
666 | 2534 |
^ self |
2535 |
browseForSymbol:aSymbol |
|
6476 | 2536 |
title:(self classResources string:'Users of: %1' with:aSymbol) |
666 | 2537 |
warnIfNone:true |
256 | 2538 |
|
2539 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 2540 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
2541 |
! |
|
2542 |
||
2543 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
2544 |
"launch a browser for all methods referencing aSymbol" |
|
2545 |
||
7914 | 2546 |
^ self |
2547 |
browseForSymbol:aSymbol |
|
2548 |
in:aSetOfClasses |
|
2549 |
title:title |
|
2550 |
warnIfNone:doWarn |
|
2551 |
searchFor:aSymbol |
|
203 | 2552 |
! |
2553 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2554 |
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
|
2555 |
"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
|
2556 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2557 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2558 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2559 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2560 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2561 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2562 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2563 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2564 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2565 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2566 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2567 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2568 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2569 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2570 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2571 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2572 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2573 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2574 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2575 |
]. |
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 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2578 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2579 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2580 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2581 |
]. |
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 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2584 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2585 |
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
|
2586 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2587 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2588 |
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
|
2589 |
]. |
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 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2592 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2593 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2594 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2595 |
^ browser |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2596 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2597 |
"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
|
2598 |
"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
|
2599 |
"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
|
2600 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2601 |
|
2409 | 2602 |
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
|
2603 |
"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
|
2604 |
|
203 | 2605 |
|browser searchBlock sym| |
2606 |
||
2607 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
375 | 2608 |
"a matchString" |
2609 |
searchBlock := [:c :m :s | |
|
2439 | 2610 |
m referencesGlobalMatching:aSymbol |
2611 |
"/ (m literalsDetect:[:aLiteral| |
|
2612 |
"/ (aLiteral isMemberOf:Symbol) |
|
2613 |
"/ and:[aSymbol match:aLiteral] |
|
2614 |
"/ ] ifNone:nil) notNil |
|
375 | 2615 |
]. |
203 | 2616 |
] ifFalse:[ |
375 | 2617 |
" |
2618 |
can do a faster search |
|
2619 |
" |
|
2620 |
sym := aSymbol asSymbolIfInterned. |
|
2621 |
sym isNil ifTrue:[ |
|
2409 | 2622 |
actionIfNoneFound value. |
375 | 2623 |
^ nil |
2624 |
]. |
|
203 | 2625 |
|
375 | 2626 |
searchBlock := [:c :m :s | |
2439 | 2627 |
m referencesGlobal:sym |
2628 |
"/ (m literalsDetect:[:aLiteral| |
|
2629 |
"/ (sym == aLiteral) |
|
2630 |
"/ ] ifNone:nil) notNil |
|
375 | 2631 |
]. |
203 | 2632 |
]. |
2409 | 2633 |
|
2634 |
WarningSignal ignoreIn:[ |
|
2635 |
InformationSignal ignoreIn:[ |
|
375 | 2636 |
browser := self browseMethodsWhere:searchBlock title:title. |
2637 |
] |
|
2409 | 2638 |
]. |
2639 |
browser isNil ifTrue:[ |
|
2640 |
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
|
2641 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2642 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2643 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2644 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2645 |
browser autoSearch:searchString |
203 | 2646 |
]. |
2647 |
^ browser |
|
375 | 2648 |
|
2439 | 2649 |
"Modified: / 24.6.1996 / 14:39:07 / stefan" |
2650 |
"Created: / 31.10.1996 / 14:45:08 / cg" |
|
2651 |
"Modified: / 9.11.1999 / 17:04:30 / cg" |
|
203 | 2652 |
! |
2653 |
||
2409 | 2654 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
2655 |
"launch a browser for all methods referencing aSymbol" |
|
2656 |
||
2657 |
^ self |
|
2658 |
browseForSymbol:aSymbol |
|
2659 |
title:title |
|
2660 |
warnIfNone:doWarn |
|
2661 |
searchFor:aSymbol |
|
2662 |
||
2663 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
2664 |
! |
|
2665 |
||
2666 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
2667 |
"launch a browser for all methods referencing aSymbol" |
|
2668 |
||
2414 | 2669 |
|b| |
2670 |
||
2671 |
doWarn ifTrue: [ |
|
4158 | 2672 |
b := [self showNoneFound:title] |
2414 | 2673 |
]. |
2409 | 2674 |
^ self |
2675 |
browseForSymbol:aSymbol |
|
2676 |
title:title |
|
2414 | 2677 |
ifNone:b |
2409 | 2678 |
searchFor:searchString |
2679 |
! |
|
2680 |
||
4158 | 2681 |
browseImplementorsMatching:aSelectorString |
2682 |
"launch a browser for all implementors of aSelector" |
|
2683 |
||
2684 |
^ self |
|
2685 |
browseImplementorsMatching:aSelectorString |
|
2686 |
in:(Smalltalk allClasses) |
|
2687 |
||
2688 |
" |
|
2689 |
SystemBrowser browseImplementorsOf:#+ |
|
2690 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2691 |
" |
|
2692 |
||
2693 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
2694 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
2695 |
! |
|
2696 |
||
2697 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses |
|
2698 |
"launch a browser for all implementors of aSelector" |
|
2699 |
||
2700 |
^ self |
|
2701 |
browseImplementorsMatching:aSelectorString |
|
2702 |
in:aSetOfClasses |
|
2703 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2704 |
||
2705 |
" |
|
2706 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2707 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2708 |
" |
|
2709 |
||
2710 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2711 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
2712 |
! |
|
2713 |
||
2714 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
|
2715 |
"launch a browser for all implementors of aSelector" |
|
2716 |
||
2717 |
^ self |
|
2718 |
browseImplementorsMatching:aSelectorString |
|
2719 |
in:aSetOfClasses |
|
2720 |
ignoreCase:ignoreCase |
|
2721 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
2722 |
||
2723 |
" |
|
2724 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2725 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2726 |
" |
|
2727 |
||
2728 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2729 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
|
2730 |
! |
|
2731 |
||
2732 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
2733 |
"launch a browser for all implementors of aSelector in |
|
2734 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2735 |
||
2736 |
|list| |
|
2737 |
||
2738 |
list := self |
|
2739 |
findImplementorsMatching:aSelectorString |
|
2740 |
in:aCollectionOfClasses |
|
2741 |
ignoreCase:ignoreCase. |
|
2742 |
||
2743 |
list size == 0 ifTrue:[ |
|
2744 |
self showNoneFound:title. |
|
2745 |
^ nil |
|
2746 |
]. |
|
2747 |
||
2748 |
^ self browseMethods:list asOrderedCollection title:title |
|
2749 |
||
2750 |
" |
|
2751 |
SystemBrowser browseImplementorsOf:#+ |
|
2752 |
in:(Array with:Number |
|
2753 |
with:Float |
|
2754 |
with:SmallInteger) |
|
2755 |
title:'some implementors of +' |
|
2756 |
||
2757 |
NewSystemBrowser browseImplementorsOf:#+ |
|
2758 |
in:(Array with:Number |
|
2759 |
with:Float |
|
2760 |
with:SmallInteger) |
|
2761 |
title:'some implementors of +' |
|
2762 |
" |
|
2763 |
||
2764 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
2765 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
2766 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
2767 |
! |
|
2768 |
||
2769 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title |
|
2770 |
"launch a browser for all implementors of aSelector in |
|
2771 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2772 |
||
2773 |
^ self |
|
2774 |
browseImplementorsMatching:aSelectorString |
|
2775 |
in:aCollectionOfClasses |
|
2776 |
ignoreCase:false |
|
2777 |
title:title |
|
2778 |
! |
|
2779 |
||
2780 |
browseImplementorsMatching:aSelectorString under:aClass |
|
2781 |
"launch a browser for all implementors of aSelector in aClass |
|
2782 |
and its subclasses" |
|
2783 |
||
2784 |
^ self |
|
2785 |
browseImplementorsMatching:aSelectorString |
|
2786 |
in:(aClass withAllSubclasses) |
|
2787 |
title:(self classResources |
|
2788 |
string:'implementors of: %1 (in and below %2)' |
|
2789 |
with:aSelectorString |
|
2790 |
with:aClass name) |
|
2791 |
||
2792 |
" |
|
2793 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
2794 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
|
2795 |
" |
|
2796 |
||
2797 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
|
2798 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
|
2799 |
! |
|
2800 |
||
52 | 2801 |
browseImplementorsOf:aSelectorString |
2802 |
"launch a browser for all implementors of aSelector" |
|
2803 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2804 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2805 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2806 |
in:(Smalltalk allClasses) |
52 | 2807 |
|
2808 |
" |
|
2809 |
SystemBrowser browseImplementorsOf:#+ |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2810 |
NewSystemBrowser browseImplementorsOf:#+ |
52 | 2811 |
" |
256 | 2812 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2813 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2814 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
666 | 2815 |
! |
2816 |
||
2817 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
2818 |
"launch a browser for all implementors of aSelector" |
|
2819 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2820 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2821 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2822 |
in:aSetOfClasses |
6476 | 2823 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString) |
666 | 2824 |
|
2825 |
" |
|
2826 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2827 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
666 | 2828 |
" |
2829 |
||
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2830 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2831 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
52 | 2832 |
! |
2833 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2834 |
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
|
2835 |
"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
|
2836 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2837 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2838 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2839 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2840 |
ignoreCase:ignoreCase |
6476 | 2841 |
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
|
2842 |
|
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 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2845 |
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
|
2846 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2847 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2848 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2849 |
"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
|
2850 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2851 |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2852 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
36 | 2853 |
"launch a browser for all implementors of aSelector in |
2854 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2855 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2856 |
|list list2 rs selWithColon title| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2857 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2858 |
title := titleArg. |
2642 | 2859 |
list := self |
4158 | 2860 |
findImplementorsOf:aSelectorString |
2642 | 2861 |
in:aCollectionOfClasses |
2862 |
ignoreCase:ignoreCase. |
|
45 | 2863 |
|
2642 | 2864 |
list size == 0 ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2865 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2866 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2867 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2868 |
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
|
2869 |
]. |
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 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2872 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2873 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2874 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2875 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2876 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2877 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2878 |
(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
|
2879 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2880 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2881 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2882 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2883 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2884 |
title := title , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2885 |
|
36 | 2886 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2887 |
|
270 | 2888 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 2889 |
|
2890 |
" |
|
2891 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 2892 |
in:(Array with:Number |
2893 |
with:Float |
|
2894 |
with:SmallInteger) |
|
2895 |
title:'some implementors of +' |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2896 |
|
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2897 |
NewSystemBrowser browseImplementorsOf:#+ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2898 |
in:(Array with:Number |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2899 |
with:Float |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2900 |
with:SmallInteger) |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2901 |
title:'some implementors of +' |
36 | 2902 |
" |
132 | 2903 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2904 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2905 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2906 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
36 | 2907 |
! |
2908 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2909 |
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
|
2910 |
"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
|
2911 |
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
|
2912 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2913 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2914 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2915 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2916 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2917 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2918 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2919 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2920 |
|
52 | 2921 |
browseImplementorsOf:aSelectorString under:aClass |
2922 |
"launch a browser for all implementors of aSelector in aClass |
|
2923 |
and its subclasses" |
|
2924 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2925 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2926 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2927 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2928 |
title:(self classResources |
6476 | 2929 |
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
|
2930 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2931 |
with:aClass name) |
52 | 2932 |
|
2933 |
" |
|
2934 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2935 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
52 | 2936 |
" |
256 | 2937 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2938 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
2939 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
52 | 2940 |
! |
2941 |
||
3663 | 2942 |
browseImplementorsOfAny:setOfSelectors |
2943 |
"launch a browser for all implementors of aSelector" |
|
2944 |
||
2945 |
^ self |
|
2946 |
browseImplementorsOfAny:setOfSelectors |
|
2947 |
in:(Smalltalk allClasses) |
|
2948 |
||
2949 |
" |
|
2950 |
SystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
2951 |
NewSystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
2952 |
" |
|
2953 |
||
2954 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
2955 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
2956 |
! |
|
2957 |
||
2958 |
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses |
|
2959 |
"launch a browser for all implementors of aSelector" |
|
2960 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2961 |
|title| |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2962 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2963 |
setOfSelectors size == 1 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2964 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2965 |
string:'Implementors of %1' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2966 |
with:(setOfSelectors asOrderedCollection first). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2967 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2968 |
setOfSelectors size == 2 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2969 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2970 |
string:'Implementors of %1 or %2' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2971 |
with:(setOfSelectors asOrderedCollection first) |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2972 |
with:(setOfSelectors asOrderedCollection second). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2973 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2974 |
title := self classResources string:'Implementors of some'. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2975 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2976 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2977 |
|
3663 | 2978 |
^ self |
2979 |
browseImplementorsOfAny:setOfSelectors |
|
2980 |
in:aSetOfClasses |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
2981 |
title:title |
3663 | 2982 |
|
2983 |
" |
|
2984 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2985 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
2986 |
" |
|
2987 |
||
2988 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
2989 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
2990 |
! |
|
2991 |
||
2992 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
2993 |
"launch a browser for all implementors of aSelector in |
|
2994 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
2995 |
||
2996 |
|list| |
|
2997 |
||
2998 |
list := self |
|
2999 |
findImplementorsOfAny:setOfSelectors |
|
3000 |
in:aCollectionOfClasses |
|
3001 |
ignoreCase:ignoreCase. |
|
3002 |
||
3003 |
list size == 0 ifTrue:[ |
|
3004 |
self showNoneFound:title. |
|
3005 |
^ nil |
|
3006 |
]. |
|
3007 |
||
3008 |
^ self browseMethods:list asOrderedCollection title:title |
|
3009 |
||
3010 |
" |
|
3011 |
SystemBrowser browseImplementorsOf:#+ |
|
3012 |
in:(Array with:Number |
|
3013 |
with:Float |
|
3014 |
with:SmallInteger) |
|
3015 |
title:'some implementors of +' |
|
3016 |
||
3017 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3018 |
in:(Array with:Number |
|
3019 |
with:Float |
|
3020 |
with:SmallInteger) |
|
3021 |
title:'some implementors of +' |
|
3022 |
" |
|
3023 |
||
3024 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3025 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3026 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3027 |
! |
|
3028 |
||
3029 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title |
|
3030 |
"launch a browser for all implementors of aSelector in |
|
3031 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
3032 |
||
3033 |
^ self |
|
3034 |
browseImplementorsOfAny:setOfSelectors |
|
3035 |
in:aCollectionOfClasses |
|
3036 |
ignoreCase:false |
|
3037 |
title:title |
|
3038 |
! |
|
3039 |
||
203 | 3040 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
3041 |
"launch a browser for all methods in aClass where the instVar named |
|
3042 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3043 |
instvar is modified" |
|
45 | 3044 |
|
203 | 3045 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 3046 |
! |
3047 |
||
203 | 3048 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
3049 |
"launch a browser for all methods in aClass where the instVar named |
|
3050 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3051 |
instvar is modified" |
|
52 | 3052 |
|
203 | 3053 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 3054 |
! |
3055 |
||
203 | 3056 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3057 |
"launch a browser for all methods in aClass and subclasses |
|
3058 |
where the instVar named aString is referenced; |
|
3059 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 3060 |
|
203 | 3061 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 3062 |
! |
3063 |
||
3064 |
browseReferendsOf:aGlobalName |
|
3065 |
"launch a browser for all methods referencing a global |
|
1367 | 3066 |
named aGlobalName. The argument may be a symbol, a string or |
3067 |
a matchPattern. |
|
36 | 3068 |
" |
3069 |
||
3070 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
3071 |
||
3072 |
" |
|
3073 |
Browser browseReferendsOf:#Transcript |
|
1367 | 3074 |
Browser browseReferendsOf:'Tr*' |
36 | 3075 |
" |
75 | 3076 |
|
1367 | 3077 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 3078 |
! |
3079 |
||
2409 | 3080 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
3081 |
"launch a browser for all methods referencing a global |
|
3082 |
named aGlobalName. |
|
3083 |
" |
|
3084 |
||
3085 |
^ self |
|
3086 |
browseReferendsOf:aGlobalName |
|
6476 | 3087 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
2409 | 3088 |
ifNone:actionIfNone |
3089 |
||
3090 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
3091 |
! |
|
3092 |
||
666 | 3093 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
3094 |
"launch a browser for all methods referencing a global |
|
3095 |
named aGlobalName. |
|
3096 |
" |
|
3097 |
||
3098 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
3099 |
||
3100 |
" |
|
3101 |
Browser browseReferendsOf:#Transcript |
|
3102 |
" |
|
3103 |
||
3104 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
3105 |
! |
|
3106 |
||
3107 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
3108 |
"launch a browser for all methods referencing a global |
|
3109 |
named aGlobalName. |
|
3110 |
" |
|
3111 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3112 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3113 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3114 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3115 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3116 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3117 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3118 |
|
666 | 3119 |
^ self browseForSymbol:aGlobalName |
3120 |
in:aSetOfClasses |
|
6476 | 3121 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
666 | 3122 |
warnIfNone:doWarn |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3123 |
searchFor:globalsPlainName |
666 | 3124 |
|
3125 |
"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
|
3126 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 3127 |
! |
3128 |
||
2409 | 3129 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
203 | 3130 |
"launch a browser for all methods referencing a global |
3131 |
named aGlobalName. |
|
3132 |
" |
|
3133 |
||
2828 | 3134 |
|globalsPlainName idx searchBlock |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3135 |
sym browser matchingGlobalNames| |
820
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:[ |
1367 | 3139 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
3140 |
(globalsPlainName size == 0 |
|
3141 |
or:[globalsPlainName = '*']) ifTrue:[ |
|
3142 |
globalsPlainName := aGlobalName |
|
3143 |
] |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3144 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3145 |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3146 |
matchingGlobalNames := OrderedCollection new. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3147 |
|
3125 | 3148 |
(sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3149 |
matchingGlobalNames add:sym. |
3125 | 3150 |
searchBlock := [:cls :mthd :sel | |mSource| |
3151 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
3152 |
mthd isLazyMethod ifTrue:[ |
|
3153 |
mSource := mthd source. |
|
3154 |
(mSource notNil |
|
3155 |
and:[(mSource includesString:sym) |
|
3156 |
and:[mthd usedGlobals includes:sym]]) |
|
3157 |
] ifFalse:[ |
|
3158 |
((mthd refersToLiteral:sym) |
|
3159 |
and:[mthd usedGlobals includes:sym]) |
|
3160 |
] |
|
3161 |
] |
|
3162 |
] ifFalse:[ |
|
2828 | 3163 |
aGlobalName includesMatchCharacters ifFalse:[ |
3164 |
actionIfNone value. |
|
3165 |
^ nil |
|
3166 |
]. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3167 |
searchBlock := [:cls :mthd :sel | |mSource usedGlobals global| |
2828 | 3168 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
3169 |
mthd isLazyMethod ifTrue:[ |
|
3170 |
mSource := mthd source. |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3171 |
mSource notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3172 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3173 |
] |
2828 | 3174 |
] ifFalse:[ |
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3175 |
(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
|
3176 |
usedGlobals := mthd usedGlobals |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3177 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3178 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3179 |
usedGlobals notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3180 |
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
|
3181 |
global notNil ifTrue:[ |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3182 |
matchingGlobalNames add:global. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3183 |
] |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3184 |
]. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3185 |
global notNil |
2828 | 3186 |
] |
3187 |
]. |
|
3780 | 3188 |
"/ WarningSignal ignoreIn:[ |
3189 |
"/ InformationSignal ignoreIn:[ |
|
3190 |
browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil]. |
|
3191 |
"/ ]. |
|
3192 |
"/ ]. |
|
2828 | 3193 |
browser isNil ifTrue:[ |
3194 |
actionIfNone value |
|
3195 |
] ifFalse:[ |
|
5546
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3196 |
browser autoSearchVariables:matchingGlobalNames readers:true writers:true. |
8d1e9c32cf4a
browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents:
5270
diff
changeset
|
3197 |
"/ browser autoSearch:globalsPlainName. |
2828 | 3198 |
]. |
3199 |
^ browser |
|
2409 | 3200 |
! |
3201 |
||
3202 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
3203 |
"launch a browser for all methods referencing a global |
|
3204 |
named aGlobalName. |
|
3205 |
" |
|
3206 |
||
2414 | 3207 |
|b| |
3208 |
||
3209 |
doWarn ifTrue: [ |
|
4158 | 3210 |
b := [self showNoneFound:title] |
2414 | 3211 |
]. |
3212 |
||
2409 | 3213 |
^ self |
3214 |
browseReferendsOf:aGlobalName |
|
3215 |
title:title |
|
2414 | 3216 |
ifNone:b |
2409 | 3217 |
|
1367 | 3218 |
! |
3219 |
||
3220 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
3221 |
"launch a browser for all methods referencing a global |
|
3222 |
named aGlobalName. |
|
3223 |
" |
|
3224 |
||
3225 |
^ self |
|
3226 |
browseReferendsOf:aGlobalName |
|
6476 | 3227 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
1367 | 3228 |
warnIfNone:doWarn |
3229 |
||
3230 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 3231 |
! |
3232 |
||
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3233 |
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3234 |
"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
|
3235 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3236 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3237 |
|globalsPlainName searchBlock browser| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3238 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3239 |
searchBlock := [:cls :mthd :sel | |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3240 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3241 |
|mSource globals potentialNames| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3242 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3243 |
"/ 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
|
3244 |
mthd isLazyMethod ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3245 |
mSource := mthd source. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3246 |
mSource notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3247 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3248 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3249 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3250 |
"/ try hard to avoid the usedGlobals - its expensive |
6640 | 3251 |
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
|
3252 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3253 |
potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3254 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3255 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3256 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3257 |
] |
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 |
globals notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3260 |
globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3261 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3262 |
false |
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 |
]. |
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 |
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
|
3267 |
browser isNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3268 |
actionIfNone value |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3269 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3270 |
browser autoSearch:globalsPlainName |
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 |
^ browser |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3273 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3274 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3275 |
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3276 |
"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
|
3277 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3278 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3279 |
|b| |
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 |
doWarn ifTrue: [ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3282 |
b := [self showNoneFound:title] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3283 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3284 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3285 |
^ self |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3286 |
browseReferendsOfUnboundGlobalsWithTitle:title |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3287 |
ifNone:b |
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 |
|
203 | 3290 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
3291 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3292 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3293 |
instvar is modified" |
|
3294 |
||
3295 |
|title| |
|
3296 |
||
3297 |
modsOnly ifTrue:[ |
|
6476 | 3298 |
title := 'Modifications of: %1' |
203 | 3299 |
] ifFalse:[ |
6476 | 3300 |
title := 'References to: %1 ' |
203 | 3301 |
]. |
3302 |
^ self |
|
256 | 3303 |
browseRefsTo:aString |
3304 |
classVars:classVars |
|
3305 |
in:aCollectionOfClasses |
|
3306 |
modificationsOnly:modsOnly |
|
3307 |
title:(self classResources string:title with:aString) |
|
3308 |
||
3309 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
3310 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 3311 |
! |
3312 |
||
3313 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3314 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
3315 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3316 |
instvar is modified" |
|
3317 |
||
3318 |
|filter browser pattern| |
|
3319 |
||
3320 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 3321 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 3322 |
|
3323 |
browser notNil ifTrue:[ |
|
2677 | 3324 |
modsOnly ifTrue:[ |
3325 |
pattern := varName , ' :=' |
|
3326 |
] ifFalse:[ |
|
3327 |
pattern := varName |
|
3328 |
]. |
|
3329 |
browser autoSearch:pattern |
|
203 | 3330 |
]. |
3331 |
^ browser |
|
3332 |
! |
|
3333 |
||
3407 | 3334 |
browseSendersOf:aSelectorString |
3335 |
"launch a browser for all senders of aSelector" |
|
3336 |
||
3337 |
^ self browseAllCallsOn:aSelectorString |
|
3338 |
||
3339 |
" |
|
3340 |
SystemBrowser browseSendersOf:#+ |
|
7914 | 3341 |
UserPreferences current systemBrowserClass browseSendersOf:#+ |
3407 | 3342 |
" |
3343 |
||
3344 |
"Modified: / 10.7.1996 / 10:26:15 / cg" |
|
3345 |
"Created: / 13.11.2001 / 13:52:12 / cg" |
|
3346 |
! |
|
3347 |
||
256 | 3348 |
browseSuperCallsIn:aCollectionOfClasses title:title |
3349 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
3350 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
3351 |
|browser searchBlock| |
256 | 3352 |
|
3353 |
searchBlock := [:class :method :s | |
|
504 | 3354 |
|src parser| |
256 | 3355 |
|
504 | 3356 |
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
|
3357 |
(src notNil and:[src findString:'super']) ~~ 0 ifTrue:[ |
504 | 3358 |
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
|
3359 |
parseMethod:src |
504 | 3360 |
in:class |
3361 |
ignoreErrors:true |
|
3362 |
ignoreWarnings:true. |
|
3363 |
||
7711 | 3364 |
(parser notNil and:[parser ~~ #Error and:[parser usesSuper]]) |
504 | 3365 |
] ifFalse:[ |
3366 |
false |
|
3367 |
] |
|
256 | 3368 |
]. |
3369 |
||
3370 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 3371 |
where:searchBlock |
3372 |
title:title. |
|
256 | 3373 |
|
3374 |
browser notNil ifTrue:[ |
|
504 | 3375 |
browser autoSearch:'super' |
256 | 3376 |
]. |
3377 |
^ browser |
|
3378 |
||
504 | 3379 |
" |
3380 |
SystemBrowser |
|
3381 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
3382 |
title:'superSends in SortedCollection' |
|
3383 |
" |
|
3384 |
||
7711 | 3385 |
"Created: / 23-11-1995 / 14:08:55 / cg" |
3386 |
"Modified: / 06-03-2007 / 14:00:12 / cg" |
|
256 | 3387 |
! |
3388 |
||
3389 |
browseSuperCallsUnder:aClass |
|
3390 |
"launch a browser for all supersends in aClass and subclasses" |
|
3391 |
||
3392 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
6476 | 3393 |
title:(self classResources string:'Supersends (in and below %1)' with:aClass name) |
256 | 3394 |
|
3395 |
" |
|
3396 |
SystemBrowser browseSuperCallsUnder:Number |
|
3397 |
" |
|
3398 |
||
3399 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
3400 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
3401 |
! |
|
3402 |
||
52 | 3403 |
browseUsesOf:aClass |
3404 |
|dict owners offsets |
|
3405 |
sz "{ Class: SmallInteger }" |
|
3406 |
n "{ Class: SmallInteger }" |
|
3407 |
removeSet newDict| |
|
3408 |
||
3409 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
3410 |
||
3411 |
" |
|
3412 |
collect set of offsets in dict; key is class |
|
3413 |
" |
|
3414 |
dict := IdentityDictionary new. |
|
3415 |
owners do:[:someObject | |
|
4158 | 3416 |
|cls create| |
3417 |
||
3418 |
someObject isContext ifFalse:[ |
|
3419 |
" |
|
3420 |
someObject refers to an instance of aClass; |
|
3421 |
find out, which instVar(s) |
|
3422 |
" |
|
3423 |
cls := someObject class. |
|
3424 |
cls ~~ Array ifTrue:[ |
|
3425 |
n := cls instSize. |
|
3426 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
3427 |
||
3428 |
1 to:n do:[:i | |
|
3429 |
|ref| |
|
3430 |
||
3431 |
ref := someObject instVarAt:i. |
|
3432 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3433 |
offsets := dict at:cls ifAbsent:create. |
|
3434 |
offsets add:i. |
|
3435 |
] |
|
3436 |
]. |
|
3437 |
cls isVariable ifTrue:[ |
|
3438 |
cls isPointers ifTrue:[ |
|
3439 |
| idx "{ Class: SmallInteger }" | |
|
3440 |
||
3441 |
sz := someObject basicSize. |
|
3442 |
idx := 1. |
|
3443 |
[idx <= sz] whileTrue:[ |
|
3444 |
|ref| |
|
3445 |
||
3446 |
ref := someObject basicAt:idx. |
|
3447 |
(ref isMemberOf:aClass) ifTrue:[ |
|
3448 |
offsets := dict at:cls ifAbsent:create. |
|
3449 |
offsets add:0. |
|
3450 |
idx := sz |
|
3451 |
]. |
|
3452 |
idx := idx + 1 |
|
3453 |
] |
|
3454 |
] |
|
3455 |
] |
|
3456 |
] |
|
3457 |
] |
|
52 | 3458 |
]. |
3459 |
||
3460 |
" |
|
3461 |
merge with superclass refs |
|
3462 |
" |
|
3463 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3464 |
cls allSuperclasses do:[:aSuperclass | |
3465 |
|superSet| |
|
3466 |
||
3467 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
3468 |
superSet notNil ifTrue:[ |
|
3469 |
|removeSet| |
|
3470 |
||
3471 |
superSet := dict at:aSuperclass. |
|
3472 |
removeSet := Set new. |
|
3473 |
set do:[:offset | |
|
3474 |
(superSet includes:offset) ifTrue:[ |
|
3475 |
removeSet add:offset |
|
3476 |
] |
|
3477 |
]. |
|
3478 |
set removeAll:removeSet |
|
3479 |
] |
|
3480 |
] |
|
52 | 3481 |
]. |
3482 |
||
3483 |
" |
|
3484 |
remove empty ones |
|
3485 |
" |
|
3486 |
removeSet := Set new. |
|
3487 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3488 |
set isEmpty ifTrue:[ |
3489 |
removeSet add:cls |
|
3490 |
] |
|
52 | 3491 |
]. |
3492 |
removeSet do:[:cls | |
|
4158 | 3493 |
dict removeKey:cls |
52 | 3494 |
]. |
3495 |
||
3496 |
" |
|
3497 |
replace the indices by real names |
|
3498 |
" |
|
3499 |
newDict := IdentityDictionary new. |
|
3500 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 3501 |
|newSet names| |
3502 |
||
3503 |
names := cls allInstVarNames. |
|
3504 |
newSet := set collect:[:index | |
|
3505 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
3506 |
]. |
|
3507 |
newDict at:cls put:newSet |
|
52 | 3508 |
]. |
3509 |
||
3510 |
newDict inspect |
|
3511 |
||
75 | 3512 |
|
52 | 3513 |
! |
3514 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3515 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
7914 | 3516 |
"return a searchblock for variable references (obsolete)" |
3517 |
||
3518 |
^ self |
|
3519 |
filterToSearchRefsTo:varName |
|
3520 |
instVars:(classVars not) |
|
3521 |
classVars:classVars |
|
3522 |
globals:false |
|
3523 |
access:accessType |
|
3524 |
! |
|
3525 |
||
3526 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
|
3527 |
"return a searchblock for variable references" |
|
3528 |
||
3529 |
^ self |
|
3530 |
filterToSearchRefsTo:varName |
|
3531 |
classVars:classVars |
|
3532 |
access:(modsOnly ifTrue:#write ifFalse:#readWrite) |
|
3533 |
! |
|
3534 |
||
3535 |
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
|
3536 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3537 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3538 |
|searchBlock| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3539 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3540 |
searchBlock := [:c :m :s | |
7914 | 3541 |
|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
|
3542 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3543 |
needMatch := varName includesMatchCharacters. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3544 |
|
7914 | 3545 |
result := false. |
3546 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3547 |
src := m source. |
7914 | 3548 |
src notNil ifTrue:[ |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3549 |
needMatch ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3550 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3551 |
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
|
3552 |
methods source for the variables name ... |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3553 |
" |
7914 | 3554 |
(varName includes:$:) ifTrue:[ |
3555 |
result := (src findString:(varName copyFrom:(varName lastIndexOf:$:)+1)) ~~ 0. |
|
3556 |
] ifFalse:[ |
|
3557 |
result := (src findString:varName) ~~ 0. |
|
3558 |
]. |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3559 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3560 |
result := true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3561 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3562 |
result ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3563 |
result := false. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3564 |
parser := Parser |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3565 |
parseMethod:src |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3566 |
in:c |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3567 |
ignoreErrors:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3568 |
ignoreWarnings:true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3569 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3570 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
7914 | 3571 |
vars := Set new. |
3572 |
doInstVars ifTrue:[ |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3573 |
accessType == #read ifTrue:[ |
7914 | 3574 |
instVars := parser readInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3575 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3576 |
accessType == #write ifTrue:[ |
7914 | 3577 |
instVars := parser modifiedInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3578 |
] ifFalse:[ |
7914 | 3579 |
instVars := parser usedInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3580 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3581 |
]. |
7914 | 3582 |
vars addAll:instVars. |
3583 |
]. |
|
3584 |
doClassVars ifTrue:[ |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3585 |
accessType == #read ifTrue:[ |
7914 | 3586 |
classVars := parser readClassVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3587 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3588 |
accessType == #write ifTrue:[ |
7914 | 3589 |
classVars := parser modifiedClassVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3590 |
] ifFalse:[ |
7914 | 3591 |
classVars := parser usedClassVars |
2736
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 |
]. |
7914 | 3594 |
vars addAll:classVars. |
3595 |
]. |
|
3596 |
doGlobals ifTrue:[ |
|
3597 |
accessType == #read ifTrue:[ |
|
3598 |
globals := parser readGlobals |
|
3599 |
] ifFalse:[ |
|
3600 |
accessType == #write ifTrue:[ |
|
3601 |
globals := parser modifiedGlobals |
|
3602 |
] ifFalse:[ |
|
3603 |
globals := parser usedGlobals |
|
3604 |
] |
|
3605 |
]. |
|
3606 |
vars addAll:globals. |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3607 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3608 |
vars size > 0 ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3609 |
needMatch ifTrue:[ |
7914 | 3610 |
result := vars contains:[:cv | (varName match:cv)] |
504 | 3611 |
] ifFalse:[ |
3612 |
result := vars includes:varName |
|
3613 |
] |
|
3614 |
] |
|
3615 |
]. |
|
3616 |
]. |
|
3617 |
]. |
|
3618 |
Processor yield. |
|
3619 |
result |
|
36 | 3620 |
]. |
203 | 3621 |
^ searchBlock |
504 | 3622 |
|
1190 | 3623 |
"Modified: 19.6.1997 / 18:27:57 / cg" |
2642 | 3624 |
! |
3625 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3626 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3627 |
"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
|
3628 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3629 |
^ 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
|
3630 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3631 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3632 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3633 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3634 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
3635 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3636 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3637 |
"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
|
3638 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3639 |
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
|
3640 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3641 |
^ 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
|
3642 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3643 |
|
2677 | 3644 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 3645 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 3646 |
aString is referenced; |
3647 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3648 |
||
3649 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3650 |
! |
|
3651 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3652 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3653 |
"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
|
3654 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3655 |
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
|
3656 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3657 |
^ 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
|
3658 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3659 |
|
2728 | 3660 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
3661 |
"return all methods in aClass where the classVar named |
|
3662 |
aString is referenced; |
|
3663 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3664 |
||
3665 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
3666 |
! |
|
3667 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3668 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3669 |
"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
|
3670 |
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
|
3671 |
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
|
3672 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3673 |
^ 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
|
3674 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3675 |
|
2677 | 3676 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
3677 |
"return all methods in aClass and subclasses |
|
3678 |
where the classVar named aString is referenced; |
|
3679 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3680 |
||
3681 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3682 |
||
3683 |
! |
|
3684 |
||
5094 | 3685 |
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
5243 | 3686 |
"return a collection of all methods in aCollectionOfClasses |
5094 | 3687 |
containing a matching piece of code. |
3688 |
This may be slow, since source-code has to be scanned." |
|
3689 |
||
3690 |
|searchBlock| |
|
3691 |
||
3692 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
5226 | 3693 |
searchBlock isNil ifTrue:[ ^ nil]. |
5094 | 3694 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
3695 |
! |
|
3696 |
||
5243 | 3697 |
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod |
3698 |
"return a collection of all methods in aCollectionOfMethods |
|
3699 |
containing a matching piece of code." |
|
3700 |
||
3701 |
|searchBlock| |
|
3702 |
||
3703 |
searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod. |
|
3704 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
3705 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
3706 |
! |
|
3707 |
||
3314 | 3708 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3709 |
"return a collection of all help-spec methods in aCollectionOfClasses |
|
3710 |
containing a string in their source. |
|
3711 |
This may be slow, since source-code has to be scanned." |
|
3712 |
||
3713 |
^ self findSpecMethodsFor:#help withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
|
3714 |
! |
|
3715 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3716 |
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
3675 | 3717 |
"search for all implementors of aSelector in |
3718 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3719 |
Return a collection of methods" |
|
3720 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3721 |
|list compare testST testJava lcSelector| |
3675 | 3722 |
|
3723 |
list := IdentitySet new. |
|
6051 | 3724 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
3725 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3726 |
doMatch ifTrue:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3727 |
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
|
3728 |
] ifFalse:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3729 |
compare := [:sel :search | sel = search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3730 |
]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3731 |
|
3675 | 3732 |
ignoreCase == true ifTrue:[ |
3733 |
lcSelector := aSelectorMatchString asLowercase. |
|
3734 |
||
7847 | 3735 |
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
|
3736 |
testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ]. |
3675 | 3737 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3738 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3739 |
testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
3675 | 3740 |
]. |
3741 |
||
3742 |
aCollectionOfClasses do:[:aClass | |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3743 |
|testBlock srchBlock| |
3675 | 3744 |
|
3745 |
aClass isObsolete ifFalse:[ |
|
3746 |
aClass isJavaClass ifTrue:[ |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3747 |
testBlock := testJava |
3675 | 3748 |
] ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3749 |
testBlock := testST |
3675 | 3750 |
]. |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3751 |
srchBlock := [:sel :mthd | (testBlock value:sel value:mthd) ifTrue:[ list add:mthd]]. |
3675 | 3752 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
3753 |
aClass isMeta ifFalse:[ |
|
3754 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
3755 |
] |
|
3756 |
] |
|
3757 |
]. |
|
3758 |
||
3759 |
^ list |
|
3760 |
||
3761 |
" |
|
3762 |
SystemBrowser findImplementorsOf:#+ |
|
3763 |
in:(Array with:Number |
|
3764 |
with:Float |
|
3765 |
with:SmallInteger) |
|
3766 |
" |
|
7847 | 3767 |
|
3768 |
"Modified: / 20-09-2007 / 16:02:10 / cg" |
|
3675 | 3769 |
! |
3770 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3771 |
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3772 |
"search for all implementors of aSelector in |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3773 |
the classes contained in aCollectionOfClasses and its metaclasses. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3774 |
Return a collection of methods" |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3775 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3776 |
|list compare testST testJava lcSelector| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3777 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3778 |
list := IdentitySet new. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3779 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3780 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3781 |
doMatch ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3782 |
compare := [:sel :search | sel match:search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3783 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3784 |
compare := [:sel :search | sel = search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3785 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3786 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3787 |
ignoreCase == true ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3788 |
lcSelector := aSelectorMatchString asLowercase. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3789 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3790 |
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
|
3791 |
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
|
3792 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3793 |
testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3794 |
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
|
3795 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3796 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3797 |
aCollectionOfMethods do:[:eachMethod | |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3798 |
|cls sel testBlock| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3799 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3800 |
cls := eachMethod mclass. |
7066 | 3801 |
(cls isNil or:[cls isObsolete]) ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3802 |
cls isJavaClass ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3803 |
testBlock := testJava |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3804 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3805 |
testBlock := testST |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3806 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3807 |
sel := eachMethod selector. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3808 |
(testBlock value:sel value:eachMethod) ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3809 |
list add:eachMethod |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3810 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3811 |
] |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3812 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3813 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3814 |
^ list |
7066 | 3815 |
|
3816 |
"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
|
3817 |
! |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
3818 |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3819 |
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
|
3820 |
"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
|
3821 |
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
|
3822 |
Return a collection of methods" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3823 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3824 |
^ 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
|
3825 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3826 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3827 |
SystemBrowser findImplementorsOf:#+ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3828 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3829 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3830 |
with:SmallInteger) |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3831 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3832 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3833 |
|
3675 | 3834 |
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
3835 |
"search for all implementors of any in aCollectionOfSelectors in |
|
3836 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3837 |
Return a collection of methods. |
|
3838 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
3839 |
||
6052 | 3840 |
^ aCollectionOfSelectors |
3841 |
collectAll:[:eachSelector | |
|
3842 |
self findImplementorsMatching:eachSelector |
|
3843 |
in:aCollectionOfClasses |
|
3844 |
ignoreCase:ignoreCase. |
|
3845 |
]. |
|
3846 |
||
3847 |
"/ |implementors| |
|
3848 |
"/ |
|
6051 | 3849 |
"/ implementors := IdentitySet new. |
3850 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
3851 |
"/ implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
3852 |
"/ ]. |
|
6052 | 3853 |
"/ ^ implementors |
6051 | 3854 |
|
3855 |
" |
|
3856 |
self |
|
3857 |
findImplementorsMatchingAny:#( 'at*:' '*size') |
|
3858 |
in:(Smalltalk allClasses) |
|
3859 |
ignoreCase:true |
|
3860 |
" |
|
3675 | 3861 |
! |
3862 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3863 |
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
2642 | 3864 |
"search for all implementors of aSelector in |
3865 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3866 |
Return a collection of methods" |
|
3867 |
||
6480 | 3868 |
^ self |
3869 |
findImplementors:aSelectorMatchString |
|
3870 |
in:aCollectionOfClasses |
|
3871 |
ignoreCase:ignoreCase |
|
3872 |
match:false |
|
2642 | 3873 |
|
3874 |
" |
|
3875 |
SystemBrowser findImplementorsOf:#+ |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3876 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3877 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
3878 |
with:SmallInteger) |
2642 | 3879 |
" |
3880 |
! |
|
3881 |
||
2811 | 3882 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
3883 |
"search for all implementors of any in aCollectionOfSelectors in |
|
3884 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
3885 |
Return a collection of methods. |
|
3886 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
3887 |
||
6052 | 3888 |
^ aCollectionOfSelectors |
3889 |
collectAll:[:eachSelector | |
|
3890 |
self findImplementorsOf:eachSelector |
|
3891 |
in:aCollectionOfClasses |
|
3892 |
ignoreCase:ignoreCase. |
|
3893 |
]. |
|
3894 |
||
3895 |
"/ |implementors| |
|
3896 |
"/ |
|
3897 |
"/ implementors := IdentitySet new. |
|
3898 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
3899 |
"/ implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
3900 |
"/ ]. |
|
3901 |
"/ ^ implementors |
|
2811 | 3902 |
! |
3903 |
||
2741 | 3904 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
3905 |
"return all methods in aCollectionOfClasses where the instVar named |
|
3906 |
aString is referenced; |
|
3907 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3908 |
||
3909 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
3910 |
! |
|
3911 |
||
2677 | 3912 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 3913 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 3914 |
aString is referenced; if modsOnly is true, browse only methods where the |
3915 |
instvar is modified" |
|
3916 |
||
3917 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3918 |
! |
|
3919 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3920 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3921 |
"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
|
3922 |
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
|
3923 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3924 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3925 |
^ 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
|
3926 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3927 |
|
2728 | 3928 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
3929 |
"return all methods in aClass where the instVar named |
|
3930 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3931 |
instvar is modified" |
|
3932 |
||
3933 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
3934 |
! |
|
3935 |
||
2741 | 3936 |
findInstRefsTo:aString under:aClass access:accessType |
3937 |
"return all methods in aClass and subclasses |
|
3938 |
where the classVar named aString is referenced; |
|
3939 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3940 |
||
3941 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
3942 |
! |
|
3943 |
||
2677 | 3944 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3945 |
"return all methods in aClass and subclasses |
|
3946 |
where the instVar named aString is referenced; |
|
3947 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
3948 |
||
3949 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3950 |
! |
|
3951 |
||
3314 | 3952 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3953 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
|
3954 |
containing a string in their source. |
|
3955 |
This may be slow, since source-code has to be scanned." |
|
3956 |
||
3957 |
^ self findSpecMethodsFor:#menu withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
|
3958 |
! |
|
3959 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3960 |
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
|
3961 |
"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
|
3962 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3963 |
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
|
3964 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3965 |
|filter| |
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 |
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
|
3968 |
^ 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
|
3969 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3970 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3971 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3972 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3973 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3974 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3975 |
modificationsOnly:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3976 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3977 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
3978 |
|
2677 | 3979 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
3980 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
3981 |
varName is referenced; |
|
3982 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
3983 |
||
3984 |
|filter| |
|
3985 |
||
3986 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
3987 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
3988 |
||
3989 |
" |
|
3990 |
self |
|
3991 |
findRefsTo:'x' |
|
3992 |
classVars:false |
|
3993 |
in:(Array with:Point) |
|
3994 |
modificationsOnly:true |
|
3995 |
" |
|
3996 |
! |
|
3997 |
||
2692 | 3998 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
3999 |
"return a collection of all methods in aCollectionOfClasses |
|
4000 |
containing a resource." |
|
4001 |
||
4002 |
|searchBlock| |
|
4003 |
||
4004 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
4005 |
searchBlock := [:c :m :sel | |resources| |
|
4006 |
(resources := m resources) size > 0 |
|
4007 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
4008 |
]. |
|
4009 |
] ifFalse:[ |
|
4010 |
searchBlock := [:c :m :sel | |resources| |
|
4011 |
(resources := m resources) size > 0 |
|
4012 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
4013 |
]. |
|
4014 |
]. |
|
4015 |
||
4016 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4017 |
||
4018 |
" |
|
4019 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
4020 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
4021 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
4022 |
" |
|
4023 |
! |
|
4024 |
||
2642 | 4025 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
4026 |
"search for all senders of aSelector in |
|
4027 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4028 |
Return a collection of methods" |
|
4029 |
||
4270 | 4030 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2642 | 4031 |
|
4032 |
" |
|
4033 |
SystemBrowser findSendersOf:#+ |
|
4034 |
in:(Array with:Number |
|
4035 |
with:Float |
|
4036 |
with:SmallInteger) |
|
4037 |
ignoreCase:false |
|
4038 |
" |
|
4270 | 4039 |
! |
4040 |
||
4041 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4042 |
"search for all senders of aSelector in |
|
4043 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4044 |
Return a collection of methods" |
|
4045 |
||
4046 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4047 |
||
4048 |
" |
|
4049 |
SystemBrowser findSendersOf:#+ |
|
4050 |
in:(Array with:Number |
|
4051 |
with:Float |
|
4052 |
with:SmallInteger) |
|
4053 |
ignoreCase:false |
|
4054 |
" |
|
2675 | 4055 |
! |
4056 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4057 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4058 |
"search for all senders of aSelector in aCollectionOfMethods. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4059 |
Return a collection of methods" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4060 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4061 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4062 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4063 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4064 |
^ 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
|
4065 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4066 |
|
4350 | 4067 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
4068 |
"search for all senders of aSelector in aCollectionOfMethods. |
|
4069 |
Return a collection of methods" |
|
4070 |
||
4071 |
|searchBlock| |
|
4072 |
||
4073 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
|
4074 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4075 |
! |
|
4076 |
||
2811 | 4077 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4078 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
4079 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
4080 |
Return a collection of methods. |
|
4081 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4082 |
||
6052 | 4083 |
^ aCollectionOfSelectors |
4084 |
collectAll:[:eachSelector | |
|
6184 | 4085 |
(self allCallsOn:eachSelector |
6052 | 4086 |
in:aCollectionOfClasses |
4087 |
ignoreCase:ignoreCase |
|
6184 | 4088 |
match:false) asSet. |
6052 | 4089 |
]. |
4090 |
||
4091 |
"/ |allSenders| |
|
4092 |
"/ |
|
4093 |
"/ allSenders := IdentitySet new. |
|
4094 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4095 |
"/ allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true) |
|
4096 |
"/ ]. |
|
4097 |
"/ ^ allSenders |
|
2811 | 4098 |
|
4099 |
" |
|
4100 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
4101 |
in:(Array with:Number |
|
4102 |
with:Float |
|
4103 |
with:SmallInteger) |
|
4104 |
ignoreCase:false |
|
4105 |
" |
|
4106 |
! |
|
4107 |
||
3314 | 4108 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
4109 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
4110 |
containing a string in their source. |
|
4111 |
This may be slow, since source-code has to be scanned." |
|
4112 |
||
3626 | 4113 |
|searchBlock s| |
3314 | 4114 |
|
4115 |
(aString includesMatchCharacters |
|
4116 |
or:[ignoreCase]) ifTrue:[ |
|
4117 |
s := '*' , aString , '*'. |
|
4118 |
"a matchString" |
|
4119 |
searchBlock := [:c :m :sel | |
|
4120 |
|src resources| |
|
4121 |
||
4122 |
((resources := m resources) size > 0 |
|
4123 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
4124 |
src := m source. |
|
4125 |
src isNil ifTrue:[ |
|
4126 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4127 |
false |
|
4128 |
] ifFalse:[ |
|
4129 |
s match:src ignoreCase:ignoreCase |
|
4130 |
] |
|
4131 |
] |
|
4132 |
] |
|
4133 |
] ifFalse:[ |
|
4134 |
searchBlock := [:c :m :sel | |
|
4135 |
|src resources| |
|
4136 |
||
4137 |
((resources := m resources) size > 0 |
|
4138 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
4139 |
src := m source. |
|
4140 |
src isNil ifTrue:[ |
|
4141 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4142 |
false |
|
4143 |
] ifFalse:[ |
|
4144 |
(src findString:aString) ~~ 0 |
|
4145 |
] |
|
4146 |
] |
|
4147 |
] |
|
4148 |
]. |
|
4149 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4150 |
! |
|
4151 |
||
2675 | 4152 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5243 | 4153 |
"return a collection of all methods in aCollectionOfClasses |
2675 | 4154 |
containing a string in their source. |
4155 |
This may be slow, since source-code has to be scanned." |
|
4156 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4157 |
^ self findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4158 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4159 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4160 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4161 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4162 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4163 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4164 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5243 | 4165 |
"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
|
4166 |
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
|
4167 |
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
|
4168 |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4169 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4170 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4171 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4172 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4173 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4174 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4175 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4176 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4177 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4178 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4179 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5243 | 4180 |
"return a collection of all methods in aCollectionOfClasses |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4181 |
containing a string in their source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4182 |
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
|
4183 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4184 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4185 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4186 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4187 |
^ 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
|
4188 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4189 |
|
5877 | 4190 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
4191 |
"return a collection of all methods in aCollectionOfClasses |
|
4192 |
containing a string in any of their string-literals." |
|
4193 |
||
4194 |
|searchBlock| |
|
4195 |
||
4196 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4197 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4198 |
||
4199 |
" |
|
4200 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4201 |
" |
|
4202 |
! |
|
4203 |
||
4204 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
|
4205 |
"return a collection of all methods in aCollectionOfClasses |
|
4206 |
containing a string in any of their string-literals." |
|
4207 |
||
4208 |
|searchBlock| |
|
4209 |
||
4210 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch. |
|
4211 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
4212 |
! |
|
4213 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4214 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase |
4270 | 4215 |
^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true |
4216 |
! |
|
4217 |
||
4218 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4219 |
|sel searchBlock lcString quickMatch| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4220 |
|
4270 | 4221 |
(doMatch |
4222 |
and:[(aSelectorString ~= '*') |
|
4223 |
and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[ |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4224 |
"/ a matchString - need string matching procedure |
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 |
ignoreCase ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4227 |
lcString := aSelectorString asLowercase. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4228 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4229 |
lcString := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4230 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4231 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4232 |
quickMatch := aSelectorString. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4233 |
(quickMatch startsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4234 |
quickMatch := quickMatch copyFrom:2 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4235 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4236 |
(quickMatch endsWith:'*') ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4237 |
quickMatch := quickMatch copyWithoutLast:1 |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4238 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4239 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4240 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4241 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4242 |
searchBlock := [:class :method :s | |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4243 |
|src| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4244 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4245 |
(ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4246 |
"/ do quick search first |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4247 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4248 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4249 |
(src notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4250 |
and:[src includesString:quickMatch]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4251 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4252 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4253 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4254 |
and:[(lcString includesString:quickMatch) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4255 |
and:[(lcString match:aLiteral)]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4256 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4257 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4258 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4259 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4260 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4261 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4262 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4263 |
and:[(lcString includesString:quickMatch) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4264 |
and:[(lcString match:aLiteral)]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4265 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4266 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4267 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4268 |
"/ expensive search |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4269 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4270 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4271 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4272 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4273 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4274 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4275 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4276 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4277 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4278 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4279 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4280 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4281 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4282 |
(method literalsDetect:[:aLiteral| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4283 |
(aLiteral isMemberOf:Symbol) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4284 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4285 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4286 |
] ifNone:nil) notNil |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4287 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4288 |
] |
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 |
] ifFalse:[ |
4270 | 4291 |
(doMatch and:[aSelectorString = '*']) ifTrue:[ |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4292 |
searchBlock := [:class :method :s | true]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4293 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4294 |
"/ no matchString - can do it much faster |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4295 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4296 |
sel := aSelectorString asSymbolIfInterned. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4297 |
sel isNil ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4298 |
^ nil "/ none |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4299 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4300 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4301 |
quickMatch := sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4302 |
(quickMatch includes:$:) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4303 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4304 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4305 |
searchBlock := [:class :method :s | |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4306 |
|src| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4307 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4308 |
method isLazyMethod ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4309 |
src := method source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4310 |
(src notNil and:[src includesString:quickMatch]) ifTrue:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4311 |
method makeRealMethod. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4312 |
method sends:sel. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4313 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4314 |
false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4315 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4316 |
] ifFalse:[ |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4317 |
method sends:sel |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4318 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4319 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4320 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4321 |
]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4322 |
^ searchBlock |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4323 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4324 |
|
5094 | 4325 |
searchBlockForCode:aCodeString isMethod:isMethod |
7395 | 4326 |
"return a block to search for a piece of code (intelligent search)." |
5094 | 4327 |
|
6581 | 4328 |
|errAction searchTree searcher globalVariablesUsed usedSymbols |
4329 |
sentMessages searchBlock foundMatch| |
|
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4330 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4331 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4332 |
"/rule := ParseTreeLintRule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4333 |
"/ createParseTreeRule: (Array with: aCodeString) |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4334 |
"/ method: isMethod |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4335 |
"/ name: 'Search for: ' , aCodeString. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4336 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4337 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4338 |
"/ searchBlock := [:c :m :sel | |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4339 |
"/ rslt := SmalllintChecker |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4340 |
"/ runRule:rule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4341 |
"/ 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
|
4342 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4343 |
"/ self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4344 |
"/ ]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4345 |
"/^ searchBlock. |
5226 | 4346 |
|
4347 |
errAction := [:str :pos | |
|
4348 |
Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'. |
|
4349 |
^ nil |
|
4350 |
]. |
|
5094 | 4351 |
|
4352 |
isMethod ifTrue:[ |
|
4353 |
searchTree := RBParser |
|
4354 |
parseRewriteMethod:aCodeString |
|
5226 | 4355 |
onError: errAction. |
5094 | 4356 |
] ifFalse:[ |
4357 |
searchTree := RBParser |
|
4358 |
parseRewriteExpression:aCodeString |
|
5226 | 4359 |
onError: errAction. |
5094 | 4360 |
]. |
4361 |
||
6368 | 4362 |
Error handle:[:ex | |
4363 |
] do:[ |
|
6549 | 4364 |
sentMessages := searchTree sentMessages. |
5135 | 4365 |
]. |
6581 | 4366 |
|
6549 | 4367 |
globalVariablesUsed := searchTree referencedVariables |
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4368 |
select:[:node | |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4369 |
node isPatternNode not |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4370 |
and:[ Smalltalk includesKey: node name asSymbol ] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4371 |
] |
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4372 |
thenCollect:[:node | node name asSymbol]. |
5135 | 4373 |
|
6581 | 4374 |
usedSymbols := searchTree usedSymbols. |
4375 |
||
7395 | 4376 |
"/ cannot use literals to speedup the search, because stc does not store |
4377 |
"/ constants in the literal-array. |
|
4378 |
"/ literalsUsed := searchTree usedLiterals. |
|
4379 |
"/ literalsUsed := literalsUsed select:[:lit | lit isString]. |
|
4380 |
||
5094 | 4381 |
searcher := ParseTreeSearcher new. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4382 |
isMethod ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4383 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4384 |
matchesMethod:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4385 |
do:[:aNode :answer | foundMatch := true]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4386 |
] ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4387 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4388 |
matchesTree:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
4389 |
do:[:aNode :answer | foundMatch := true]. |
6303 | 4390 |
]. |
5094 | 4391 |
|
6581 | 4392 |
|
4393 |
searchBlock := [:c :m :sel | |
|
4394 |
|allSelectorsInLiteralArray allMessagesSent |
|
4395 |
allGlobalsReferenced allUsedSymbolsInLiteralArray allSent src rslt parseTree| |
|
4396 |
||
4397 |
foundMatch := false. |
|
4398 |
||
4399 |
m isLazyMethod ifTrue:[ |
|
4400 |
src := m source. |
|
4401 |
src notNil ifTrue:[ |
|
4402 |
m makeRealMethod. |
|
5135 | 4403 |
]. |
6581 | 4404 |
]. |
4405 |
"/ can speedup the search, by filtering for sent messages first... |
|
4406 |
allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ m literals includesAll:sentMessages ]. |
|
4407 |
allSelectorsInLiteralArray ifTrue:[ |
|
4408 |
allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ m literals includesAll:usedSymbols ]. |
|
4409 |
allUsedSymbolsInLiteralArray ifTrue:[ |
|
4410 |
allMessagesSent := sentMessages isEmptyOrNil or:[ m messages includesAll:sentMessages ]. |
|
6368 | 4411 |
allMessagesSent ifTrue:[ |
6549 | 4412 |
allGlobalsReferenced := globalVariablesUsed conform:[:varName | m referencesGlobal:varName]. |
6368 | 4413 |
allGlobalsReferenced ifTrue:[ |
6549 | 4414 |
allSent := sentMessages conform:[:sel | (m sends:sel)]. |
6368 | 4415 |
allSent ifTrue:[ |
4416 |
src := m source. |
|
4417 |
src isNil ifTrue:[ |
|
4418 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4419 |
false |
|
5270 | 4420 |
] ifFalse:[ |
6368 | 4421 |
parseTree := RBParser |
4422 |
parseSearchMethod:src |
|
4423 |
onError: [:str :pos | |
|
4424 |
Transcript show:'Error in '; showCR:m. |
|
4425 |
Transcript showCR:str. |
|
4426 |
Transcript showCR:pos. |
|
4427 |
nil]. |
|
6552
343882b29fec
code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents:
6549
diff
changeset
|
4428 |
|
6368 | 4429 |
parseTree notNil ifTrue:[ |
4430 |
false "isMethod" ifTrue:[ |
|
4431 |
rslt := searcher executeMethod:parseTree. |
|
4432 |
] ifFalse:[ |
|
4433 |
rslt := searcher executeTree:parseTree. |
|
4434 |
]. |
|
6552
343882b29fec
code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents:
6549
diff
changeset
|
4435 |
] |
6368 | 4436 |
] |
4437 |
] |
|
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
4438 |
] |
5135 | 4439 |
] |
6581 | 4440 |
] |
4441 |
]. |
|
4442 |
foundMatch. |
|
4443 |
]. |
|
5094 | 4444 |
^ searchBlock. |
7395 | 4445 |
|
4446 |
"Modified: / 12-10-2006 / 21:30:05 / cg" |
|
5094 | 4447 |
! |
4448 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4449 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch |
5094 | 4450 |
"return a block to search for a string." |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4451 |
|
5891 | 4452 |
|searchBlock s lcString| |
4453 |
||
4454 |
(doMatch and:[ aString includesMatchCharacters ]) ifTrue:[ |
|
2675 | 4455 |
s := '*' , aString , '*'. |
4456 |
"a matchString" |
|
4457 |
searchBlock := [:c :m :sel | |
|
4458 |
|src| |
|
4459 |
src := m source. |
|
4460 |
src isNil ifTrue:[ |
|
4461 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4462 |
false |
|
4463 |
] ifFalse:[ |
|
4464 |
s match:src ignoreCase:ignoreCase |
|
4465 |
] |
|
4466 |
] |
|
4467 |
] ifFalse:[ |
|
5891 | 4468 |
ignoreCase ifTrue:[ |
4469 |
lcString := aString asLowercase. |
|
4470 |
searchBlock := |
|
4471 |
[:c :m :sel | |
|
4472 |
|src| |
|
4473 |
||
4474 |
src := m source. |
|
4475 |
src isNil ifTrue:[ |
|
4476 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4477 |
false |
|
4478 |
] ifFalse:[ |
|
4479 |
(src asLowercase findString:lcString) ~~ 0 |
|
4480 |
] |
|
4481 |
] |
|
4482 |
] ifFalse:[ |
|
4483 |
searchBlock := |
|
4484 |
[:c :m :sel | |
|
4485 |
|src| |
|
4486 |
||
4487 |
src := m source. |
|
4488 |
src isNil ifTrue:[ |
|
4489 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
4490 |
false |
|
4491 |
] ifFalse:[ |
|
4492 |
(src findString:aString) ~~ 0 |
|
4493 |
] |
|
4494 |
] |
|
4495 |
] |
|
2675 | 4496 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
4497 |
^ searchBlock. |
2675 | 4498 |
|
4499 |
" |
|
4500 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
4501 |
" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4502 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4503 |
|
5877 | 4504 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch |
4505 |
"return a block to search for a string-literal." |
|
4506 |
||
4507 |
|searchBlock s| |
|
4508 |
||
5891 | 4509 |
(doMatch and:[ aString includesMatchCharacters]) ifTrue:[ |
5877 | 4510 |
s := '*' , aString , '*'. |
4511 |
"a matchString" |
|
4512 |
searchBlock := [:c :m :sel | |
|
4513 |
|lits| |
|
4514 |
lits := m literals ? #(). |
|
4515 |
lits contains:[:lit | |
|
4516 |
lit isString |
|
4517 |
and:[lit isSymbol not |
|
4518 |
and:[s match:lit ignoreCase:ignoreCase]] |
|
4519 |
] |
|
4520 |
] |
|
4521 |
] ifFalse:[ |
|
5891 | 4522 |
ignoreCase ifTrue:[ |
4523 |
s := aString asLowercase. |
|
4524 |
searchBlock := [:c :m :sel | |
|
4525 |
|lits| |
|
4526 |
lits := m literals ? #(). |
|
4527 |
lits contains:[:lit | |
|
4528 |
lit isString |
|
4529 |
and:[lit isSymbol not |
|
4530 |
and:[s = lit asLowercase]] |
|
4531 |
] |
|
4532 |
] |
|
4533 |
] ifFalse:[ |
|
4534 |
searchBlock := [:c :m :sel | |
|
4535 |
|lits| |
|
4536 |
lits := m literals ? #(). |
|
4537 |
lits contains:[:lit | |
|
4538 |
lit isString |
|
4539 |
and:[lit isSymbol not |
|
4540 |
and:[s = lit]] |
|
4541 |
] |
|
4542 |
] |
|
4543 |
]. |
|
5877 | 4544 |
]. |
4545 |
^ searchBlock. |
|
4546 |
||
4547 |
" |
|
4548 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
4549 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
4550 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
4551 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
4552 |
" |
|
203 | 4553 |
! ! |
4554 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
4555 |
!SystemBrowser class methodsFor:'startup'! |
36 | 4556 |
|
203 | 4557 |
browseAllSelect:aBlock |
4558 |
"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
|
4559 |
The block is called with 3 arguments, class, method and selector." |
203 | 4560 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4561 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4562 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4563 |
title:'selected messages' |
36 | 4564 |
|
53 | 4565 |
" |
203 | 4566 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 4567 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4568 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4569 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 4570 |
! |
75 | 4571 |
|
203 | 4572 |
browseClass:aClass |
4490 | 4573 |
"launch a browser for aClass. |
4574 |
Notice: better go via Smalltalk browseClass:, which honors the tool-preferences" |
|
203 | 4575 |
|
4576 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4577 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4578 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4579 |
arg:aClass |
203 | 4580 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4581 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4582 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4583 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4584 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4585 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 4586 |
! |
4587 |
||
4588 |
browseClass:aClass methodCategory:aCategory |
|
4589 |
"launch a browser for all methods under aCategory in aClass" |
|
4590 |
||
4591 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4592 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 4593 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4594 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4595 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4596 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4597 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4598 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 4599 |
! |
4600 |
||
4601 |
browseClass:aClass selector:selector |
|
4490 | 4602 |
"launch a browser for the method at selector in aClass." |
203 | 4603 |
|
4604 |
^ self |
|
4158 | 4605 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
4606 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
203 | 4607 |
|
4608 |
" |
|
4609 |
SystemBrowser browseClass:Object selector:#printString |
|
4610 |
" |
|
36 | 4611 |
! |
4612 |
||
203 | 4613 |
browseClassCategory:aClassCategory |
4614 |
"launch a browser for all classes under aCategory" |
|
4615 |
||
4616 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4617 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4618 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4619 |
arg:aClassCategory |
203 | 4620 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4621 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4622 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4623 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4624 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4625 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 4626 |
! |
4627 |
||
4628 |
browseClassHierarchy:aClass |
|
4629 |
"launch a browser for aClass and all its superclasses. |
|
4630 |
this is different from the fullProtocol browser." |
|
36 | 4631 |
|
203 | 4632 |
^ self |
4158 | 4633 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
4634 |
setupSelector:#setupForClassHierarchy: |
|
4635 |
arg:aClass |
|
203 | 4636 |
|
4637 |
" |
|
4638 |
SystemBrowser browseClassHierarchy:Number |
|
4639 |
" |
|
4640 |
! |
|
4641 |
||
4642 |
browseClasses:aList title:title |
|
4643 |
"launch a browser for all classes in aList" |
|
4644 |
||
4645 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4646 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4647 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 4648 |
|
4649 |
" |
|
4650 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4651 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4652 |
title:'two classes' |
203 | 4653 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4654 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4655 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4656 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4657 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4658 |
browseClasses:aList title:title sort:doSort |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4659 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4660 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4661 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4662 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4663 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4664 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4665 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4666 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4667 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4668 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4669 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4670 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
4671 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 4672 |
! |
4673 |
||
203 | 4674 |
browseFullClassProtocol:aClass |
4675 |
"launch a browser for aClasses full protocol. |
|
4676 |
This is different from hierarchy browsing." |
|
4677 |
||
4678 |
^ self |
|
4158 | 4679 |
newWithLabel:(aClass name , '-' , 'full protocol') |
4680 |
setupSelector:#setupForFullClassProtocol: |
|
4681 |
arg:aClass |
|
203 | 4682 |
|
4683 |
" |
|
4684 |
SystemBrowser browseFullClassProtocol:Number |
|
4685 |
" |
|
4686 |
! |
|
36 | 4687 |
|
203 | 4688 |
browseFullClasses |
4689 |
"launch a browser showing all methods at once" |
|
4690 |
||
4691 |
^ self |
|
4158 | 4692 |
newWithLabel:'Full Class Browser' |
4693 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 4694 |
|
203 | 4695 |
"SystemBrowser browseFullClasses" |
4696 |
! |
|
4697 |
||
4698 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
4699 |
"launch a browser for all instance methods in aClass and all subclasses |
|
4700 |
where aBlock evaluates to true" |
|
36 | 4701 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4702 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4703 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4704 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4705 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4706 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4707 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4708 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4709 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 4710 |
! |
4711 |
||
4712 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
4713 |
"launch a browser for all instance methods of all classes in |
|
4714 |
aCollectionOfClasses where aBlock evaluates to true" |
|
4715 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4716 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4717 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4718 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4719 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4720 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4721 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 4722 |
! |
36 | 4723 |
|
203 | 4724 |
browseInstMethodsOf:aClass where:aBlock title:title |
4725 |
"launch a browser for all instance methods in aClass |
|
4726 |
where aBlock evaluates to true" |
|
4727 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4728 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4729 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4730 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4731 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4732 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4733 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4734 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 4735 |
! |
4736 |
||
4737 |
browseMethodCategory:aCategory |
|
4738 |
"launch a browser for all methods where category = aCategory" |
|
4739 |
||
4740 |
|searchBlock| |
|
4741 |
||
4742 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4743 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 4744 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4745 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 4746 |
]. |
4747 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4748 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 4749 |
|
4750 |
" |
|
4751 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
4752 |
SystemBrowser browseMethodCategory:'print*' |
|
4753 |
" |
|
4754 |
! |
|
4755 |
||
3666 | 4756 |
browseMethods:aListOfMethods |
4757 |
"launch a multi-method browser." |
|
4758 |
||
4759 |
^ self browseMethods:aListOfMethods title:'some methods' |
|
4760 |
||
4761 |
" |
|
4762 |
self |
|
4763 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4764 |
with:(OrderedCollection compiledMethodAt:#at:)) |
|
4765 |
||
4766 |
self |
|
4767 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
4768 |
with:(Array compiledMethodAt:#at:put:)) |
|
4769 |
" |
|
4770 |
! |
|
4771 |
||
203 | 4772 |
browseMethods:aList title:aString |
4773 |
"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
|
4774 |
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
|
4775 |
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
|
4776 |
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
|
4777 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4778 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4779 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4780 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4781 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4782 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4783 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4784 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4785 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4786 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4787 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4788 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4789 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4790 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4791 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4792 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4793 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4794 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4795 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4796 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4797 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4798 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4799 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4800 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4801 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4802 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4803 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4804 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4805 |
"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
|
4806 |
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
|
4807 |
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
|
4808 |
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
|
4809 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4810 |
|l| |
203 | 4811 |
|
4812 |
(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
|
4813 |
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
|
4814 |
^ nil |
203 | 4815 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4816 |
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
|
4817 |
l := l collect:[:entry | |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4818 |
|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
|
4819 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4820 |
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
|
4821 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4822 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4823 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4824 |
cls isNil ifTrue:[ |
1031 | 4825 |
'??? unbound' |
4826 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4827 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4828 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4829 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4830 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
4831 |
]. |
7915 | 4832 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
4833 |
clsName |
|
4834 |
, ' ' |
|
4835 |
, '???' |
|
4836 |
] ifFalse:[ |
|
4837 |
clsName |
|
4838 |
, ' ' |
|
4839 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry) inClass:cls) |
|
4840 |
] |
|
1031 | 4841 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4842 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4843 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4844 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
4845 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
4846 |
|
203 | 4847 |
^ 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
|
4848 |
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
|
4849 |
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
|
4850 |
arg:l |
53 | 4851 |
|
203 | 4852 |
" |
4853 |
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
|
4854 |
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
|
4855 |
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
|
4856 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4857 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4858 |
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
|
4859 |
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
|
4860 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4861 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4862 |
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
|
4863 |
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
|
4864 |
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
|
4865 |
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
|
4866 |
|
203 | 4867 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
4868 |
|
7711 | 4869 |
"Modified: / 17-06-1996 / 17:07:46 / stefan" |
4870 |
"Modified: / 05-03-2007 / 16:25:25 / cg" |
|
2826 | 4871 |
! |
53 | 4872 |
|
203 | 4873 |
browseMethodsFrom:aClass where:aBlock title:title |
4874 |
"launch a browser for all instance- and classmethods in aClass |
|
4875 |
and all its subclasses where aBlock evaluates to true. |
|
4876 |
The block is called with 3 arguments, class, method and seelctor." |
|
4877 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4878 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4879 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4880 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4881 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4882 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4883 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 4884 |
! |
4885 |
||
4886 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
4887 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
4888 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
4889 |
where aBlock evaluates to true. |
|
270 | 4890 |
The block is called with 3 arguments, class, method and selector." |
203 | 4891 |
|
4892 |
|list| |
|
53 | 4893 |
|
4894 |
" |
|
203 | 4895 |
since this may take a long time, lower my priority ... |
53 | 4896 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
4897 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
4898 |
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
|
4899 |
do:[ |
2675 | 4900 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 4901 |
]. |
4902 |
^ self browseMethods:list title:title |
|
53 | 4903 |
! |
4904 |
||
3780 | 4905 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock |
4906 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
4907 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
4908 |
where aBlock evaluates to true. |
|
4909 |
The block is called with 3 arguments, class, method and selector." |
|
4910 |
||
4911 |
|list| |
|
4912 |
||
4913 |
" |
|
4914 |
since this may take a long time, lower my priority ... |
|
4915 |
" |
|
4916 |
Processor activeProcess |
|
4917 |
withPriority:Processor activePriority-1 to:Processor activePriority |
|
4918 |
do:[ |
|
4919 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock. |
|
4920 |
list size == 0 ifTrue:[warnBlock value]. |
|
4921 |
]. |
|
4922 |
^ self browseMethods:list title:title |
|
4923 |
! |
|
4924 |
||
203 | 4925 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
4926 |
"launch a browser for all instance- and classmethods from |
|
4927 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
4928 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 4929 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4930 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4931 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4932 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4933 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4934 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4935 |
title:title |
75 | 4936 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4937 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 4938 |
! |
4939 |
||
3780 | 4940 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock |
4941 |
"launch a browser for all instance- and classmethods from |
|
4942 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
4943 |
The block is called with 3 arguments, class, method and seelctor." |
|
4944 |
||
4945 |
^ self |
|
4946 |
browseMethodsIn:aCollectionOfClasses |
|
4947 |
inst:true |
|
4948 |
class:true |
|
4949 |
where:aBlock |
|
4950 |
title:title |
|
4951 |
ifNone:warnBlock |
|
4952 |
||
4953 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
|
4954 |
! |
|
4955 |
||
203 | 4956 |
browseMethodsOf:aClass where:aBlock title:title |
4957 |
"launch a browser for all instance- and classmethods in aClass |
|
4958 |
where aBlock evaluates to true. |
|
4959 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 4960 |
|
203 | 4961 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 4962 |
! |
4963 |
||
203 | 4964 |
browseMethodsWhere:aBlock title:title |
4965 |
"launch a browser for all methods where aBlock returns true. |
|
4966 |
The block is called with 3 arguments, class, method and seelctor." |
|
4967 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4968 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4969 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4970 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4971 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4972 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
4973 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 4974 |
! |
4975 |
||
3780 | 4976 |
browseMethodsWhere:aBlock title:title ifNone:warnBlock |
4977 |
"launch a browser for all methods where aBlock returns true. |
|
4978 |
The block is called with 3 arguments, class, method and seelctor." |
|
4979 |
||
4980 |
^ self |
|
4981 |
browseMethodsIn:(Smalltalk allClasses) |
|
4982 |
where:aBlock |
|
4983 |
title:title |
|
4984 |
ifNone:warnBlock |
|
4985 |
||
4986 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
|
4987 |
! |
|
4988 |
||
2675 | 4989 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
4990 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
4991 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
4992 |
||
4993 |
|list checkedClasses checkBlock| |
|
4994 |
||
4995 |
checkedClasses := IdentitySet new. |
|
4996 |
list := OrderedCollection new. |
|
4997 |
||
4998 |
checkBlock := [:cls | |
|
4999 |
(checkedClasses includes:cls) ifFalse:[ |
|
5000 |
cls isObsolete ifTrue:[ |
|
2882 | 5001 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
2675 | 5002 |
] ifFalse:[ |
5003 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
|
5004 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
|
5005 |
list add:method "/ (cls name , ' ' , sel) |
|
5006 |
] |
|
5007 |
]. |
|
5008 |
checkedClasses add:cls. |
|
5009 |
] |
|
5010 |
] |
|
5011 |
]. |
|
5012 |
||
5013 |
aCollectionOfClasses do:[:aClass | |
|
3008 | 5014 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
2675 | 5015 |
" |
5016 |
output disabled - it slows down things too much (when searching for |
|
5017 |
implementors or senders) |
|
5018 |
" |
|
5019 |
wantInst ifTrue:[ |
|
5020 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
5021 |
checkBlock value:aClass |
|
5022 |
]. |
|
5023 |
wantClass ifTrue:[ |
|
5024 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
5025 |
checkBlock value:(aClass class) |
|
5026 |
]. |
|
5027 |
Processor yield |
|
5028 |
] |
|
5029 |
]. |
|
5030 |
^ list |
|
5031 |
! |
|
5032 |
||
5033 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
5034 |
"return all instance- and classmethods |
|
5035 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
5036 |
||
5037 |
^ self |
|
5038 |
findMethodsIn:aCollectionOfClasses |
|
5039 |
inst:true |
|
5040 |
class:true |
|
5041 |
where:aBlock |
|
203 | 5042 |
! ! |
93 | 5043 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5044 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 5045 |
|
5046 |
askThenBrowseClass |
|
5047 |
self getClassThenPerform:#browseClass: |
|
5048 |
||
5049 |
" |
|
5050 |
SystemBrowser askThenBrowseClass |
|
5051 |
" |
|
93 | 5052 |
! |
5053 |
||
203 | 5054 |
askThenBrowseClassHierarchy |
5055 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 5056 |
|
203 | 5057 |
" |
5058 |
SystemBrowser askThenBrowseClassHierarchy |
|
5059 |
" |
|
36 | 5060 |
! |
5061 |
||
203 | 5062 |
askThenBrowseFullClassProtocol |
5063 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 5064 |
|
203 | 5065 |
" |
5066 |
SystemBrowser askThenBrowseFullClassProtocol |
|
5067 |
" |
|
52 | 5068 |
! |
5069 |
||
203 | 5070 |
getClassThenPerform:aSelector |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5071 |
|enterBox resources| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5072 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5073 |
resources := self classResources. |
52 | 5074 |
|
6353 | 5075 |
enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:'). |
6640 | 5076 |
enterBox okText:(resources string:'Browse'). |
6873 | 5077 |
enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
203 | 5078 |
enterBox action:[:className | |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5079 |
|cls| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5080 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5081 |
cls := Smalltalk classNamed:className. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5082 |
cls isNil ifTrue:[ |
6640 | 5083 |
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
|
5084 |
] ifFalse:[ |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5085 |
self perform:aSelector with:cls |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
5086 |
] |
203 | 5087 |
]. |
5088 |
enterBox showAtPointer |
|
75 | 5089 |
|
203 | 5090 |
" |
5091 |
SystemBrowser getClassThenPerform:#browseClass: |
|
5092 |
" |
|
6873 | 5093 |
|
5094 |
"Modified: / 10-08-2006 / 12:54:20 / cg" |
|
36 | 5095 |
! ! |
5096 |
||
2813 | 5097 |
!SystemBrowser class methodsFor:'utilities'! |
5098 |
||
3833 | 5099 |
classWithNameSimilarTo:className |
5100 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
|
5101 |
||
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5102 |
|allMatchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5103 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5104 |
allMatchingClasses := self classesWithNameSimilarTo:className. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5105 |
^ allMatchingClasses firstIfEmpty:nil |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5106 |
! |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5107 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5108 |
classesWithNameSimilarTo:className |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5109 |
"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
|
5110 |
|
6944 | 5111 |
^ self classesWithNameSimilarTo:className from:nil |
5112 |
||
5113 |
"Modified: / 22-08-2006 / 13:22:41 / cg" |
|
5114 |
! |
|
5115 |
||
5116 |
classesWithNameSimilarTo:className from:aNameSpaceOrNil |
|
5117 |
"helper for class-name entry; finds classes with a name similar to the argument, className" |
|
5118 |
||
5119 |
|nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses |
|
5120 |
prefNameSpaceOrNil prefLcNameSpace| |
|
5121 |
||
5122 |
prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil]. |
|
3833 | 5123 |
|
5124 |
(className startsWith:'Smalltalk::') ifTrue:[ |
|
5125 |
nm := className copyFrom:('Smalltalk::' size + 1). |
|
5126 |
] ifFalse:[ |
|
5127 |
nm := className. |
|
5128 |
]. |
|
5129 |
||
6944 | 5130 |
prefNameSpaceOrNil notNil ifTrue:[ |
5131 |
class := prefNameSpaceOrNil at:nm asSymbol. |
|
5132 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
|
5133 |
prefLcNameSpace := prefNameSpaceOrNil name asLowercase. |
|
5134 |
]. |
|
3833 | 5135 |
class := Smalltalk at:nm asSymbol. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5136 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
3833 | 5137 |
|
5138 |
lcName := className asLowercase. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5139 |
|
3833 | 5140 |
allClasses := Smalltalk allClasses. |
4806 | 5141 |
|
6134 | 5142 |
triedDetectors := OrderedCollection new. |
5143 |
triedDetectors add:[:cls | cls name asLowercase = lcName]. |
|
5144 |
||
5145 |
triedDetectors do:[:eachTry | |
|
5146 |
|class| |
|
5147 |
||
5148 |
class := allClasses detect:eachTry ifNone:nil. |
|
5149 |
class notNil ifTrue:[^ Array with:class]. |
|
5150 |
]. |
|
5151 |
||
4806 | 5152 |
triedMatchers := OrderedCollection new. |
5018
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5153 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName]. |
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
5154 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5155 |
|
4806 | 5156 |
triedMatchers add:[:cls | cls name asLowercase startsWith:lcName]. |
5157 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]. |
|
5158 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]. |
|
5159 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName]. |
|
6134 | 5160 |
triedMatchers add:[:cls | cls name asLowercase includesString:lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5161 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5162 |
allMatchingClasses := IdentitySet new. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5163 |
triedMatchers do:[:eachTry | |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5164 |
|matchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5165 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5166 |
matchingClasses := allClasses select:eachTry. |
6944 | 5167 |
"/ matchingClasses size == 1 ifTrue:[^ matchingClasses]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5168 |
allMatchingClasses addAll:matchingClasses. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5169 |
]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5170 |
allMatchingClasses isEmpty ifTrue:[^ #()]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5171 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5172 |
allMatchingClasses := allMatchingClasses asOrderedCollection. |
6944 | 5173 |
allMatchingClasses |
5174 |
sort:[:a :b | |
|
5175 |
|lcNameA lcNameB da db distA distB | |
|
5176 |
||
5177 |
lcNameA := a name asLowercase. |
|
5178 |
lcNameB := b name asLowercase. |
|
5179 |
prefNameSpaceOrNil notNil ifTrue:[ |
|
5180 |
a nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5181 |
lcNameA := a nameWithoutNameSpacePrefix asLowercase. |
|
5182 |
]. |
|
5183 |
b nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
5184 |
lcNameB := b nameWithoutNameSpacePrefix asLowercase. |
|
5185 |
]. |
|
5186 |
]. |
|
5187 |
||
5188 |
distA := da := lcName levenshteinTo:lcNameA. |
|
5189 |
distB := db := lcName levenshteinTo:lcNameB. |
|
5190 |
"prefer prefixes (i.e. classes whose name starts with what we search for)" |
|
5191 |
||
5192 |
(lcNameA startsWith:lcName) ifTrue:[ |
|
5193 |
distB := distB * 2 |
|
5194 |
]. |
|
5195 |
(lcNameB startsWith:lcName) ifTrue:[ |
|
5196 |
distA := distA * 2 |
|
5197 |
]. |
|
5198 |
distA < distB |
|
5199 |
]. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
5200 |
^ allMatchingClasses. |
6546 | 5201 |
|
5202 |
" |
|
6678 | 5203 |
self classesWithNameSimilarTo:'NewSystemBrowser' |
5204 |
self classesWithNameSimilarTo:'Moose::MSEAbstractOperator' |
|
6546 | 5205 |
" |
6944 | 5206 |
|
5207 |
"Created: / 22-08-2006 / 13:22:48 / cg" |
|
5208 |
"Modified: / 22-08-2006 / 14:53:38 / cg" |
|
3833 | 5209 |
! |
5210 |
||
2813 | 5211 |
extractClassAndSelectorFrom:aString into:aBlock |
5212 |
"given a string which can be either 'class>>sel' or |
|
5213 |
'class sel', extract className and selector, and call aBlock with |
|
5214 |
the result. |
|
5215 |
Useful to open browser on a method as selected in some documentation." |
|
5216 |
||
5217 |
|sel clsName isMeta sep s| |
|
5218 |
||
5219 |
sel := aString. |
|
5220 |
sel notNil ifTrue:[ |
|
5221 |
sel := sel asString withoutSeparators. |
|
5222 |
('*>>*' match:sel) ifTrue:[ |
|
5223 |
sep := $> |
|
5224 |
] ifFalse:[ |
|
5225 |
('* *' match:sel) ifTrue:[ |
|
5226 |
sep := Character space |
|
5227 |
] |
|
5228 |
]. |
|
5229 |
sep notNil ifTrue:[ |
|
5230 |
" |
|
5231 |
extract class/sel from selection |
|
5232 |
" |
|
5233 |
s := ReadStream on:sel. |
|
5234 |
clsName := s upTo:sep. |
|
5235 |
[s peek == sep] whileTrue:[s next]. |
|
5236 |
sel := s upToEnd. |
|
5237 |
||
5238 |
(clsName endsWith:' class') ifTrue:[ |
|
5239 |
isMeta := true. |
|
5240 |
clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)" |
|
5241 |
] ifFalse:[ |
|
5242 |
isMeta := false |
|
5243 |
]. |
|
5244 |
] |
|
5245 |
]. |
|
5246 |
aBlock value:clsName value:sel value:isMeta |
|
5247 |
||
5248 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
5249 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
5250 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
5251 |
! |
|
5252 |
||
5253 |
extractSelectorFrom:aString |
|
5254 |
"given an arbitrary string, try to extract a useful selector. |
|
5255 |
Useful to open browser on a selected code fragment." |
|
5256 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5257 |
|s sel sel2 t| |
2813 | 5258 |
|
5259 |
aString isNil ifTrue:[^ nil]. |
|
5260 |
||
5261 |
s := aString asString string. |
|
5262 |
s := s withoutSeparators. |
|
5263 |
sel := s. |
|
5264 |
||
6705 | 5265 |
((sel endsWith:$:) |
5266 |
and:[sel knownAsSymbol]) ifTrue:[ |
|
5267 |
^ sel asSymbol |
|
5268 |
]. |
|
5269 |
||
2813 | 5270 |
t := Parser selectorInExpression:sel. |
5271 |
t notNil ifTrue:[ |
|
5272 |
sel := t |
|
5273 |
]. |
|
5274 |
(sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[ |
|
5275 |
"oops - thats probably not what we want here ..." |
|
5276 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
|
5277 |
sel := s |
|
5278 |
] |
|
5279 |
]. |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5280 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5281 |
sel asSymbolIfInterned isNil ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5282 |
(sel startsWith:'#') ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5283 |
sel2 := sel copyFrom:2. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5284 |
((sel2 startsWith:'''') and:[(sel2 endsWith:'''')]) ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5285 |
sel2 := (sel2 copyFrom:2) copyWithoutLast:1 |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5286 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5287 |
sel2 asSymbolIfInterned notNil ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5288 |
^ sel2 |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5289 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5290 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5291 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5292 |
|
2813 | 5293 |
^ sel |
5294 |
||
5295 |
" |
|
5296 |
self extractSelectorFrom:'at:put:' |
|
5297 |
self extractSelectorFrom:'#at:put:' |
|
5298 |
self extractSelectorFrom:'at:something put:someValue' |
|
5299 |
self extractSelectorFrom:'self at:something put:someValue' |
|
5300 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
5301 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
5302 |
self extractSelectorFrom:'Array>>at:put:' |
|
5303 |
" |
|
5304 |
||
5305 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
5306 |
"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
|
5307 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5308 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5309 |
resourceEditorClassFor:aResource |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5310 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5311 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5312 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5313 |
(aResource == #canvas) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5314 |
^ UIPainter |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5315 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5316 |
(aResource == #menu) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5317 |
^ MenuEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5318 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5319 |
((aResource == #image) or:[aResource == #fileImage]) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5320 |
^ ImageEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5321 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5322 |
(aResource == #help) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5323 |
^ UIHelpTool |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5324 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5325 |
(aResource == #tableColumns) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5326 |
^ DataSetBuilder |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5327 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5328 |
(aResource == #tabList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5329 |
^ TabListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5330 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5331 |
(aResource == #hierarchicalList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5332 |
^ HierarchicalListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5333 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5334 |
^ nil |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5335 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5336 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5337 |
resourceEditorClassForResources:resources |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5338 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5339 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5340 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5341 |
resources keysDo:[:eachResource | |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5342 |
|editor| |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5343 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5344 |
editor := self resourceEditorClassFor:eachResource. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5345 |
editor notNil ifTrue:[ ^ editor]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5346 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
5347 |
^ nil |
2813 | 5348 |
! ! |
5349 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5350 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5351 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5352 |
className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5353 |
"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
|
5354 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5355 |
^ className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5356 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5357 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5358 |
className:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5359 |
"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
|
5360 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5361 |
className := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5362 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5363 |
|
3151 | 5364 |
className:classNameArg meta:metaArg selector:selectorArg |
5365 |
className := classNameArg. |
|
5366 |
meta := metaArg. |
|
5367 |
selector := selectorArg. |
|
5368 |
! |
|
5369 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5370 |
meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5371 |
"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
|
5372 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5373 |
^ meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5374 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5375 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5376 |
meta:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5377 |
"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
|
5378 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5379 |
meta := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5380 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5381 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5382 |
selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5383 |
"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
|
5384 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5385 |
^ selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5386 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5387 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5388 |
selector:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5389 |
"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
|
5390 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5391 |
selector := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5392 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5393 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5394 |
theClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5395 |
^ Smalltalk at:className asSymbol |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5396 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5397 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5398 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5399 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5400 |
= anEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5401 |
^ className = anEntry className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5402 |
and:[meta = anEntry meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
5403 |
and:[selector = anEntry selector]] |
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 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
5406 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 5407 |
|
203 | 5408 |
version |
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
5409 |
^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.252 2008-04-04 15:31:50 cg Exp $' |
36 | 5410 |
! ! |
4112 | 5411 |
|
203 | 5412 |
SystemBrowser initialize! |