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