author | Claus Gittinger <cg@exept.de> |
Fri, 07 Sep 2001 19:12:25 +0200 | |
changeset 3125 | ed9aa14fe97b |
parent 3109 | c855796e54d9 |
child 3131 | 883d7b34bb86 |
permissions | -rw-r--r-- |
36 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
45 | 3 |
All Rights Reserved |
36 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
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 |
2631 | 16 |
instanceVariableNames:'' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
17 |
classVariableNames:'CheckForInstancesWhenRemovingClasses Icons' |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
18 |
poolDictionaries:'' |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
19 |
category:'Interface-Browsers' |
36 | 20 |
! |
21 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
22 |
!SystemBrowser class methodsFor:'documentation'! |
203 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
this class implements all kinds of class browsers. |
|
41 |
Typically, it is started with 'SystemBrowser open', but there are many other |
|
42 |
startup messages, to launch special browsers. |
|
43 |
See the categories 'startup' and 'special search startup' in the classes |
|
44 |
protocol. |
|
45 |
||
46 |
Alse, see the extra document 'doc/misc/sbrowser.doc' or the HTML online doc |
|
47 |
for how to use the browser. |
|
48 |
||
49 |
written winter 89 by claus. |
|
50 |
||
51 |
Notice: SystemBrowser is currently being rewritten to be an instance |
|
52 |
of ApplicationModel - this transition is not yet complete and you see |
|
53 |
here an intermediate version. The instance variables defined here are NOT |
|
54 |
currently used - instead, everything is really done in the BrowserView |
|
55 |
which (currently) keeps the real state of the browser. |
|
56 |
This will certainly change ... |
|
508 | 57 |
|
58 |
[author:] |
|
59 |
Claus Gittinger |
|
60 |
||
203 | 61 |
" |
62 |
! ! |
|
63 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
64 |
!SystemBrowser class methodsFor:'initialization'! |
75 | 65 |
|
66 |
initialize |
|
67 |
"Browser configuration; |
|
68 |
(values can be changed from your private startup file)" |
|
45 | 69 |
|
254 | 70 |
"/ self classResources. |
85 | 71 |
|
75 | 72 |
" |
73 |
setting this to false, the removeClass function will remove |
|
74 |
classes WITHOUT checking for instances. Otherwise, |
|
75 |
it will check and let you confirm in case there are instances. |
|
76 |
Checking for instances may be a bit time consuming, though. |
|
77 |
The default is true - therefore, it will check |
|
78 |
" |
|
79 |
CheckForInstancesWhenRemovingClasses := true |
|
80 |
||
81 |
" |
|
82 |
CheckForInstancesWhenRemovingClasses := true |
|
83 |
CheckForInstancesWhenRemovingClasses := false |
|
84 |
||
85 | 85 |
SystemBrowser initialize |
75 | 86 |
" |
87 |
! ! |
|
36 | 88 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
89 |
!SystemBrowser class methodsFor:'instance creation'! |
52 | 90 |
|
75 | 91 |
open |
92 |
"launch a standard browser" |
|
93 |
||
2631 | 94 |
self == SystemBrowser ifFalse:[ |
95 |
^ super open |
|
96 |
]. |
|
97 |
||
105 | 98 |
^ self openOnDevice:(Screen current) |
75 | 99 |
|
93 | 100 |
" |
101 |
SystemBrowser open |
|
102 |
" |
|
194 | 103 |
! |
104 |
||
523 | 105 |
openInClass:aClass |
106 |
"launch a standard browser which immediately switches |
|
107 |
to aClass" |
|
108 |
||
109 |
^ self openInClass:aClass selector:nil |
|
110 |
||
111 |
" |
|
112 |
SystemBrowser openInClass:Object |
|
113 |
" |
|
114 |
||
115 |
"Created: 30.4.1996 / 14:43:45 / cg" |
|
116 |
! |
|
117 |
||
194 | 118 |
openInClass:aClass selector:aSelector |
119 |
"launch a standard browser which immediately switches |
|
120 |
to aClass>>aSelector." |
|
121 |
||
122 |
|brwsr cls| |
|
123 |
||
124 |
brwsr := self openOnDevice:(Screen current). |
|
125 |
brwsr waitUntilVisible. |
|
1561 | 126 |
|
194 | 127 |
cls := aClass. |
128 |
cls notNil ifTrue:[ |
|
1561 | 129 |
cls isMeta ifTrue:[ |
130 |
cls := aClass soleInstance |
|
131 |
]. |
|
132 |
aClass isMeta ifTrue:[ |
|
133 |
brwsr instanceProtocol:false |
|
134 |
]. |
|
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
135 |
aClass isJavaClass ifTrue:[ |
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
136 |
brwsr switchToClassNamed:aClass fullName. |
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
137 |
] ifFalse:[ |
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
138 |
brwsr switchToClassNamed:aClass name. |
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
139 |
]. |
1681 | 140 |
brwsr classSelectionChanged. |
1561 | 141 |
aSelector notNil ifTrue:[ |
142 |
brwsr switchToMethodNamed:aSelector. |
|
143 |
] |
|
194 | 144 |
]. |
145 |
^ brwsr |
|
146 |
||
147 |
" |
|
148 |
SystemBrowser openInClass:Object selector:#at:put: |
|
149 |
SystemBrowser openInClass:Object selector:nil |
|
150 |
SystemBrowser openInClass:nil selector:nil |
|
151 |
" |
|
152 |
||
1561 | 153 |
"Created: / 22.11.1995 / 21:04:50 / cg" |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
154 |
"Modified: / 14.10.1998 / 15:31:52 / cg" |
203 | 155 |
! |
156 |
||
157 |
openOnDevice:aDisplay |
|
158 |
"launch a standard browser on another display." |
|
159 |
||
2631 | 160 |
self == SystemBrowser ifFalse:[ |
161 |
^ super openOnDevice:aDisplay |
|
162 |
]. |
|
163 |
||
203 | 164 |
^ self newWithLabel:(self classResources string:'System Browser') |
2631 | 165 |
setupBlock:[:browser | browser setupForAll] |
166 |
onDevice:aDisplay |
|
203 | 167 |
|
168 |
"|d| |
|
169 |
||
170 |
d := XWorkstation new initializeFor:'porty:0'. |
|
171 |
d startDispatch. |
|
172 |
SystemBrowser openOnDevice:d |
|
173 |
" |
|
2818 | 174 |
! |
175 |
||
176 |
openOnSnapShotImage:anImageFileName |
|
177 |
|environment browser| |
|
178 |
||
179 |
environment := SnapShotImage for:anImageFileName. |
|
180 |
browser := self |
|
2824 | 181 |
newWithLabel:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName) |
2818 | 182 |
setupBlock:[:browser | browser environment:environment. |
183 |
browser setupForAll] |
|
184 |
onDevice:(Screen current). |
|
185 |
||
186 |
" |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
187 |
SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img') |
2824 | 188 |
" |
189 |
! ! |
|
36 | 190 |
|
2551 | 191 |
!SystemBrowser class methodsFor:'Compatibility - ST80'! |
1356 | 192 |
|
193 |
newOnClass:aClass |
|
194 |
^ self browseClass:aClass |
|
195 |
||
196 |
"Created: / 27.10.1997 / 20:10:39 / cg" |
|
197 |
! ! |
|
198 |
||
2692 | 199 |
!SystemBrowser class methodsFor:'image specs'! |
200 |
||
2748 | 201 |
abstractMethodIcon |
202 |
<resource: #programImage> |
|
203 |
||
204 |
^ self padLockGrayMiniIcon |
|
205 |
! |
|
206 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
207 |
canvasIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
208 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
209 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
210 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
211 |
"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
|
212 |
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
|
213 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
214 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
215 |
ImageEditor openOnClass:self andSelector:#canvasIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
216 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
217 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
218 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
219 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
220 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
221 |
constantNamed:#'SystemBrowser canvasIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
222 |
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
|
223 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
224 |
|
2692 | 225 |
defaultIcon |
226 |
"This resource specification was automatically generated |
|
227 |
by the ImageEditor of ST/X." |
|
228 |
||
229 |
"Do not manually edit this!! If it is corrupted, |
|
230 |
the ImageEditor may not be able to read the specification." |
|
231 |
||
232 |
" |
|
233 |
self defaultIcon inspect |
|
234 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
235 |
" |
|
236 |
||
237 |
<resource: #image> |
|
238 |
||
239 |
^Icon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
240 |
constantNamed:#'SystemBrowser defaultIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
241 |
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
|
242 |
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
243 |
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@Y&Y&Y&X0@@@@A H"H"A!!DQDQDR@@@@@@@@@@@CH"H"H"H@@@@@H@@@@@@@@@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
244 |
@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@Y&Y&Y&X0@@@@A H"H"A%UUUUUR@@@@@@@@@@@CH"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
245 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
246 |
@@@@@@@@@@@@@@@@@@@@@@@@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:' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
247 |
??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRT |
2846 | 248 |
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself] |
249 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
250 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
251 |
fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
252 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
253 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
254 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
255 |
"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
|
256 |
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
|
257 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
258 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
259 |
self fileImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
260 |
ImageEditor openOnClass:self andSelector:#fileImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
261 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
262 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
263 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
264 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
265 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
266 |
constantNamed:#'SystemBrowser fileImageIcon' |
2846 | 267 |
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] |
268 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
269 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
270 |
greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
271 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
272 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
273 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
274 |
"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
|
275 |
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
|
276 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
277 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
278 |
self greenLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
279 |
ImageEditor openOnClass:self andSelector:#greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
280 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
281 |
|
2892 | 282 |
^ self padLockGreenMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
283 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
284 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
285 |
helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
286 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
287 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
288 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
289 |
"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
|
290 |
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
|
291 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
292 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
293 |
self helpIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
294 |
ImageEditor openOnClass:self andSelector:#helpIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
295 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
296 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
297 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
298 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
299 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
300 |
constantNamed:#'SystemBrowser helpIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
301 |
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
|
302 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
303 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
304 |
hierarchicalListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
305 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
306 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
307 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
308 |
"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
|
309 |
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
|
310 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
311 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
312 |
ImageEditor openOnClass:self andSelector:#hierarchicalListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
313 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
314 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
315 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
316 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
317 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
318 |
constantNamed:#'SystemBrowser hierarchicalListIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
319 |
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
|
320 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
321 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
322 |
imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
323 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
324 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
325 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
326 |
"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
|
327 |
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
|
328 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
329 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
330 |
self imageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
331 |
ImageEditor openOnClass:self andSelector:#imageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
332 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
333 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
334 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
335 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
336 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
337 |
constantNamed:#'SystemBrowser imageIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
338 |
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
|
339 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
340 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
341 |
menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
342 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
343 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
344 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
345 |
"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
|
346 |
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
|
347 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
348 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
349 |
self menuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
350 |
ImageEditor openOnClass:self andSelector:#menuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
351 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
352 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
353 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
354 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
355 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
356 |
constantNamed:#'SystemBrowser menuIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
357 |
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
|
358 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
359 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
360 |
nameSpaceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
361 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
362 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
363 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
364 |
"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
|
365 |
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
|
366 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
367 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
368 |
self nameSpaceIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
369 |
ImageEditor openOnClass:self andSelector:#nameSpaceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
370 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
371 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
372 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
373 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
374 |
^Icon |
2892 | 375 |
constantNamed:#'SystemBrowser class nameSpaceIcon' |
376 |
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
|
377 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
378 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
379 |
packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
380 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
381 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
382 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
383 |
"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
|
384 |
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
|
385 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
386 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
387 |
self packageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
388 |
ImageEditor openOnClass:self andSelector:#packageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
389 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
390 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
391 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
392 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
393 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
394 |
constantNamed:#'SystemBrowser packageIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
395 |
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
|
396 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
397 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
398 |
padLockBlueMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
399 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
400 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
401 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
402 |
"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
|
403 |
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
|
404 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
405 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
406 |
self padLockBlueMiniIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
407 |
ImageEditor openOnClass:self andSelector:#padLockBlueMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
408 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
409 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
410 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
411 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
412 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
413 |
constantNamed:#'SystemBrowser padLockBlueMiniIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
414 |
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
|
415 |
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
|
416 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
417 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
418 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
419 |
padLockGrayMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
420 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
421 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
422 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
423 |
"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
|
424 |
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
|
425 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
426 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
427 |
self padLockGrayMiniIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
428 |
ImageEditor openOnClass:self andSelector:#padLockGrayMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
429 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
430 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
431 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
432 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
433 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
434 |
constantNamed:#'SystemBrowser padLockGrayMiniIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
435 |
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
|
436 |
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
|
437 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
438 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
439 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
440 |
padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
441 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
442 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
443 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
444 |
"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
|
445 |
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
|
446 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
447 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
448 |
self padLockGreenMiniIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
449 |
ImageEditor openOnClass:self andSelector:#padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
450 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
451 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
452 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
453 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
454 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
455 |
constantNamed:#'SystemBrowser padLockGreenMiniIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
456 |
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
|
457 |
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
|
458 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
459 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
460 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
461 |
padLockRedMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
462 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
463 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
464 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
465 |
"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
|
466 |
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
|
467 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
468 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
469 |
self padLockRedMiniIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
470 |
ImageEditor openOnClass:self andSelector:#padLockRedMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
471 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
472 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
473 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
474 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
475 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
476 |
constantNamed:#'SystemBrowser padLockRedMiniIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
477 |
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
|
478 |
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
|
479 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
480 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
481 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
482 |
privateMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
483 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
484 |
|
2748 | 485 |
^ self padLockRedMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
486 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
487 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
488 |
programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
489 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
490 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
491 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
492 |
"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
|
493 |
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
|
494 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
495 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
496 |
self programImageIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
497 |
ImageEditor openOnClass:self andSelector:#programImageIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
498 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
499 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
500 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
501 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
502 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
503 |
constantNamed:#'SystemBrowser programImageIcon' |
2846 | 504 |
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] |
505 |
! |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
506 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
507 |
programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
508 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
509 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
510 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
511 |
"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
|
512 |
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
|
513 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
514 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
515 |
self programMenuIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
516 |
ImageEditor openOnClass:self andSelector:#programMenuIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
517 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
518 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
519 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
520 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
521 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
522 |
constantNamed:#'SystemBrowser programMenuIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
523 |
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
|
524 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
525 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
526 |
protectedMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
527 |
<resource: #programImage> |
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 |
^ self padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
530 |
! |
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 |
redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
533 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
534 |
by the ImageEditor of ST/X." |
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 |
"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
|
537 |
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
|
538 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
539 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
540 |
self redLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
541 |
ImageEditor openOnClass:self andSelector:#redLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
542 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
543 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
544 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
545 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
546 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
547 |
constantNamed:#'SystemBrowser redLockIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
548 |
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
|
549 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
550 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
551 |
stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
552 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
553 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
554 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
555 |
"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
|
556 |
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
|
557 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
558 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
559 |
self stopIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
560 |
ImageEditor openOnClass:self andSelector:#stopIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
561 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
562 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
563 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
564 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
565 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
566 |
constantNamed:#'SystemBrowser stopIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
567 |
ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@N@@8@C @N@@P@@@@N@@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] |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
568 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
569 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
570 |
tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
571 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
572 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
573 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
574 |
"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
|
575 |
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
|
576 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
577 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
578 |
self tabListIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
579 |
ImageEditor openOnClass:self andSelector:#tabListIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
580 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
581 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
582 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
583 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
584 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
585 |
constantNamed:#'SystemBrowser tabListIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
586 |
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
|
587 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
588 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
589 |
tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
590 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
591 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
592 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
593 |
"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
|
594 |
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
|
595 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
596 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
597 |
self tableColumnsIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
598 |
ImageEditor openOnClass:self andSelector:#tableColumnsIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
599 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
600 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
601 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
602 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
603 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
604 |
constantNamed:#'SystemBrowser tableColumnsIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
605 |
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
|
606 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
607 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
608 |
timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
609 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
610 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
611 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
612 |
"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
|
613 |
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
|
614 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
615 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
616 |
self timeIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
617 |
ImageEditor openOnClass:self andSelector:#timeIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
618 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
619 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
620 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
621 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
622 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
623 |
constantNamed:#'SystemBrowser timeIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
624 |
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
|
625 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
626 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
627 |
traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
628 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
629 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
630 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
631 |
"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
|
632 |
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
|
633 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
634 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
635 |
self traceIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
636 |
ImageEditor openOnClass:self andSelector:#traceIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
637 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
638 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
639 |
<resource: #image> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
640 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
641 |
^Icon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
642 |
constantNamed:#'SystemBrowser traceIcon' |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
643 |
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 | 644 |
! |
645 |
||
646 |
visualStartableClassIcon |
|
647 |
"This resource specification was automatically generated |
|
648 |
by the ImageEditor of ST/X." |
|
649 |
||
650 |
"Do not manually edit this!! If it is corrupted, |
|
651 |
the ImageEditor may not be able to read the specification." |
|
652 |
||
653 |
" |
|
654 |
self visualStartableClassIcon inspect |
|
655 |
ImageEditor openOnClass:self andSelector:#visualStartableClassIcon |
|
656 |
" |
|
657 |
||
658 |
<resource: #image> |
|
659 |
||
660 |
^Icon |
|
2892 | 661 |
constantNamed:#'SystemBrowser class visualStartableClassIcon' |
662 |
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] |
|
663 |
! |
|
664 |
||
665 |
watchIcon |
|
666 |
"This resource specification was automatically generated |
|
667 |
by the ImageEditor of ST/X." |
|
668 |
||
669 |
"Do not manually edit this!! If it is corrupted, |
|
670 |
the ImageEditor may not be able to read the specification." |
|
671 |
||
672 |
" |
|
673 |
self watchIcon inspect |
|
674 |
ImageEditor openOnClass:self andSelector:#watchIcon |
|
675 |
" |
|
676 |
||
677 |
<resource: #image> |
|
678 |
||
679 |
^Icon |
|
680 |
constantNamed:#'SystemBrowser class watchIcon' |
|
681 |
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] |
|
2846 | 682 |
! ! |
2692 | 683 |
|
1203 | 684 |
!SystemBrowser class methodsFor:'interface specs'! |
685 |
||
1367 | 686 |
metaSpec |
687 |
"UIPainter new openOnClass: self andSelector: #metaSpec" |
|
688 |
||
689 |
<resource: #canvas> |
|
690 |
^#(#FullSpec |
|
691 |
#window: |
|
692 |
#(#WindowSpec |
|
693 |
#label: 'Unlabeled Canvas' |
|
694 |
#bounds: #(#Rectangle 27 249 325 334 ) ) |
|
695 |
#component: |
|
696 |
#(#SpecCollection |
|
697 |
#collection: #( |
|
698 |
#(#RadioButtonSpec |
|
699 |
#layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) |
|
700 |
#name: #instanceSwitch |
|
701 |
#model: #metaHolder |
|
702 |
#callbacksSpec: |
|
703 |
#(#UIEventCallbackSubSpec |
|
704 |
#requestValueChangeSelector: #changeRequest ) |
|
705 |
#label: 'instance' |
|
706 |
#select: false ) |
|
707 |
#(#RadioButtonSpec |
|
708 |
#layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) |
|
709 |
#name: #classSwitch |
|
710 |
#model: #metaHolder |
|
711 |
#callbacksSpec: |
|
712 |
#(#UIEventCallbackSubSpec |
|
713 |
#requestValueChangeSelector: #changeRequest ) |
|
714 |
#label: 'class' |
|
715 |
#select: true ) ) ) ) |
|
716 |
||
717 |
"Created: / 30.10.1997 / 19:07:29 / cg" |
|
718 |
! |
|
719 |
||
1203 | 720 |
methodMoveDialogSpec |
721 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
722 |
||
723 |
"do not manually edit this - the painter/builder may not be able to |
|
724 |
handle the specification if its corrupted." |
|
725 |
||
726 |
" |
|
727 |
UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec |
|
728 |
SystemBrowser new openDialogInterface:#methodMoveDialogSpec |
|
729 |
" |
|
730 |
||
731 |
<resource: #canvas> |
|
732 |
||
733 |
^ |
|
734 |
||
735 |
#(#FullSpec |
|
736 |
#'window:' |
|
737 |
#(#WindowSpec |
|
738 |
#'name:' 'uIPainterView' |
|
739 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
740 |
#'label:' 'move method' |
|
741 |
#'bounds:' #(#Rectangle 0 0 279 118) |
|
742 |
) |
|
743 |
#'component:' |
|
744 |
#(#SpecCollection |
|
745 |
#'collection:' |
|
746 |
#( |
|
747 |
#(#HorizontalPanelViewSpec |
|
748 |
#'name:' 'horizontalPanelView' |
|
749 |
#'layout:' #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0) |
|
750 |
#'component:' |
|
751 |
#(#SpecCollection |
|
752 |
#'collection:' |
|
753 |
#( |
|
754 |
#(#ActionButtonSpec |
|
755 |
#'name:' 'actionButton2' |
|
756 |
#'label:' 'cancel' |
|
757 |
#'tabable:' true |
|
758 |
#'model:' #cancel |
|
759 |
#'extent:' #(#Point 133 27) |
|
760 |
) |
|
761 |
#(#ActionButtonSpec |
|
762 |
#'name:' 'actionButton1' |
|
763 |
#'label:' 'move' |
|
764 |
#'tabable:' true |
|
765 |
#'isDefault:' true |
|
766 |
#'model:' #accept |
|
767 |
#'extent:' #(#Point 134 27) |
|
768 |
) |
|
769 |
) |
|
770 |
) |
|
771 |
#'level:' 0 |
|
772 |
#'horizontalLayout:' #fitSpace |
|
773 |
#'verticalLayout:' #center |
|
774 |
#'horizontalSpace:' 4 |
|
775 |
#'verticalSpace:' 4 |
|
776 |
) |
|
777 |
#(#LabelSpec |
|
778 |
#'name:' 'label' |
|
779 |
#'layout:' #(#LayoutFrame 2 0 2 0 -2 1.0 25 0) |
|
780 |
#'label:' 'move current method to which class:' |
|
781 |
#'style:' |
|
782 |
#(#Font |
|
783 |
'helvetica' 'medium' |
|
784 |
'roman' 12 |
|
785 |
) |
|
786 |
#'foregroundColor:' #(#Color 0.0 0.0 0.0) |
|
787 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993) |
|
788 |
#'adjust:' #left |
|
789 |
) |
|
790 |
#(#ComboBoxSpec |
|
791 |
#'name:' 'comboBox1' |
|
792 |
#'layout:' #(#LayoutFrame 2 0 29 0 -2 1.0 51 0) |
|
793 |
#'tabable:' true |
|
794 |
#'model:' #className |
|
795 |
#'comboList:' #classList |
|
796 |
) |
|
797 |
) |
|
798 |
) |
|
799 |
) |
|
800 |
||
801 |
"Created: 25.6.1997 / 13:45:20 / cg" |
|
802 |
"Modified: 25.6.1997 / 13:46:44 / cg" |
|
803 |
! ! |
|
804 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
805 |
!SystemBrowser class methodsFor:'private helpers'! |
36 | 806 |
|
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
807 |
askForPackageChangeFrom:oldPkg to:newPkg |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
808 |
|answer oldVsNew box notAgain chk| |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
809 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
810 |
box := OptionBox |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
811 |
title: |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
812 |
('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
|
813 |
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
|
814 |
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
|
815 |
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
|
816 |
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
|
817 |
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
|
818 |
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
|
819 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
820 |
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
|
821 |
bindWith:(oldPkg allBold) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
822 |
with:(newPkg allBold)) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
823 |
numberOfOptions:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
824 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
825 |
box buttonTitles:#('cancel' 'keep' 'continue'). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
826 |
box defaultButtonIndex:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
827 |
box action:[:n | answer := #(#cancel #keep #continue) at:n]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
828 |
box label:'Method redefinition'; form:(WarningBox iconBitmap). |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
829 |
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
|
830 |
box addVerticalSpace:10. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
831 |
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
|
832 |
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
|
833 |
box resize. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
834 |
box showAtPointer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
835 |
box destroy. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
836 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
837 |
(answer ~~ #cancel) ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
838 |
notAgain value ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
839 |
Class catchMethodRedefinitions:false. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
840 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
841 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
842 |
^ answer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
843 |
! |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
844 |
|
203 | 845 |
showNoneFound |
1620 | 846 |
super warn:(self classResources string:'None found.'). |
203 | 847 |
! |
36 | 848 |
|
203 | 849 |
showNoneFound:what |
1620 | 850 |
|rs| |
851 |
||
852 |
rs := self classResources. |
|
2398 | 853 |
super information:((rs string:what) , (rs string:'...\\... none found.')) withCRs. |
203 | 854 |
! ! |
36 | 855 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
856 |
!SystemBrowser class methodsFor:'private instance creation'! |
203 | 857 |
|
858 |
newWithLabel:aString setupBlock:aBlock |
|
859 |
"common helper method for all creation methods" |
|
860 |
||
861 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current |
|
36 | 862 |
! |
863 |
||
203 | 864 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation |
865 |
"common helper method for all creation methods" |
|
36 | 866 |
|
203 | 867 |
|newBrowser| |
45 | 868 |
|
203 | 869 |
newBrowser := BrowserView onDevice:aWorkstation. |
870 |
newBrowser title:aString. |
|
871 |
aBlock value:newBrowser. |
|
45 | 872 |
|
203 | 873 |
newBrowser open. |
874 |
^ newBrowser |
|
875 |
! |
|
45 | 876 |
|
203 | 877 |
newWithLabel:aString setupSelector:aSymbol arg:arg |
878 |
"common helper method for all creation methods" |
|
36 | 879 |
|
203 | 880 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current |
36 | 881 |
! |
882 |
||
203 | 883 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation |
884 |
"common helper method for all creation methods" |
|
885 |
||
886 |
|newBrowser| |
|
52 | 887 |
|
203 | 888 |
newBrowser := BrowserView onDevice:aWorkstation. |
889 |
newBrowser title:aString. |
|
890 |
newBrowser perform:aSymbol with:arg. |
|
891 |
newBrowser open. |
|
892 |
^ newBrowser |
|
893 |
! ! |
|
894 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
895 |
!SystemBrowser class methodsFor:'special search startup'! |
203 | 896 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
897 |
allCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
898 |
"return a collection of methods which send aSelector." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
899 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
900 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
901 |
allCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
902 |
in:(Smalltalk allClasses) |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
903 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
904 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
905 |
SystemBrowser allCallsOn:#at:put: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
906 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
907 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
908 |
"Created: 24.1.1997 / 19:42:57 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
909 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
910 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
911 |
allCallsOn:aSelectorString in:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
912 |
"return a collection of methods which send aSelector. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
913 |
Methods from classes in aCollectionOfClasses are searched only." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
914 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
915 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
916 |
allCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
917 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
918 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
919 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
920 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
921 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
922 |
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
|
923 |
"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
|
924 |
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
|
925 |
|
2901 | 926 |
|sel searchBlock selMatch lcString quickMatch classesSearched| |
927 |
||
928 |
classesSearched := aCollectionOfClasses. |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
929 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
930 |
((aSelectorString ~= '*') |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
931 |
and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]) ifTrue:[ |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
932 |
"/ a matchString - need string matching procedure |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
933 |
|
2846 | 934 |
ignoreCase ifTrue:[ |
935 |
lcString := aSelectorString asLowercase. |
|
936 |
] ifFalse:[ |
|
937 |
lcString := aSelectorString. |
|
938 |
]. |
|
939 |
||
940 |
quickMatch := aSelectorString. |
|
941 |
(quickMatch startsWith:'*') ifTrue:[ |
|
942 |
quickMatch := quickMatch copyFrom:2 |
|
943 |
]. |
|
944 |
(quickMatch endsWith:'*') ifTrue:[ |
|
945 |
quickMatch := quickMatch copyWithoutLast:1 |
|
946 |
]. |
|
947 |
(quickMatch includes:$:) ifTrue:[ |
|
948 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
|
949 |
]. |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
950 |
searchBlock := [:class :method :s | |
2846 | 951 |
|src| |
952 |
||
2770
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
953 |
(ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
954 |
"/ do quick search first |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
955 |
method isLazyMethod ifTrue:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
956 |
src := method source. |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
957 |
(src notNil |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
958 |
and:[src includesString:quickMatch]) ifTrue:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
959 |
method makeRealMethod. |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
960 |
(method literalsDetect:[:aLiteral| |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
961 |
(aLiteral isMemberOf:Symbol) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
962 |
and:[(lcString includesString:quickMatch) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
963 |
and:[(lcString match:aLiteral)]] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
964 |
] ifNone:nil) notNil |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
965 |
] ifFalse:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
966 |
false |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
967 |
] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
968 |
] ifFalse:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
969 |
(method literalsDetect:[:aLiteral| |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
970 |
(aLiteral isMemberOf:Symbol) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
971 |
and:[(lcString includesString:quickMatch) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
972 |
and:[(lcString match:aLiteral)]] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
973 |
] ifNone:nil) notNil |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
974 |
] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
975 |
] ifFalse:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
976 |
"/ expensive search |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
977 |
method isLazyMethod ifTrue:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
978 |
src := method source. |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
979 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
980 |
method makeRealMethod. |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
981 |
(method literalsDetect:[:aLiteral| |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
982 |
(aLiteral isMemberOf:Symbol) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
983 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
984 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
985 |
] ifNone:nil) notNil |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
986 |
] ifFalse:[ |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
987 |
false |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
988 |
] |
da09dbcf45f8
mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents:
2769
diff
changeset
|
989 |
] ifFalse:[ |
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
990 |
(method literalsDetect:[:aLiteral| |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
991 |
(aLiteral isMemberOf:Symbol) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
992 |
and:[(ignoreCase and:[lcString match:aLiteral asLowercase]) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
993 |
or:[ignoreCase not and:[lcString match:aLiteral]]] |
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
994 |
] ifNone:nil) notNil |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
995 |
] |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
996 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
997 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
998 |
] ifFalse:[ |
1018 | 999 |
(aSelectorString = '*') ifTrue:[ |
1000 |
searchBlock := [:class :method :s | true]. |
|
1001 |
] ifFalse:[ |
|
1002 |
"/ no matchString - can do it much faster |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1003 |
|
1018 | 1004 |
sel := aSelectorString asSymbolIfInterned. |
1005 |
sel isNil ifTrue:[ |
|
1006 |
^ nil "/ none |
|
1007 |
]. |
|
2901 | 1008 |
|
1009 |
"/ exclude javaClasses, if selector cannot be a valid java-selector |
|
1010 |
(sel includes:$() ifFalse:[ |
|
1011 |
classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not]. |
|
1012 |
]. |
|
1013 |
||
2846 | 1014 |
quickMatch := sel. |
1015 |
(quickMatch includes:$:) ifTrue:[ |
|
1016 |
quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1. |
|
1017 |
]. |
|
2208
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
1018 |
searchBlock := [:class :method :s | |
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
1019 |
|src| |
e077aa992f7a
check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents:
1937
diff
changeset
|
1020 |
|
1059
918deae4d1c7
care for lazy methods when searching senders
Claus Gittinger <cg@exept.de>
parents:
1036
diff
changeset
|
1021 |
method isLazyMethod 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
|
1022 |
src := method source. |
2846 | 1023 |
(src notNil and:[src includesString:quickMatch]) ifTrue:[ |
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1024 |
method makeRealMethod. |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1025 |
method sends:sel. |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1026 |
] ifFalse:[ |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1027 |
false |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1028 |
] |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1029 |
] ifFalse:[ |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1030 |
method sends:sel |
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1031 |
] |
1059
918deae4d1c7
care for lazy methods when searching senders
Claus Gittinger <cg@exept.de>
parents:
1036
diff
changeset
|
1032 |
]. |
1018 | 1033 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1034 |
]. |
2901 | 1035 |
^ self allMethodsIn:classesSearched where:searchBlock |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1036 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1037 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1038 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1039 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1040 |
|
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
1041 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1042 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1043 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1044 |
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1045 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1046 |
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
|
1047 |
considered. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1048 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1049 |
|
2769 | 1050 |
|list activePriority| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1051 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1052 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1053 |
since this may take a long time, lower my priority ... |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1054 |
" |
2769 | 1055 |
activePriority := Processor activePriority. |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
1056 |
Processor activeProcess |
2769 | 1057 |
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
|
1058 |
do:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1059 |
|checkedClasses checkBlock detectedMethods| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1060 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1061 |
checkedClasses := IdentitySet new. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1062 |
list := OrderedCollection new. |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1063 |
detectedMethods := IdentitySet new. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1064 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1065 |
checkBlock := [:cls | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1066 |
(checkedClasses includes:cls) ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1067 |
cls isObsolete ifTrue:[ |
2882 | 1068 |
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
|
1069 |
] ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1070 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1071 |
(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
|
1072 |
"/ 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
|
1073 |
(detectedMethods includes:method) ifFalse:[ |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1074 |
list add:method. |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1075 |
detectedMethods add:method |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1076 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1077 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1078 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1079 |
checkedClasses add:cls. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1080 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1081 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1082 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1083 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1084 |
aCollectionOfClasses do:[:aClass | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1085 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1086 |
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
|
1087 |
implementors or senders) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1088 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1089 |
wantInst ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1090 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1091 |
checkBlock value:aClass |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1092 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1093 |
wantClass ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1094 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1095 |
checkBlock value:(aClass class) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1096 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1097 |
Processor yield |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1098 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1099 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1100 |
^ list |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1101 |
|
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
1102 |
"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
|
1103 |
"Modified: / 14.12.1999 / 14:59:02 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1104 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1105 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1106 |
allMethodsIn:aCollectionOfClasses where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1107 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1108 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1109 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1110 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1111 |
allMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1112 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1113 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1114 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1115 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1116 |
"Created: 24.1.1997 / 19:41:49 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1117 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1118 |
|
203 | 1119 |
aproposSearch:aString |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
1120 |
"browse all methods, which have aString in their selector." |
203 | 1121 |
|
1122 |
^ self aproposSearch:aString in:(Smalltalk allClasses) |
|
75 | 1123 |
|
52 | 1124 |
! |
1125 |
||
203 | 1126 |
aproposSearch:aString in:aCollectionOfClasses |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
1127 |
"browse all methods, which have aString. |
203 | 1128 |
This is relatively slow, since all source must be processed." |
52 | 1129 |
|
203 | 1130 |
|matchString list s searchBlock browser| |
52 | 1131 |
|
203 | 1132 |
matchString := '*' , aString , '*'. |
52 | 1133 |
|
203 | 1134 |
list := OrderedCollection new. |
52 | 1135 |
|
203 | 1136 |
(aString includesMatchCharacters) ifTrue:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
1137 |
s := '*' , aString asLowercase , '*'. |
256 | 1138 |
"a matchString" |
1139 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0]. |
|
203 | 1140 |
] ifFalse:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
1141 |
searchBlock := [:source | (source findString:aString asLowercase) ~~ 0] |
203 | 1142 |
]. |
52 | 1143 |
|
203 | 1144 |
browser := self browseMethodsIn:aCollectionOfClasses |
256 | 1145 |
where:[:class :method :sel | |
1146 |
|comment| |
|
52 | 1147 |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
1148 |
(searchBlock value:sel asLowercase) |
256 | 1149 |
] |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
1150 |
title:(self classResources string:'selectors containing: %1' with:aString). |
52 | 1151 |
|
203 | 1152 |
browser notNil ifTrue:[ |
256 | 1153 |
browser autoSearch:aString |
203 | 1154 |
]. |
1155 |
^ browser |
|
52 | 1156 |
|
1157 |
" |
|
203 | 1158 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses) |
1159 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses) |
|
1160 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses) |
|
1161 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses) |
|
52 | 1162 |
" |
203 | 1163 |
|
256 | 1164 |
"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
|
1165 |
! |
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
1166 |
|
203 | 1167 |
browseAllCallsOn:aSelectorString |
1168 |
"launch a browser for all senders of aSelector" |
|
52 | 1169 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1170 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1171 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1172 |
in:(Smalltalk allClasses) |
52 | 1173 |
|
1174 |
" |
|
203 | 1175 |
SystemBrowser browseAllCallsOn:#+ |
52 | 1176 |
" |
256 | 1177 |
|
1178 |
"Created: 9.12.1995 / 18:00:41 / cg" |
|
666 | 1179 |
"Modified: 10.7.1996 / 10:26:15 / cg" |
1180 |
! |
|
1181 |
||
1182 |
browseAllCallsOn:aSelectorString in:aSetOfClasses |
|
1183 |
"launch a browser for all senders of aSelector" |
|
1184 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1185 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1186 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1187 |
in:aSetOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1188 |
title:(self classResources string:'senders of: %1' with:aSelectorString) |
666 | 1189 |
|
1190 |
" |
|
1191 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
|
1192 |
" |
|
1193 |
||
1194 |
"Created: 10.7.1996 / 10:25:49 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1195 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
52 | 1196 |
! |
1197 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1198 |
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
|
1199 |
"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
|
1200 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1201 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1202 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1203 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1204 |
ignoreCase:ignoreCase |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1205 |
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
|
1206 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1207 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1208 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1209 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1210 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1211 |
"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
|
1212 |
"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
|
1213 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1214 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1215 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
52 | 1216 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
1217 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1218 |
|browser| |
52 | 1219 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1220 |
browser := self |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1221 |
browseMethods:(self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase) |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1222 |
title:title. |
52 | 1223 |
|
1224 |
browser notNil ifTrue:[ |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1225 |
|s| |
52 | 1226 |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1227 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1228 |
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
|
1229 |
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
|
1230 |
" |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1231 |
s := aSelectorString. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1232 |
(s includes:$:) ifTrue:[ |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1233 |
s := s copyTo:(s indexOf:$:) |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1234 |
]. |
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1235 |
browser autoSearch:s |
52 | 1236 |
]. |
1237 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
1238 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1239 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1240 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1241 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1242 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1243 |
title:'just a test' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1244 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1245 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1246 |
"Modified: 24.1.1997 / 19:48:54 / cg" |
52 | 1247 |
! |
1248 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1249 |
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
|
1250 |
"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
|
1251 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1252 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1253 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1254 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1255 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1256 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1257 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1258 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1259 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1260 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1261 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1262 |
title:'just a test' |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1263 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1264 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1265 |
"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
|
1266 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1267 |
|
203 | 1268 |
browseCallsOn:aSelectorString under:aClass |
1269 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
1270 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1271 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1272 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1273 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1274 |
title:(self classResources |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1275 |
string:'senders of: %1 (in and below %2)' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1276 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1277 |
with:aClass name) |
203 | 1278 |
|
1279 |
" |
|
256 | 1280 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 1281 |
" |
256 | 1282 |
|
1283 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
1284 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 1285 |
! |
1286 |
||
1287 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
1288 |
"launch a browser for all methods in aClass where the classVar named |
|
1289 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
1290 |
classvar is modified" |
|
1291 |
||
1292 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
1293 |
! |
|
1294 |
||
1295 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
1296 |
"launch a browser for all methods in aCollectionOfClasses, |
|
1297 |
where the classVar named aString is referenced; |
|
1298 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
1299 |
||
1300 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
1301 |
! |
|
1302 |
||
1303 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
1304 |
"launch a browser for all methods in aClass and subclasses |
|
1305 |
where the classVar named aString is referenced; |
|
1306 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
1307 |
||
1308 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
1309 |
||
1310 |
! |
|
1311 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1312 |
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
|
1313 |
"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
|
1314 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1315 |
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
|
1316 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1317 |
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
|
1318 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1319 |
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
|
1320 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1321 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
1322 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1323 |
|
1356 | 1324 |
"/ search for any resource can be done without looking |
1325 |
"/ at the source ... |
|
1326 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
1327 |
searchBlock := [:class :method :s | method hasResource] |
|
1328 |
] ifFalse:[ |
|
1329 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1330 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1331 |
|
1356 | 1332 |
found := false. |
1333 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1334 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1335 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1336 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1337 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1338 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1339 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1340 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1341 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1342 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1343 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1344 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1345 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1346 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1347 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1348 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1349 |
] |
1356 | 1350 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1351 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1352 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1353 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1354 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1355 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1356 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1357 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1358 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1359 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1360 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1361 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1362 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1363 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1364 |
] |
1356 | 1365 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1366 |
found := item match:val printString |
1356 | 1367 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1368 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1369 |
found := item match:rsrc printString |
1356 | 1370 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1371 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1372 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1373 |
] |
1356 | 1374 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1375 |
]. |
1356 | 1376 |
found |
1377 |
]. |
|
1378 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1379 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1380 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1381 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1382 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1383 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1384 |
browser autoSearch:'resource:' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1385 |
]. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1386 |
^ browser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1387 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1388 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1389 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1390 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1391 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1392 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1393 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1394 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1395 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1396 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1397 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1398 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1399 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1400 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1401 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1402 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1403 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1404 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1405 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1406 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1407 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1408 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
1409 |
"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
|
1410 |
! |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1411 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1412 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1413 |
"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
|
1414 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1415 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1416 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1417 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1418 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1419 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1420 |
title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1421 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1422 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1423 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1424 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1425 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1426 |
title:'methods accessing styleSheet values' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1427 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1428 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1429 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1430 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1431 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1432 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1433 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1434 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1435 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1436 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1437 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1438 |
title:'methods with a resource' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1439 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1440 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
1441 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1442 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
1443 |
|
203 | 1444 |
browseForString:aString |
1445 |
"launch a browser for all methods containing a string in their source. |
|
1446 |
This may be slow, since source-code has to be scanned." |
|
1447 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1448 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1449 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1450 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 1451 |
! |
1452 |
||
1453 |
browseForString:aString in:aCollectionOfClasses |
|
1454 |
"launch a browser for all methods in aCollectionOfClasses |
|
1455 |
containing a string in their source. |
|
1456 |
This may be slow, since source-code has to be scanned." |
|
1457 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1458 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1459 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1460 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1461 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1462 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1463 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1464 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1465 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1466 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1467 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1468 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1469 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1470 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1471 |
! |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1472 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1473 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1474 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1475 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1476 |
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
|
1477 |
|
203 | 1478 |
|browser searchBlock title s| |
1479 |
||
256 | 1480 |
title := self classResources string:'methods containing: %1' with:aString displayString. |
203 | 1481 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1482 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1483 |
or:[ignoreCase]) ifTrue:[ |
256 | 1484 |
s := '*' , aString , '*'. |
1485 |
"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
|
1486 |
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
|
1487 |
|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
|
1488 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1489 |
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
|
1490 |
('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
|
1491 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1492 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1493 |
s match:src ignoreCase:ignoreCase |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1494 |
] |
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
|
1495 |
] |
203 | 1496 |
] 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
|
1497 |
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
|
1498 |
|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
|
1499 |
|
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
1500 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1501 |
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
|
1502 |
('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
|
1503 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1504 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1505 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1506 |
] |
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
|
1507 |
] |
203 | 1508 |
]. |
1509 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
1510 |
||
1511 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1512 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 1513 |
]. |
1514 |
^ browser |
|
1515 |
||
1516 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1517 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1518 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 1519 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
1520 |
" |
|
1521 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1522 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
1523 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 1524 |
! |
1525 |
||
1526 |
browseForSymbol:aSymbol |
|
1527 |
"launch a browser for all methods referencing aSymbol" |
|
1528 |
||
666 | 1529 |
^ self |
1530 |
browseForSymbol:aSymbol |
|
1531 |
title:(self classResources string:'users of: %1' with:aSymbol) |
|
1532 |
warnIfNone:true |
|
256 | 1533 |
|
1534 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 1535 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
1536 |
! |
|
1537 |
||
1538 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
1539 |
"launch a browser for all methods referencing aSymbol" |
|
1540 |
||
1541 |
|browser searchBlock sym| |
|
1542 |
||
1543 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
1544 |
"a matchString" |
|
1545 |
searchBlock := [:c :m :s | |
|
1546 |
(m literalsDetect:[:aLiteral| |
|
1547 |
(aLiteral isMemberOf:Symbol) |
|
1548 |
and:[aSymbol match:aLiteral] |
|
1549 |
] ifNone:nil) notNil |
|
1550 |
]. |
|
1551 |
] ifFalse:[ |
|
1552 |
" |
|
1553 |
can do a faster search |
|
1554 |
" |
|
1555 |
sym := aSymbol asSymbolIfInterned. |
|
1556 |
sym isNil ifTrue:[ |
|
1557 |
self showNoneFound:title. |
|
1558 |
^ nil |
|
1559 |
]. |
|
1560 |
||
1561 |
searchBlock := [:c :m :s | |
|
1562 |
(m literalsDetect:[:aLiteral| |
|
1563 |
(sym == aLiteral) |
|
1564 |
] ifNone:nil) notNil |
|
1565 |
]. |
|
1566 |
]. |
|
1567 |
doWarn ifFalse:[ |
|
1568 |
WarningSignal ignoreIn:[ |
|
1569 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
|
1570 |
] |
|
1571 |
] ifTrue:[ |
|
1572 |
browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title. |
|
1573 |
]. |
|
1574 |
browser notNil ifTrue:[ |
|
1575 |
browser autoSearch:aSymbol |
|
1576 |
]. |
|
1577 |
^ browser |
|
1578 |
||
1579 |
"Modified: 24.6.1996 / 14:39:07 / stefan" |
|
1580 |
"Modified: 30.6.1996 / 16:45:25 / cg" |
|
1581 |
"Created: 10.7.1996 / 10:36:36 / cg" |
|
203 | 1582 |
! |
1583 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1584 |
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
|
1585 |
"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
|
1586 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1587 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1588 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1589 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1590 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1591 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1592 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1593 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1594 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1595 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1596 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1597 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1598 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1599 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1600 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1601 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1602 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1603 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1604 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1605 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1606 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1607 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1608 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1609 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1610 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1611 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1612 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1613 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1614 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1615 |
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
|
1616 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1617 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1618 |
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
|
1619 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1620 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1621 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1622 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1623 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1624 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1625 |
^ browser |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1626 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1627 |
"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
|
1628 |
"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
|
1629 |
"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
|
1630 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1631 |
|
2409 | 1632 |
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
|
1633 |
"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
|
1634 |
|
203 | 1635 |
|browser searchBlock sym| |
1636 |
||
1637 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
375 | 1638 |
"a matchString" |
1639 |
searchBlock := [:c :m :s | |
|
2439 | 1640 |
m referencesGlobalMatching:aSymbol |
1641 |
"/ (m literalsDetect:[:aLiteral| |
|
1642 |
"/ (aLiteral isMemberOf:Symbol) |
|
1643 |
"/ and:[aSymbol match:aLiteral] |
|
1644 |
"/ ] ifNone:nil) notNil |
|
375 | 1645 |
]. |
203 | 1646 |
] ifFalse:[ |
375 | 1647 |
" |
1648 |
can do a faster search |
|
1649 |
" |
|
1650 |
sym := aSymbol asSymbolIfInterned. |
|
1651 |
sym isNil ifTrue:[ |
|
2409 | 1652 |
actionIfNoneFound value. |
375 | 1653 |
^ nil |
1654 |
]. |
|
203 | 1655 |
|
375 | 1656 |
searchBlock := [:c :m :s | |
2439 | 1657 |
m referencesGlobal:sym |
1658 |
"/ (m literalsDetect:[:aLiteral| |
|
1659 |
"/ (sym == aLiteral) |
|
1660 |
"/ ] ifNone:nil) notNil |
|
375 | 1661 |
]. |
203 | 1662 |
]. |
2409 | 1663 |
|
1664 |
WarningSignal ignoreIn:[ |
|
1665 |
InformationSignal ignoreIn:[ |
|
375 | 1666 |
browser := self browseMethodsWhere:searchBlock title:title. |
1667 |
] |
|
2409 | 1668 |
]. |
1669 |
browser isNil ifTrue:[ |
|
1670 |
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
|
1671 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1672 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1673 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1674 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1675 |
browser autoSearch:searchString |
203 | 1676 |
]. |
1677 |
^ browser |
|
375 | 1678 |
|
2439 | 1679 |
"Modified: / 24.6.1996 / 14:39:07 / stefan" |
1680 |
"Created: / 31.10.1996 / 14:45:08 / cg" |
|
1681 |
"Modified: / 9.11.1999 / 17:04:30 / cg" |
|
203 | 1682 |
! |
1683 |
||
2409 | 1684 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
1685 |
"launch a browser for all methods referencing aSymbol" |
|
1686 |
||
1687 |
^ self |
|
1688 |
browseForSymbol:aSymbol |
|
1689 |
title:title |
|
1690 |
warnIfNone:doWarn |
|
1691 |
searchFor:aSymbol |
|
1692 |
||
1693 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
1694 |
! |
|
1695 |
||
1696 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
1697 |
"launch a browser for all methods referencing aSymbol" |
|
1698 |
||
2414 | 1699 |
|b| |
1700 |
||
1701 |
doWarn ifTrue: [ |
|
1702 |
b := [self showNoneFound:title] |
|
1703 |
]. |
|
2409 | 1704 |
^ self |
1705 |
browseForSymbol:aSymbol |
|
1706 |
title:title |
|
2414 | 1707 |
ifNone:b |
2409 | 1708 |
searchFor:searchString |
1709 |
! |
|
1710 |
||
52 | 1711 |
browseImplementorsOf:aSelectorString |
1712 |
"launch a browser for all implementors of aSelector" |
|
1713 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1714 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1715 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1716 |
in:(Smalltalk allClasses) |
52 | 1717 |
|
1718 |
" |
|
1719 |
SystemBrowser browseImplementorsOf:#+ |
|
1720 |
" |
|
256 | 1721 |
|
1722 |
"Created: 9.12.1995 / 18:01:18 / cg" |
|
666 | 1723 |
"Modified: 10.7.1996 / 10:21:26 / cg" |
1724 |
! |
|
1725 |
||
1726 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
1727 |
"launch a browser for all implementors of aSelector" |
|
1728 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1729 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1730 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1731 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1732 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
666 | 1733 |
|
1734 |
" |
|
1735 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
1736 |
" |
|
1737 |
||
1738 |
"Created: 10.7.1996 / 10:20:59 / cg" |
|
1739 |
"Modified: 10.7.1996 / 10:21:49 / cg" |
|
52 | 1740 |
! |
1741 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1742 |
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
|
1743 |
"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
|
1744 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1745 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1746 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1747 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1748 |
ignoreCase:ignoreCase |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1749 |
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
|
1750 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1751 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1752 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1753 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1754 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1755 |
"Created: 10.7.1996 / 10:20:59 / cg" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1756 |
"Modified: 10.7.1996 / 10:21:49 / cg" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1757 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1758 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1759 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1760 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1761 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
36 | 1762 |
"launch a browser for all implementors of aSelector in |
1763 |
the classes contained in aCollectionOfClasses and its metaclasses" |
|
1764 |
||
2642 | 1765 |
|list| |
270 | 1766 |
|
2642 | 1767 |
list := self |
1768 |
findImplementorsOf:aSelectorString |
|
1769 |
in:aCollectionOfClasses |
|
1770 |
ignoreCase:ignoreCase. |
|
45 | 1771 |
|
2642 | 1772 |
list size == 0 ifTrue:[ |
1773 |
self showNoneFound:title. |
|
1774 |
^ nil |
|
36 | 1775 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1776 |
|
270 | 1777 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 1778 |
|
1779 |
" |
|
1780 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 1781 |
in:(Array with:Number |
1782 |
with:Float |
|
1783 |
with:SmallInteger) |
|
1784 |
title:'some implementors of +' |
|
36 | 1785 |
" |
132 | 1786 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
1787 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
1788 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
1789 |
"Modified: / 16.10.1998 / 13:16:29 / cg" |
36 | 1790 |
! |
1791 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1792 |
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
|
1793 |
"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
|
1794 |
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
|
1795 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1796 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1797 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1798 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1799 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1800 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1801 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1802 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1803 |
|
52 | 1804 |
browseImplementorsOf:aSelectorString under:aClass |
1805 |
"launch a browser for all implementors of aSelector in aClass |
|
1806 |
and its subclasses" |
|
1807 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1808 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1809 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1810 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1811 |
title:(self classResources |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1812 |
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
|
1813 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
1814 |
with:aClass name) |
52 | 1815 |
|
1816 |
" |
|
1817 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
1818 |
" |
|
256 | 1819 |
|
1820 |
"Created: 9.12.1995 / 18:06:09 / cg" |
|
1821 |
"Modified: 9.12.1995 / 18:11:38 / cg" |
|
52 | 1822 |
! |
1823 |
||
203 | 1824 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
1825 |
"launch a browser for all methods in aClass where the instVar named |
|
1826 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
1827 |
instvar is modified" |
|
45 | 1828 |
|
203 | 1829 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 1830 |
! |
1831 |
||
203 | 1832 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
1833 |
"launch a browser for all methods in aClass where the instVar named |
|
1834 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
1835 |
instvar is modified" |
|
52 | 1836 |
|
203 | 1837 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 1838 |
! |
1839 |
||
203 | 1840 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
1841 |
"launch a browser for all methods in aClass and subclasses |
|
1842 |
where the instVar named aString is referenced; |
|
1843 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 1844 |
|
203 | 1845 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 1846 |
! |
1847 |
||
1848 |
browseReferendsOf:aGlobalName |
|
1849 |
"launch a browser for all methods referencing a global |
|
1367 | 1850 |
named aGlobalName. The argument may be a symbol, a string or |
1851 |
a matchPattern. |
|
36 | 1852 |
" |
1853 |
||
1854 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
1855 |
||
1856 |
" |
|
1857 |
Browser browseReferendsOf:#Transcript |
|
1367 | 1858 |
Browser browseReferendsOf:'Tr*' |
36 | 1859 |
" |
75 | 1860 |
|
1367 | 1861 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 1862 |
! |
1863 |
||
2409 | 1864 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
1865 |
"launch a browser for all methods referencing a global |
|
1866 |
named aGlobalName. |
|
1867 |
" |
|
1868 |
||
1869 |
^ self |
|
1870 |
browseReferendsOf:aGlobalName |
|
1871 |
title:(self classResources string:'users of: %1' with:aGlobalName) |
|
1872 |
ifNone:actionIfNone |
|
1873 |
||
1874 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
1875 |
||
1876 |
||
1877 |
! |
|
1878 |
||
666 | 1879 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
1880 |
"launch a browser for all methods referencing a global |
|
1881 |
named aGlobalName. |
|
1882 |
" |
|
1883 |
||
1884 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
1885 |
||
1886 |
" |
|
1887 |
Browser browseReferendsOf:#Transcript |
|
1888 |
" |
|
1889 |
||
1890 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
1891 |
! |
|
1892 |
||
1893 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
1894 |
"launch a browser for all methods referencing a global |
|
1895 |
named aGlobalName. |
|
1896 |
" |
|
1897 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1898 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1899 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1900 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1901 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1902 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1903 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1904 |
|
666 | 1905 |
^ self browseForSymbol:aGlobalName |
1906 |
in:aSetOfClasses |
|
1907 |
title:(self classResources string:'users of: %1' with:aGlobalName) |
|
1908 |
warnIfNone:doWarn |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1909 |
searchFor:globalsPlainName |
666 | 1910 |
|
1911 |
"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
|
1912 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 1913 |
! |
1914 |
||
2409 | 1915 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
203 | 1916 |
"launch a browser for all methods referencing a global |
1917 |
named aGlobalName. |
|
1918 |
" |
|
1919 |
||
2828 | 1920 |
|globalsPlainName idx searchBlock |
1921 |
sym browser| |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1922 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1923 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1924 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
1367 | 1925 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
1926 |
(globalsPlainName size == 0 |
|
1927 |
or:[globalsPlainName = '*']) ifTrue:[ |
|
1928 |
globalsPlainName := aGlobalName |
|
1929 |
] |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1930 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1931 |
|
3125 | 1932 |
(sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[ |
1933 |
searchBlock := [:cls :mthd :sel | |mSource| |
|
1934 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
1935 |
mthd isLazyMethod ifTrue:[ |
|
1936 |
mSource := mthd source. |
|
1937 |
(mSource notNil |
|
1938 |
and:[(mSource includesString:sym) |
|
1939 |
and:[mthd usedGlobals includes:sym]]) |
|
1940 |
] ifFalse:[ |
|
1941 |
((mthd refersToLiteral:sym) |
|
1942 |
and:[mthd usedGlobals includes:sym]) |
|
1943 |
] |
|
1944 |
] |
|
1945 |
] ifFalse:[ |
|
2828 | 1946 |
aGlobalName includesMatchCharacters ifFalse:[ |
1947 |
actionIfNone value. |
|
1948 |
^ nil |
|
1949 |
]. |
|
1950 |
searchBlock := [:cls :mthd :sel | |mSource| |
|
1951 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
1952 |
mthd isLazyMethod ifTrue:[ |
|
1953 |
mSource := mthd source. |
|
1954 |
(mSource notNil |
|
1955 |
and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit]]) |
|
1956 |
] ifFalse:[ |
|
1957 |
((mthd literals contains:[:lit | aGlobalName match:lit]) |
|
1958 |
and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit] ]) |
|
1959 |
] |
|
1960 |
] |
|
1961 |
]. |
|
1962 |
WarningSignal ignoreIn:[ |
|
1963 |
InformationSignal ignoreIn:[ |
|
1964 |
browser := self browseMethodsWhere:searchBlock title:title. |
|
1965 |
] |
|
1966 |
]. |
|
1967 |
browser isNil ifTrue:[ |
|
1968 |
actionIfNone value |
|
1969 |
] ifFalse:[ |
|
1970 |
browser autoSearch:globalsPlainName |
|
1971 |
]. |
|
1972 |
^ browser |
|
2409 | 1973 |
! |
1974 |
||
1975 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
1976 |
"launch a browser for all methods referencing a global |
|
1977 |
named aGlobalName. |
|
1978 |
" |
|
1979 |
||
2414 | 1980 |
|b| |
1981 |
||
1982 |
doWarn ifTrue: [ |
|
1983 |
b := [self showNoneFound:title] |
|
1984 |
]. |
|
1985 |
||
2409 | 1986 |
^ self |
1987 |
browseReferendsOf:aGlobalName |
|
1988 |
title:title |
|
2414 | 1989 |
ifNone:b |
2409 | 1990 |
|
1367 | 1991 |
! |
1992 |
||
1993 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
1994 |
"launch a browser for all methods referencing a global |
|
1995 |
named aGlobalName. |
|
1996 |
" |
|
1997 |
||
1998 |
^ self |
|
1999 |
browseReferendsOf:aGlobalName |
|
2000 |
title:(self classResources string:'users of: %1' with:aGlobalName) |
|
2001 |
warnIfNone:doWarn |
|
2002 |
||
2003 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 2004 |
! |
2005 |
||
2006 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2007 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
2008 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
2009 |
instvar is modified" |
|
2010 |
||
2011 |
|title| |
|
2012 |
||
2013 |
modsOnly ifTrue:[ |
|
256 | 2014 |
title := 'modifications of: %1' |
203 | 2015 |
] ifFalse:[ |
256 | 2016 |
title := 'references to: %1 ' |
203 | 2017 |
]. |
2018 |
^ self |
|
256 | 2019 |
browseRefsTo:aString |
2020 |
classVars:classVars |
|
2021 |
in:aCollectionOfClasses |
|
2022 |
modificationsOnly:modsOnly |
|
2023 |
title:(self classResources string:title with:aString) |
|
2024 |
||
2025 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
2026 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 2027 |
! |
2028 |
||
2029 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
2030 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
2031 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
2032 |
instvar is modified" |
|
2033 |
||
2034 |
|filter browser pattern| |
|
2035 |
||
2036 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 2037 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 2038 |
|
2039 |
browser notNil ifTrue:[ |
|
2677 | 2040 |
modsOnly ifTrue:[ |
2041 |
pattern := varName , ' :=' |
|
2042 |
] ifFalse:[ |
|
2043 |
pattern := varName |
|
2044 |
]. |
|
2045 |
browser autoSearch:pattern |
|
203 | 2046 |
]. |
2047 |
^ browser |
|
2048 |
! |
|
2049 |
||
256 | 2050 |
browseSuperCallsIn:aCollectionOfClasses title:title |
2051 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
2052 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
2053 |
|browser searchBlock| |
256 | 2054 |
|
2055 |
searchBlock := [:class :method :s | |
|
504 | 2056 |
|src parser| |
256 | 2057 |
|
504 | 2058 |
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
|
2059 |
(src notNil and:[src findString:'super']) ~~ 0 ifTrue:[ |
504 | 2060 |
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
|
2061 |
parseMethod:src |
504 | 2062 |
in:class |
2063 |
ignoreErrors:true |
|
2064 |
ignoreWarnings:true. |
|
2065 |
||
2066 |
parser notNil and:[parser usesSuper] |
|
2067 |
] ifFalse:[ |
|
2068 |
false |
|
2069 |
] |
|
256 | 2070 |
]. |
2071 |
||
2072 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 2073 |
where:searchBlock |
2074 |
title:title. |
|
256 | 2075 |
|
2076 |
browser notNil ifTrue:[ |
|
504 | 2077 |
browser autoSearch:'super' |
256 | 2078 |
]. |
2079 |
^ browser |
|
2080 |
||
504 | 2081 |
" |
2082 |
SystemBrowser |
|
2083 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
2084 |
title:'superSends in SortedCollection' |
|
2085 |
" |
|
2086 |
||
256 | 2087 |
"Created: 23.11.1995 / 14:08:55 / cg" |
504 | 2088 |
"Modified: 24.4.1996 / 13:25:31 / cg" |
256 | 2089 |
! |
2090 |
||
2091 |
browseSuperCallsUnder:aClass |
|
2092 |
"launch a browser for all supersends in aClass and subclasses" |
|
2093 |
||
2094 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
2095 |
title:(self classResources string:'supersends (in and below %1)' with:aClass name) |
|
2096 |
||
2097 |
" |
|
2098 |
SystemBrowser browseSuperCallsUnder:Number |
|
2099 |
" |
|
2100 |
||
2101 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
2102 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
2103 |
! |
|
2104 |
||
52 | 2105 |
browseUsesOf:aClass |
2106 |
|dict owners offsets |
|
2107 |
sz "{ Class: SmallInteger }" |
|
2108 |
n "{ Class: SmallInteger }" |
|
2109 |
removeSet newDict| |
|
2110 |
||
2111 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
2112 |
||
2113 |
" |
|
2114 |
collect set of offsets in dict; key is class |
|
2115 |
" |
|
2116 |
dict := IdentityDictionary new. |
|
2117 |
owners do:[:someObject | |
|
2118 |
|cls create| |
|
2119 |
||
2120 |
someObject isContext ifFalse:[ |
|
2121 |
" |
|
2122 |
someObject refers to an instance of aClass; |
|
2123 |
find out, which instVar(s) |
|
2124 |
" |
|
2125 |
cls := someObject class. |
|
2126 |
cls ~~ Array ifTrue:[ |
|
2127 |
n := cls instSize. |
|
2128 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
2129 |
||
2130 |
1 to:n do:[:i | |
|
2131 |
|ref| |
|
2132 |
||
2133 |
ref := someObject instVarAt:i. |
|
2134 |
(ref isMemberOf:aClass) ifTrue:[ |
|
2135 |
offsets := dict at:cls ifAbsent:create. |
|
2136 |
offsets add:i. |
|
2137 |
] |
|
2138 |
]. |
|
2139 |
cls isVariable ifTrue:[ |
|
2140 |
cls isPointers ifTrue:[ |
|
2141 |
| idx "{ Class: SmallInteger }" | |
|
2142 |
||
2143 |
sz := someObject basicSize. |
|
2144 |
idx := 1. |
|
2145 |
[idx <= sz] whileTrue:[ |
|
2146 |
|ref| |
|
2147 |
||
2148 |
ref := someObject basicAt:idx. |
|
2149 |
(ref isMemberOf:aClass) ifTrue:[ |
|
2150 |
offsets := dict at:cls ifAbsent:create. |
|
2151 |
offsets add:0. |
|
2152 |
idx := sz |
|
2153 |
]. |
|
2154 |
idx := idx + 1 |
|
2155 |
] |
|
2156 |
] |
|
2157 |
] |
|
2158 |
] |
|
2159 |
] |
|
2160 |
]. |
|
2161 |
||
2162 |
" |
|
2163 |
merge with superclass refs |
|
2164 |
" |
|
2165 |
dict keysAndValuesDo:[:cls :set | |
|
2166 |
cls allSuperclasses do:[:aSuperclass | |
|
2167 |
|superSet| |
|
2168 |
||
2169 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
2170 |
superSet notNil ifTrue:[ |
|
2171 |
|removeSet| |
|
2172 |
||
2173 |
superSet := dict at:aSuperclass. |
|
2174 |
removeSet := Set new. |
|
2175 |
set do:[:offset | |
|
2176 |
(superSet includes:offset) ifTrue:[ |
|
2177 |
removeSet add:offset |
|
2178 |
] |
|
2179 |
]. |
|
2180 |
set removeAll:removeSet |
|
2181 |
] |
|
2182 |
] |
|
2183 |
]. |
|
2184 |
||
2185 |
" |
|
2186 |
remove empty ones |
|
2187 |
" |
|
2188 |
removeSet := Set new. |
|
2189 |
dict keysAndValuesDo:[:cls :set | |
|
2190 |
set isEmpty ifTrue:[ |
|
2191 |
removeSet add:cls |
|
2192 |
] |
|
2193 |
]. |
|
2194 |
removeSet do:[:cls | |
|
2195 |
dict removeKey:cls |
|
2196 |
]. |
|
2197 |
||
2198 |
" |
|
2199 |
replace the indices by real names |
|
2200 |
" |
|
2201 |
newDict := IdentityDictionary new. |
|
2202 |
dict keysAndValuesDo:[:cls :set | |
|
2203 |
|newSet names| |
|
2204 |
||
2205 |
names := cls allInstVarNames. |
|
2206 |
newSet := set collect:[:index | |
|
2207 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
2208 |
]. |
|
2209 |
newDict at:cls put:newSet |
|
2210 |
]. |
|
2211 |
||
2212 |
newDict inspect |
|
2213 |
||
75 | 2214 |
|
52 | 2215 |
! |
2216 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2217 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2218 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2219 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2220 |
|searchBlock| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2221 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2222 |
searchBlock := [:c :m :s | |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2223 |
|src result parser vars needMatch| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2224 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2225 |
needMatch := varName includesMatchCharacters. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2226 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2227 |
src := m source. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2228 |
src isNil ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2229 |
result := false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2230 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2231 |
needMatch ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2232 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2233 |
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
|
2234 |
methods source for the variables name ... |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2235 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2236 |
result := (src findString:varName) ~~ 0. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2237 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2238 |
result := true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2239 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2240 |
result ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2241 |
result := false. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2242 |
parser := Parser |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2243 |
parseMethod:src |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2244 |
in:c |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2245 |
ignoreErrors:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2246 |
ignoreWarnings:true. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2247 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2248 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2249 |
classVars ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2250 |
accessType == #read ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2251 |
vars := parser readInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2252 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2253 |
accessType == #write ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2254 |
vars := parser modifiedInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2255 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2256 |
vars := parser usedInstVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2257 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2258 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2259 |
] ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2260 |
accessType == #read ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2261 |
vars := parser readClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2262 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2263 |
accessType == #write ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2264 |
vars := parser modifiedClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2265 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2266 |
vars := parser usedClassVars |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2267 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2268 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2269 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2270 |
vars size > 0 ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2271 |
needMatch ifTrue:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2272 |
vars do:[:cv | |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2273 |
(varName match:cv) ifTrue:[result := true] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2274 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2275 |
] ifFalse:[ |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2276 |
result := vars includes:varName |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2277 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2278 |
] |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2279 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2280 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2281 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2282 |
Processor yield. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2283 |
result |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2284 |
]. |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2285 |
^ searchBlock |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2286 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2287 |
"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
|
2288 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2289 |
|
203 | 2290 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
2291 |
"return a searchblock for variable references" |
|
2292 |
||
2293 |
|searchBlock| |
|
53 | 2294 |
|
203 | 2295 |
searchBlock := [:c :m :s | |
504 | 2296 |
|src result parser vars needMatch| |
2297 |
||
2298 |
needMatch := varName includesMatchCharacters. |
|
36 | 2299 |
|
504 | 2300 |
src := m source. |
2301 |
src isNil ifTrue:[ |
|
2302 |
result := false |
|
2303 |
] ifFalse:[ |
|
2304 |
needMatch ifFalse:[ |
|
2305 |
" |
|
2306 |
before doing a slow parse, quickly scan the |
|
2307 |
methods source for the variables name ... |
|
2308 |
" |
|
2309 |
result := (src findString:varName) ~~ 0. |
|
2310 |
] ifTrue:[ |
|
2311 |
result := true. |
|
2312 |
]. |
|
2313 |
result ifTrue:[ |
|
2314 |
result := false. |
|
2315 |
parser := Parser |
|
2316 |
parseMethod:src |
|
2317 |
in:c |
|
2318 |
ignoreErrors:true |
|
2319 |
ignoreWarnings:true. |
|
36 | 2320 |
|
504 | 2321 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
2322 |
classVars ifFalse:[ |
|
2323 |
modsOnly ifTrue:[ |
|
2324 |
vars := parser modifiedInstVars |
|
2325 |
] ifFalse:[ |
|
2326 |
vars := parser usedInstVars |
|
2327 |
]. |
|
2328 |
] ifTrue:[ |
|
2329 |
modsOnly ifTrue:[ |
|
2330 |
vars := parser modifiedClassVars |
|
2331 |
] ifFalse:[ |
|
2332 |
vars := parser usedClassVars |
|
2333 |
]. |
|
2334 |
]. |
|
1190 | 2335 |
vars size > 0 ifTrue:[ |
504 | 2336 |
needMatch ifTrue:[ |
2337 |
vars do:[:cv | |
|
2338 |
(varName match:cv) ifTrue:[result := true] |
|
2339 |
] |
|
2340 |
] ifFalse:[ |
|
2341 |
result := vars includes:varName |
|
2342 |
] |
|
2343 |
] |
|
2344 |
]. |
|
2345 |
]. |
|
2346 |
]. |
|
2347 |
Processor yield. |
|
2348 |
result |
|
36 | 2349 |
]. |
203 | 2350 |
^ searchBlock |
504 | 2351 |
|
1190 | 2352 |
"Modified: 19.6.1997 / 18:27:57 / cg" |
2642 | 2353 |
! |
2354 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2355 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2356 |
"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
|
2357 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2358 |
^ 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
|
2359 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2360 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2361 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2362 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2363 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2364 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2365 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2366 |
"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
|
2367 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2368 |
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
|
2369 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2370 |
^ 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
|
2371 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2372 |
|
2677 | 2373 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 2374 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 2375 |
aString is referenced; |
2376 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2377 |
||
2378 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2379 |
! |
|
2380 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2381 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2382 |
"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
|
2383 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2384 |
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
|
2385 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2386 |
^ 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
|
2387 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2388 |
|
2728 | 2389 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
2390 |
"return all methods in aClass where the classVar named |
|
2391 |
aString is referenced; |
|
2392 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2393 |
||
2394 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
2395 |
! |
|
2396 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2397 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2398 |
"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
|
2399 |
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
|
2400 |
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
|
2401 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2402 |
^ 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
|
2403 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2404 |
|
2677 | 2405 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
2406 |
"return all methods in aClass and subclasses |
|
2407 |
where the classVar named aString is referenced; |
|
2408 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2409 |
||
2410 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
2411 |
||
2412 |
! |
|
2413 |
||
2642 | 2414 |
findImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
2415 |
"search for all implementors of aSelector in |
|
2416 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
2417 |
Return a collection of methods" |
|
2418 |
||
2419 |
|list sel srchST srchJava lcSelector| |
|
2420 |
||
2421 |
list := IdentitySet new. |
|
2422 |
||
2423 |
((aSelectorString ~= '*') and:[aSelectorString includesMatchCharacters]) ifTrue:[ |
|
2424 |
"a matchString" |
|
2425 |
||
2426 |
ignoreCase == true ifTrue:[ |
|
2427 |
lcSelector := aSelectorString asLowercase. |
|
2428 |
||
2429 |
srchST := [:aSelector :aMethod | |
|
2430 |
(lcSelector match:aSelector asLowercase) ifTrue:[ |
|
2431 |
list add:aMethod |
|
2432 |
] |
|
2433 |
]. |
|
2434 |
srchJava := [:aSelector :aMethod | |
|
2435 |
(aSelector match:aMethod name asLowercase) ifTrue:[ |
|
2436 |
list add:aMethod |
|
2437 |
] |
|
2438 |
]. |
|
2439 |
] ifFalse:[ |
|
2440 |
srchST := [:aSelector :aMethod | |
|
2441 |
(aSelectorString match:aSelector) ifTrue:[ |
|
2442 |
list add:aMethod |
|
2443 |
] |
|
2444 |
]. |
|
2445 |
srchJava := [:aSelector :aMethod | |
|
2446 |
(aSelectorString match:aMethod name) ifTrue:[ |
|
2447 |
list add:aMethod |
|
2448 |
] |
|
2449 |
]. |
|
2450 |
]. |
|
2451 |
] ifFalse:[ |
|
2452 |
"can do a faster search" |
|
2453 |
||
2454 |
sel := aSelectorString asSymbolIfInterned. |
|
2455 |
sel isNil ifTrue:[ |
|
2456 |
^ nil |
|
2457 |
]. |
|
2458 |
||
2459 |
ignoreCase == true ifTrue:[ |
|
2460 |
lcSelector := sel asLowercase. |
|
2461 |
srchJava := [:aSelector :aMethod | |
|
2462 |
"/ allow search for signature AND |
|
2463 |
"/ search for plain name |
|
2464 |
((aMethod name asLowercase = lcSelector) |
|
2465 |
or:[aSelector asLowercase = lcSelector]) ifTrue:[ |
|
2466 |
list add:aMethod |
|
2467 |
] |
|
2468 |
]. |
|
2469 |
srchST := [:aSelector :aMethod | |
|
2470 |
(aSelector asLowercase = lcSelector) ifTrue:[ |
|
2471 |
list add:aMethod |
|
2472 |
] |
|
2473 |
]. |
|
2474 |
] ifFalse:[ |
|
2475 |
srchJava := [:aSelector :aMethod | |
|
2476 |
"/ allow search for signature AND |
|
2477 |
"/ search for plain name |
|
2478 |
((aMethod name = sel) |
|
2479 |
or:[aSelector == sel]) ifTrue:[ |
|
2480 |
list add:aMethod |
|
2481 |
] |
|
2482 |
]. |
|
2483 |
srchST := [:aSelector :aMethod | |
|
2484 |
(aSelector == sel) ifTrue:[ |
|
2485 |
list add:aMethod |
|
2486 |
] |
|
2487 |
]. |
|
2488 |
]. |
|
2489 |
]. |
|
2490 |
||
2491 |
aCollectionOfClasses do:[:aClass | |
|
2492 |
|srchBlock| |
|
2493 |
||
2494 |
aClass isObsolete ifFalse:[ |
|
2495 |
aClass isJavaClass ifTrue:[ |
|
2496 |
srchBlock := srchJava |
|
2497 |
] ifFalse:[ |
|
2498 |
srchBlock := srchST |
|
2499 |
]. |
|
2500 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
|
2501 |
aClass isMeta ifFalse:[ |
|
2502 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
2503 |
] |
|
2504 |
] |
|
2505 |
]. |
|
2506 |
||
2507 |
^ list |
|
2508 |
||
2509 |
" |
|
2510 |
SystemBrowser findImplementorsOf:#+ |
|
2511 |
in:(Array with:Number |
|
2512 |
with:Float |
|
2513 |
with:SmallInteger) |
|
2514 |
" |
|
2515 |
||
2516 |
! |
|
2517 |
||
2811 | 2518 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
2519 |
"search for all implementors of any in aCollectionOfSelectors in |
|
2520 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
2521 |
Return a collection of methods. |
|
2522 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
2523 |
||
2524 |
|implementors| |
|
2525 |
||
2526 |
implementors := IdentitySet new. |
|
2527 |
aCollectionOfSelectors do:[:eachSelector | |
|
2528 |
implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
2529 |
]. |
|
2530 |
^ implementors |
|
2531 |
! |
|
2532 |
||
2741 | 2533 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
2534 |
"return all methods in aCollectionOfClasses where the instVar named |
|
2535 |
aString is referenced; |
|
2536 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2537 |
||
2538 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
2539 |
! |
|
2540 |
||
2677 | 2541 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 2542 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 2543 |
aString is referenced; if modsOnly is true, browse only methods where the |
2544 |
instvar is modified" |
|
2545 |
||
2546 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
2547 |
! |
|
2548 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2549 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2550 |
"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
|
2551 |
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
|
2552 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2553 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2554 |
^ 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
|
2555 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2556 |
|
2728 | 2557 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
2558 |
"return all methods in aClass where the instVar named |
|
2559 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
2560 |
instvar is modified" |
|
2561 |
||
2562 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
2563 |
! |
|
2564 |
||
2741 | 2565 |
findInstRefsTo:aString under:aClass access:accessType |
2566 |
"return all methods in aClass and subclasses |
|
2567 |
where the classVar named aString is referenced; |
|
2568 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
2569 |
||
2570 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
2571 |
! |
|
2572 |
||
2677 | 2573 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
2574 |
"return all methods in aClass and subclasses |
|
2575 |
where the instVar named aString is referenced; |
|
2576 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
2577 |
||
2578 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
2579 |
! |
|
2580 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2581 |
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
|
2582 |
"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
|
2583 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2584 |
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
|
2585 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2586 |
|filter| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2587 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2588 |
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
|
2589 |
^ 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
|
2590 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2591 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2592 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2593 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2594 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2595 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2596 |
modificationsOnly:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2597 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2598 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
2599 |
|
2677 | 2600 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
2601 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
2602 |
varName is referenced; |
|
2603 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
2604 |
||
2605 |
|filter| |
|
2606 |
||
2607 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2608 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
2609 |
||
2610 |
" |
|
2611 |
self |
|
2612 |
findRefsTo:'x' |
|
2613 |
classVars:false |
|
2614 |
in:(Array with:Point) |
|
2615 |
modificationsOnly:true |
|
2616 |
" |
|
2617 |
! |
|
2618 |
||
2692 | 2619 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
2620 |
"return a collection of all methods in aCollectionOfClasses |
|
2621 |
containing a resource." |
|
2622 |
||
2623 |
|searchBlock| |
|
2624 |
||
2625 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
2626 |
searchBlock := [:c :m :sel | |resources| |
|
2627 |
(resources := m resources) size > 0 |
|
2628 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
2629 |
]. |
|
2630 |
] ifFalse:[ |
|
2631 |
searchBlock := [:c :m :sel | |resources| |
|
2632 |
(resources := m resources) size > 0 |
|
2633 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
2634 |
]. |
|
2635 |
]. |
|
2636 |
||
2637 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
2638 |
||
2639 |
" |
|
2640 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
2641 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
2642 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
2643 |
" |
|
2644 |
! |
|
2645 |
||
2642 | 2646 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
2647 |
"search for all senders of aSelector in |
|
2648 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
2649 |
Return a collection of methods" |
|
2650 |
||
2651 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
|
2652 |
||
2653 |
" |
|
2654 |
SystemBrowser findSendersOf:#+ |
|
2655 |
in:(Array with:Number |
|
2656 |
with:Float |
|
2657 |
with:SmallInteger) |
|
2658 |
ignoreCase:false |
|
2659 |
" |
|
2660 |
||
2675 | 2661 |
! |
2662 |
||
2811 | 2663 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
2664 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
2665 |
the classes contained in aCollectionOfClasses and its metaclasses. |
|
2666 |
Return a collection of methods. |
|
2667 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
2668 |
||
2669 |
|allSenders| |
|
2670 |
||
2671 |
allSenders := IdentitySet new. |
|
2672 |
aCollectionOfSelectors do:[:eachSelector | |
|
2673 |
allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase) |
|
2674 |
]. |
|
2675 |
^ allSenders |
|
2676 |
||
2677 |
" |
|
2678 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
2679 |
in:(Array with:Number |
|
2680 |
with:Float |
|
2681 |
with:SmallInteger) |
|
2682 |
ignoreCase:false |
|
2683 |
" |
|
2684 |
! |
|
2685 |
||
2675 | 2686 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
2687 |
"return a colelction of all methods in aCollectionOfClasses |
|
2688 |
containing a string in their source. |
|
2689 |
This may be slow, since source-code has to be scanned." |
|
2690 |
||
2691 |
|browser searchBlock title s| |
|
2692 |
||
2693 |
(aString includesMatchCharacters |
|
2694 |
or:[ignoreCase]) ifTrue:[ |
|
2695 |
s := '*' , aString , '*'. |
|
2696 |
"a matchString" |
|
2697 |
searchBlock := [:c :m :sel | |
|
2698 |
|src| |
|
2699 |
src := m source. |
|
2700 |
src isNil ifTrue:[ |
|
2701 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
2702 |
false |
|
2703 |
] ifFalse:[ |
|
2704 |
s match:src ignoreCase:ignoreCase |
|
2705 |
] |
|
2706 |
] |
|
2707 |
] ifFalse:[ |
|
2708 |
searchBlock := [:c :m :sel | |
|
2709 |
|src| |
|
2710 |
||
2711 |
src := m source. |
|
2712 |
src isNil ifTrue:[ |
|
2713 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
2714 |
false |
|
2715 |
] ifFalse:[ |
|
2716 |
(src findString:aString) ~~ 0 |
|
2717 |
] |
|
2718 |
] |
|
2719 |
]. |
|
2720 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
2721 |
||
2722 |
" |
|
2723 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
2724 |
" |
|
203 | 2725 |
! ! |
2726 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2727 |
!SystemBrowser class methodsFor:'startup'! |
36 | 2728 |
|
203 | 2729 |
browseAllSelect:aBlock |
2730 |
"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
|
2731 |
The block is called with 3 arguments, class, method and selector." |
203 | 2732 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2733 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2734 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2735 |
title:'selected messages' |
36 | 2736 |
|
53 | 2737 |
" |
203 | 2738 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 2739 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2740 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2741 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 2742 |
! |
75 | 2743 |
|
203 | 2744 |
browseClass:aClass |
2745 |
"launch a browser for aClass" |
|
2746 |
||
2747 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2748 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2749 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2750 |
arg:aClass |
203 | 2751 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2752 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2753 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2754 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2755 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2756 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 2757 |
! |
2758 |
||
2759 |
browseClass:aClass methodCategory:aCategory |
|
2760 |
"launch a browser for all methods under aCategory in aClass" |
|
2761 |
||
2762 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2763 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 2764 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2765 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2766 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2767 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2768 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2769 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 2770 |
! |
2771 |
||
2772 |
browseClass:aClass selector:selector |
|
2773 |
"launch a browser for the method at selector in aClass" |
|
2774 |
||
2775 |
^ self |
|
2776 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
|
2777 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
2778 |
||
2779 |
" |
|
2780 |
SystemBrowser browseClass:Object selector:#printString |
|
2781 |
" |
|
36 | 2782 |
! |
2783 |
||
203 | 2784 |
browseClassCategory:aClassCategory |
2785 |
"launch a browser for all classes under aCategory" |
|
2786 |
||
2787 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2788 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2789 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2790 |
arg:aClassCategory |
203 | 2791 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2792 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2793 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2794 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2795 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2796 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 2797 |
! |
2798 |
||
2799 |
browseClassHierarchy:aClass |
|
2800 |
"launch a browser for aClass and all its superclasses. |
|
2801 |
this is different from the fullProtocol browser." |
|
36 | 2802 |
|
203 | 2803 |
^ self |
2804 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
|
2805 |
setupSelector:#setupForClassHierarchy: |
|
2806 |
arg:aClass |
|
2807 |
||
2808 |
" |
|
2809 |
SystemBrowser browseClassHierarchy:Number |
|
2810 |
" |
|
2811 |
! |
|
2812 |
||
2813 |
browseClasses:aList title:title |
|
2814 |
"launch a browser for all classes in aList" |
|
2815 |
||
2816 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2817 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2818 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 2819 |
|
2820 |
" |
|
2821 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2822 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2823 |
title:'two classes' |
203 | 2824 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2825 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2826 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2827 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2828 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2829 |
browseClasses:aList title:title sort:doSort |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2830 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2831 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2832 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2833 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2834 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2835 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2836 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2837 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2838 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2839 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2840 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2841 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
2842 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 2843 |
! |
2844 |
||
203 | 2845 |
browseFullClassProtocol:aClass |
2846 |
"launch a browser for aClasses full protocol. |
|
2847 |
This is different from hierarchy browsing." |
|
2848 |
||
2849 |
^ self |
|
2850 |
newWithLabel:(aClass name , '-' , 'full protocol') |
|
2851 |
setupSelector:#setupForFullClassProtocol: |
|
2852 |
arg:aClass |
|
2853 |
||
2854 |
" |
|
2855 |
SystemBrowser browseFullClassProtocol:Number |
|
2856 |
" |
|
2857 |
! |
|
36 | 2858 |
|
203 | 2859 |
browseFullClasses |
2860 |
"launch a browser showing all methods at once" |
|
2861 |
||
2862 |
^ self |
|
2863 |
newWithLabel:'Full Class Browser' |
|
2864 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 2865 |
|
203 | 2866 |
"SystemBrowser browseFullClasses" |
2867 |
! |
|
2868 |
||
2869 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
2870 |
"launch a browser for all instance methods in aClass and all subclasses |
|
2871 |
where aBlock evaluates to true" |
|
36 | 2872 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2873 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2874 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2875 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2876 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2877 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2878 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2879 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2880 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 2881 |
! |
2882 |
||
2883 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
2884 |
"launch a browser for all instance methods of all classes in |
|
2885 |
aCollectionOfClasses where aBlock evaluates to true" |
|
2886 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2887 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2888 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2889 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2890 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2891 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2892 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 2893 |
! |
36 | 2894 |
|
203 | 2895 |
browseInstMethodsOf:aClass where:aBlock title:title |
2896 |
"launch a browser for all instance methods in aClass |
|
2897 |
where aBlock evaluates to true" |
|
2898 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2899 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2900 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2901 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2902 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2903 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2904 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2905 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 2906 |
! |
2907 |
||
2908 |
browseMethodCategory:aCategory |
|
2909 |
"launch a browser for all methods where category = aCategory" |
|
2910 |
||
2911 |
|searchBlock| |
|
2912 |
||
2913 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2914 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 2915 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2916 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 2917 |
]. |
2918 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2919 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 2920 |
|
2921 |
" |
|
2922 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
2923 |
SystemBrowser browseMethodCategory:'print*' |
|
2924 |
" |
|
2925 |
! |
|
2926 |
||
2927 |
browseMethods:aList title:aString |
|
2928 |
"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
|
2929 |
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
|
2930 |
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
|
2931 |
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
|
2932 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2933 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2934 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2935 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2936 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2937 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2938 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2939 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2940 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2941 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2942 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2943 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2944 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2945 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2946 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2947 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2948 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2949 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2950 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2951 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2952 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2953 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2954 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2955 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2956 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2957 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2958 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2959 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2960 |
"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
|
2961 |
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
|
2962 |
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
|
2963 |
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
|
2964 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2965 |
|l| |
203 | 2966 |
|
2967 |
(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
|
2968 |
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
|
2969 |
^ nil |
203 | 2970 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2971 |
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
|
2972 |
l := l collect:[:entry | |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2973 |
|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
|
2974 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2975 |
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
|
2976 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2977 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2978 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2979 |
cls isNil ifTrue:[ |
1031 | 2980 |
'??? unbound' |
2981 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2982 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2983 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2984 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2985 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2986 |
]. |
2824 | 2987 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
2988 |
self halt. |
|
2989 |
]. |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2990 |
clsName |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2991 |
, ' ' |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
2992 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry)) |
1031 | 2993 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2994 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2995 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
2996 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
2997 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
2998 |
|
203 | 2999 |
^ 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
|
3000 |
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
|
3001 |
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
|
3002 |
arg:l |
53 | 3003 |
|
203 | 3004 |
" |
3005 |
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
|
3006 |
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
|
3007 |
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
|
3008 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
3009 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
3010 |
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
|
3011 |
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
|
3012 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
3013 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
3014 |
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
|
3015 |
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
|
3016 |
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
|
3017 |
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
|
3018 |
|
203 | 3019 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
3020 |
|
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
3021 |
"Modified: / 17.6.1996 / 17:07:46 / stefan" |
2826 | 3022 |
"Modified: / 17.10.1998 / 11:25:53 / cg" |
3023 |
! |
|
53 | 3024 |
|
203 | 3025 |
browseMethodsFrom:aClass where:aBlock title:title |
3026 |
"launch a browser for all instance- and classmethods in aClass |
|
3027 |
and all its subclasses where aBlock evaluates to true. |
|
3028 |
The block is called with 3 arguments, class, method and seelctor." |
|
3029 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3030 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3031 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3032 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3033 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3034 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3035 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 3036 |
! |
3037 |
||
3038 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
3039 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
3040 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
3041 |
where aBlock evaluates to true. |
|
270 | 3042 |
The block is called with 3 arguments, class, method and selector." |
203 | 3043 |
|
3044 |
|list| |
|
53 | 3045 |
|
3046 |
" |
|
203 | 3047 |
since this may take a long time, lower my priority ... |
53 | 3048 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
3049 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
3050 |
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
|
3051 |
do:[ |
2675 | 3052 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 3053 |
]. |
3054 |
^ self browseMethods:list title:title |
|
53 | 3055 |
! |
3056 |
||
203 | 3057 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
3058 |
"launch a browser for all instance- and classmethods from |
|
3059 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
3060 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 3061 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3062 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3063 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3064 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3065 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3066 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3067 |
title:title |
75 | 3068 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3069 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 3070 |
! |
3071 |
||
203 | 3072 |
browseMethodsOf:aClass where:aBlock title:title |
3073 |
"launch a browser for all instance- and classmethods in aClass |
|
3074 |
where aBlock evaluates to true. |
|
3075 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 3076 |
|
203 | 3077 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 3078 |
! |
3079 |
||
203 | 3080 |
browseMethodsWhere:aBlock title:title |
3081 |
"launch a browser for all methods where aBlock returns true. |
|
3082 |
The block is called with 3 arguments, class, method and seelctor." |
|
3083 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3084 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3085 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3086 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3087 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3088 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3089 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 3090 |
! |
3091 |
||
3092 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
|
3093 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
3094 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
3095 |
||
3096 |
|list checkedClasses checkBlock| |
|
3097 |
||
3098 |
checkedClasses := IdentitySet new. |
|
3099 |
list := OrderedCollection new. |
|
3100 |
||
3101 |
checkBlock := [:cls | |
|
3102 |
(checkedClasses includes:cls) ifFalse:[ |
|
3103 |
cls isObsolete ifTrue:[ |
|
2882 | 3104 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
2675 | 3105 |
] ifFalse:[ |
3106 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
|
3107 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
|
3108 |
list add:method "/ (cls name , ' ' , sel) |
|
3109 |
] |
|
3110 |
]. |
|
3111 |
checkedClasses add:cls. |
|
3112 |
] |
|
3113 |
] |
|
3114 |
]. |
|
3115 |
||
3116 |
aCollectionOfClasses do:[:aClass | |
|
3008 | 3117 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
2675 | 3118 |
" |
3119 |
output disabled - it slows down things too much (when searching for |
|
3120 |
implementors or senders) |
|
3121 |
" |
|
3122 |
wantInst ifTrue:[ |
|
3123 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
3124 |
checkBlock value:aClass |
|
3125 |
]. |
|
3126 |
wantClass ifTrue:[ |
|
3127 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
3128 |
checkBlock value:(aClass class) |
|
3129 |
]. |
|
3130 |
Processor yield |
|
3131 |
] |
|
3132 |
]. |
|
3133 |
^ list |
|
3134 |
! |
|
3135 |
||
3136 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
3137 |
"return all instance- and classmethods |
|
3138 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
3139 |
||
3140 |
^ self |
|
3141 |
findMethodsIn:aCollectionOfClasses |
|
3142 |
inst:true |
|
3143 |
class:true |
|
3144 |
where:aBlock |
|
203 | 3145 |
! ! |
93 | 3146 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3147 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 3148 |
|
3149 |
askThenBrowseClass |
|
3150 |
self getClassThenPerform:#browseClass: |
|
3151 |
||
3152 |
" |
|
3153 |
SystemBrowser askThenBrowseClass |
|
3154 |
" |
|
93 | 3155 |
! |
3156 |
||
203 | 3157 |
askThenBrowseClassHierarchy |
3158 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 3159 |
|
203 | 3160 |
" |
3161 |
SystemBrowser askThenBrowseClassHierarchy |
|
3162 |
" |
|
36 | 3163 |
! |
3164 |
||
203 | 3165 |
askThenBrowseFullClassProtocol |
3166 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 3167 |
|
203 | 3168 |
" |
3169 |
SystemBrowser askThenBrowseFullClassProtocol |
|
3170 |
" |
|
52 | 3171 |
! |
3172 |
||
203 | 3173 |
getClassThenPerform:aSelector |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3174 |
|enterBox resources| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3175 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3176 |
resources := self classResources. |
52 | 3177 |
|
203 | 3178 |
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
|
3179 |
enterBox okText:(resources at:'browse'). |
203 | 3180 |
enterBox entryCompletionBlock:[:contents | |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3181 |
|s what m| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3182 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3183 |
s := contents withoutSpaces. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3184 |
what := Smalltalk classnameCompletion:s. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3185 |
enterBox contents:what first. |
203 | 3186 |
]. |
3187 |
enterBox action:[:className | |
|
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3188 |
|cls| |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3189 |
|
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3190 |
cls := Smalltalk classNamed:className. |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3191 |
cls isNil ifTrue:[ |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3192 |
self warn:(resources at:'no such class'). |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3193 |
] ifFalse:[ |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3194 |
self perform:aSelector with:cls |
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
3195 |
] |
203 | 3196 |
]. |
3197 |
enterBox showAtPointer |
|
75 | 3198 |
|
203 | 3199 |
" |
3200 |
SystemBrowser getClassThenPerform:#browseClass: |
|
3201 |
" |
|
36 | 3202 |
! ! |
3203 |
||
2813 | 3204 |
!SystemBrowser class methodsFor:'utilities'! |
3205 |
||
3206 |
extractClassAndSelectorFrom:aString into:aBlock |
|
3207 |
"given a string which can be either 'class>>sel' or |
|
3208 |
'class sel', extract className and selector, and call aBlock with |
|
3209 |
the result. |
|
3210 |
Useful to open browser on a method as selected in some documentation." |
|
3211 |
||
3212 |
|sel clsName isMeta sep s| |
|
3213 |
||
3214 |
sel := aString. |
|
3215 |
sel notNil ifTrue:[ |
|
3216 |
sel := sel asString withoutSeparators. |
|
3217 |
('*>>*' match:sel) ifTrue:[ |
|
3218 |
sep := $> |
|
3219 |
] ifFalse:[ |
|
3220 |
('* *' match:sel) ifTrue:[ |
|
3221 |
sep := Character space |
|
3222 |
] |
|
3223 |
]. |
|
3224 |
sep notNil ifTrue:[ |
|
3225 |
" |
|
3226 |
extract class/sel from selection |
|
3227 |
" |
|
3228 |
s := ReadStream on:sel. |
|
3229 |
clsName := s upTo:sep. |
|
3230 |
[s peek == sep] whileTrue:[s next]. |
|
3231 |
sel := s upToEnd. |
|
3232 |
||
3233 |
(clsName endsWith:' class') ifTrue:[ |
|
3234 |
isMeta := true. |
|
3235 |
clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)" |
|
3236 |
] ifFalse:[ |
|
3237 |
isMeta := false |
|
3238 |
]. |
|
3239 |
] |
|
3240 |
]. |
|
3241 |
aBlock value:clsName value:sel value:isMeta |
|
3242 |
||
3243 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
3244 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
3245 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
3246 |
! |
|
3247 |
||
3248 |
extractSelectorFrom:aString |
|
3249 |
"given an arbitrary string, try to extract a useful selector. |
|
3250 |
Useful to open browser on a selected code fragment." |
|
3251 |
||
3252 |
|s sel t| |
|
3253 |
||
3254 |
aString isNil ifTrue:[^ nil]. |
|
3255 |
||
3256 |
s := aString asString string. |
|
3257 |
s := s withoutSeparators. |
|
3258 |
sel := s. |
|
3259 |
sel knownAsSymbol ifTrue:[ |
|
3260 |
"/ might be already correct ... |
|
3261 |
^ sel |
|
3262 |
]. |
|
3263 |
(sel startsWith:'#') ifTrue:[ |
|
3264 |
t := Symbol readFrom:sel. |
|
3265 |
t knownAsSymbol ifTrue:[ |
|
3266 |
^ t |
|
3267 |
] |
|
3268 |
]. |
|
3269 |
||
3270 |
t := Parser selectorInExpression:sel. |
|
3271 |
t notNil ifTrue:[ |
|
3272 |
sel := t |
|
3273 |
]. |
|
3274 |
(sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[ |
|
3275 |
"oops - thats probably not what we want here ..." |
|
3276 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
|
3277 |
sel := s |
|
3278 |
] |
|
3279 |
]. |
|
3280 |
^ sel |
|
3281 |
||
3282 |
" |
|
3283 |
self extractSelectorFrom:'at:put:' |
|
3284 |
self extractSelectorFrom:'#at:put:' |
|
3285 |
self extractSelectorFrom:'at:something put:someValue' |
|
3286 |
self extractSelectorFrom:'self at:something put:someValue' |
|
3287 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
3288 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
3289 |
self extractSelectorFrom:'Array>>at:put:' |
|
3290 |
" |
|
3291 |
||
3292 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
3293 |
"Modified: / 6.2.2000 / 00:57:08 / cg" |
|
3294 |
! ! |
|
3295 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3296 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 3297 |
|
203 | 3298 |
version |
3125 | 3299 |
^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.131 2001-09-07 17:12:01 cg Exp $' |
36 | 3300 |
! ! |
203 | 3301 |
SystemBrowser initialize! |