author | Claus Gittinger <cg@exept.de> |
Fri, 15 Jun 2018 04:00:37 +0200 | |
changeset 18220 | d1ebaddf1100 |
parent 18157 | f8144e0ca395 |
child 18283 | 2df6fdc3f068 |
permissions | -rw-r--r-- |
36 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
4158 | 3 |
All Rights Reserved |
36 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
13 |
|
15206 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
85 | 16 |
ApplicationModel subclass:#SystemBrowser |
4165 | 17 |
instanceVariableNames:'' |
18 |
classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory |
|
19 |
EmphasisForDifferentPackage EmphasisForModifiedBuffer |
|
20 |
EmphasisForObsoleteCode EmphasisForReadVariable |
|
11271 | 21 |
EmphasisForWrittenVariable EmphasisForChangedCode |
13028 | 22 |
LastSearchPatterns LastClassSearchBoxShowedFullName' |
4165 | 23 |
poolDictionaries:'' |
24 |
category:'Interface-Browsers' |
|
36 | 25 |
! |
26 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
27 |
Object subclass:#BrowserHistoryEntry |
4165 | 28 |
instanceVariableNames:'className meta selector' |
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
31 |
privateIn:SystemBrowser |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
32 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
33 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
34 |
!SystemBrowser class methodsFor:'documentation'! |
203 | 35 |
|
36 |
copyright |
|
37 |
" |
|
38 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
4158 | 39 |
All Rights Reserved |
203 | 40 |
|
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
" |
|
48 |
! |
|
49 |
||
50 |
documentation |
|
51 |
" |
|
8893 | 52 |
Notice: SystemBrowser has been completely rewritten to be an instance |
16016 | 53 |
of ApplicationModel. This rewritten version is found under Tools::NewSystemBrowser. |
8893 | 54 |
Because the class protocol here was used by many others, it is left here |
55 |
as an instance-less functionality provider only. |
|
203 | 56 |
|
57 |
written winter 89 by claus. |
|
58 |
||
508 | 59 |
[author:] |
60 |
Claus Gittinger |
|
61 |
||
203 | 62 |
" |
63 |
! ! |
|
64 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
65 |
!SystemBrowser class methodsFor:'initialization'! |
75 | 66 |
|
67 |
initialize |
|
68 |
"Browser configuration; |
|
69 |
(values can be changed from your private startup file)" |
|
45 | 70 |
|
254 | 71 |
"/ self classResources. |
85 | 72 |
|
75 | 73 |
" |
74 |
setting this to false, the removeClass function will remove |
|
75 |
classes WITHOUT checking for instances. Otherwise, |
|
76 |
it will check and let you confirm in case there are instances. |
|
77 |
Checking for instances may be a bit time consuming, though. |
|
78 |
The default is true - therefore, it will check |
|
79 |
" |
|
80 |
CheckForInstancesWhenRemovingClasses := true |
|
81 |
||
82 |
" |
|
83 |
CheckForInstancesWhenRemovingClasses := true |
|
84 |
CheckForInstancesWhenRemovingClasses := false |
|
85 |
||
85 | 86 |
SystemBrowser initialize |
75 | 87 |
" |
88 |
! ! |
|
36 | 89 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
90 |
!SystemBrowser class methodsFor:'instance creation'! |
52 | 91 |
|
75 | 92 |
open |
93 |
"launch a standard browser" |
|
94 |
||
2631 | 95 |
self == SystemBrowser ifFalse:[ |
96 |
^ super open |
|
97 |
]. |
|
98 |
||
105 | 99 |
^ self openOnDevice:(Screen current) |
75 | 100 |
|
93 | 101 |
" |
15831 | 102 |
SystemBrowser default open |
93 | 103 |
SystemBrowser open |
104 |
" |
|
194 | 105 |
! |
106 |
||
523 | 107 |
openInClass:aClass |
108 |
"launch a standard browser which immediately switches |
|
109 |
to aClass" |
|
110 |
||
111 |
^ self openInClass:aClass selector:nil |
|
112 |
||
113 |
" |
|
15831 | 114 |
SystemBrowser default openInClass:Object |
523 | 115 |
SystemBrowser openInClass:Object |
116 |
" |
|
117 |
||
118 |
"Created: 30.4.1996 / 14:43:45 / cg" |
|
119 |
! |
|
120 |
||
194 | 121 |
openInClass:aClass selector:aSelector |
122 |
"launch a standard browser which immediately switches |
|
18157 | 123 |
to aClass » aSelector. Returns the browser" |
194 | 124 |
|
3626 | 125 |
|brwsr classesName| |
194 | 126 |
|
127 |
brwsr := self openOnDevice:(Screen current). |
|
128 |
brwsr waitUntilVisible. |
|
1561 | 129 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
130 |
aClass notNil ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
131 |
"/ cls := aClass. |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
132 |
"/ cls isMeta ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
133 |
"/ cls := aClass soleInstance |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
134 |
"/ ]. |
1561 | 135 |
aClass isMeta ifTrue:[ |
136 |
brwsr instanceProtocol:false |
|
137 |
]. |
|
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
138 |
aClass isJavaClass ifTrue:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
139 |
classesName := aClass fullName. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
140 |
] ifFalse:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
141 |
classesName := aClass name. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
142 |
]. |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
143 |
brwsr switchToClassNamed:classesName. |
1681 | 144 |
brwsr classSelectionChanged. |
1561 | 145 |
aSelector notNil ifTrue:[ |
146 |
brwsr switchToMethodNamed:aSelector. |
|
147 |
] |
|
194 | 148 |
]. |
149 |
^ brwsr |
|
150 |
||
151 |
" |
|
152 |
SystemBrowser openInClass:Object selector:#at:put: |
|
153 |
SystemBrowser openInClass:Object selector:nil |
|
154 |
SystemBrowser openInClass:nil selector:nil |
|
155 |
" |
|
156 |
||
1561 | 157 |
"Created: / 22.11.1995 / 21:04:50 / cg" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
158 |
"Modified: / 5.11.2001 / 16:51:02 / cg" |
203 | 159 |
! |
160 |
||
3588 | 161 |
openOn:anEnvironment |
4921 | 162 |
^ self |
163 |
openOn:anEnvironment |
|
164 |
label:(self classResources string:'System Browser') |
|
3588 | 165 |
|
166 |
" |
|
15831 | 167 |
SystemBrowser default openOn:Smalltalk |
168 |
SystemBrowser default openOn:Demos |
|
169 |
||
3588 | 170 |
SystemBrowser openOn:Smalltalk |
3589 | 171 |
SystemBrowser openOn:Demos |
3588 | 172 |
" |
173 |
! |
|
174 |
||
4921 | 175 |
openOn:aClassEnvironment label:title |
176 |
^ self |
|
177 |
openOn:aClassEnvironment |
|
178 |
label:title |
|
179 |
onDevice:(Screen current) |
|
180 |
! |
|
181 |
||
182 |
openOn:aClassEnvironment label:title onDevice:aDisplayDevice |
|
183 |
|browser| |
|
184 |
||
185 |
browser := self |
|
186 |
newWithLabel:title |
|
187 |
setupBlock:[:browser | browser environment:aClassEnvironment. |
|
188 |
browser setupForAll] |
|
189 |
onDevice:aDisplayDevice. |
|
190 |
^ browser |
|
191 |
! |
|
192 |
||
203 | 193 |
openOnDevice:aDisplay |
194 |
"launch a standard browser on another display." |
|
195 |
||
2631 | 196 |
self == SystemBrowser ifFalse:[ |
197 |
^ super openOnDevice:aDisplay |
|
198 |
]. |
|
199 |
||
3519 | 200 |
^ self |
4921 | 201 |
openOn:Smalltalk |
202 |
label:(self classResources string:'System Browser') |
|
3519 | 203 |
onDevice:aDisplay |
203 | 204 |
|
205 |
"|d| |
|
206 |
||
207 |
d := XWorkstation new initializeFor:'porty:0'. |
|
208 |
d startDispatch. |
|
209 |
SystemBrowser openOnDevice:d |
|
210 |
" |
|
2818 | 211 |
! |
212 |
||
3573 | 213 |
openOnRemoteImageOnHost:aHostName port:portOrNil |
4921 | 214 |
|environment| |
3573 | 215 |
|
216 |
environment := RemoteImage onHost:aHostName port:portOrNil. |
|
4921 | 217 |
^ self |
218 |
openOn:environment |
|
219 |
label:(self classResources string:'RemoteImage Browser - %1' with:aHostName) |
|
3573 | 220 |
|
221 |
" |
|
222 |
SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil |
|
7998 | 223 |
SystemBrowser openOnRemoteImageOnHost:'192.168.8.1' port:nil |
3573 | 224 |
" |
225 |
! |
|
226 |
||
2818 | 227 |
openOnSnapShotImage:anImageFileName |
4921 | 228 |
|environment| |
2818 | 229 |
|
230 |
environment := SnapShotImage for:anImageFileName. |
|
4921 | 231 |
^ self |
232 |
openOn:environment |
|
233 |
label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName) |
|
2818 | 234 |
|
235 |
" |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
236 |
SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img') |
2824 | 237 |
" |
238 |
! ! |
|
36 | 239 |
|
4909 | 240 |
!SystemBrowser class methodsFor:'Compatibility-ST80'! |
1356 | 241 |
|
242 |
newOnClass:aClass |
|
243 |
^ self browseClass:aClass |
|
244 |
||
245 |
"Created: / 27.10.1997 / 20:10:39 / cg" |
|
246 |
! ! |
|
247 |
||
4909 | 248 |
!SystemBrowser class methodsFor:'accessing-history'! |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
249 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
250 |
addToHistory:aClass selector:aSelectorOrNil |
3679 | 251 |
|newEntry oldEntry classHistory| |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
252 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
253 |
(newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self]. |
3679 | 254 |
classHistory := self classHistory. |
255 |
||
10173
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
256 |
oldEntry := classHistory detect:[:entry | (entry className = newEntry className) |
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
257 |
"and:[entry selector = newEntry selector]"] ifNone:nil. |
3679 | 258 |
oldEntry notNil ifTrue:[ |
259 |
classHistory removeIdentical:oldEntry. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
260 |
]. |
3679 | 261 |
classHistory addFirst:newEntry. |
262 |
classHistory size > self visitedHistoryMaxSize ifTrue:[ |
|
263 |
classHistory removeLast |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
264 |
]. |
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
265 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
266 |
|
10173
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
267 |
"Modified: / 05-07-2011 / 16:49:57 / cg" |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
268 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
269 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
270 |
checkClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
271 |
"checks the class history for non-existing classes" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
272 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
273 |
"/ reverse, since we might modify while enumerating |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
274 |
self classHistory reverseDo:[:histEntry| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
275 |
(Smalltalk at: (histEntry className) asSymbol) isBehavior |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
276 |
ifFalse:[ |
10346
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
277 |
self classHistory removeIdentical: histEntry |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
278 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
279 |
] |
10346
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
280 |
|
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
281 |
"Modified: / 20-07-2011 / 11:59:22 / cg" |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
282 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
283 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
284 |
classHistory |
3679 | 285 |
ClassHistory isNil ifTrue:[ |
286 |
ClassHistory := List new |
|
287 |
]. |
|
288 |
^ ClassHistory |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
289 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
290 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
291 |
classHistory:newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
292 |
ClassHistory := newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
293 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
294 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
295 |
emptyClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
296 |
"removes all class history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
297 |
|
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
298 |
|classHistory| |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
299 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
300 |
classHistory := self classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
301 |
classHistory removeAll. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
302 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
303 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
304 |
"Modified: / 20-11-2006 / 12:29:42 / cg" |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
305 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
306 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
307 |
historyEntryForClass:aClass selector:aSelectorOrNil |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
308 |
|newEntry meta cls| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
309 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
310 |
aClass isBehavior ifFalse:[^ nil]. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
311 |
|
3151 | 312 |
(meta := aClass isMeta) ifTrue:[ |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
313 |
cls := aClass theNonMetaclass. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
314 |
] ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
315 |
cls := aClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
316 |
]. |
3151 | 317 |
newEntry := BrowserHistoryEntry new. |
318 |
newEntry |
|
319 |
className:cls name |
|
320 |
meta:meta |
|
321 |
selector:aSelectorOrNil. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
322 |
^ newEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
323 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
324 |
"Modified: / 24.2.2000 / 18:03:52 / cg" |
9189
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
325 |
! |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
326 |
|
11271 | 327 |
lastSearchPatterns |
328 |
^ LastSearchPatterns |
|
329 |
! |
|
330 |
||
331 |
rememberSearchPattern:aString |
|
332 |
LastSearchPatterns isNil ifTrue:[ |
|
333 |
LastSearchPatterns := OrderedCollection new. |
|
334 |
]. |
|
335 |
(LastSearchPatterns includes:aString) ifTrue:[ |
|
336 |
LastSearchPatterns remove:aString. |
|
337 |
] ifFalse:[ |
|
338 |
LastSearchPatterns size > 20 ifTrue:[ |
|
339 |
LastSearchPatterns removeFirst |
|
340 |
] |
|
341 |
]. |
|
342 |
LastSearchPatterns addFirst:aString. |
|
343 |
||
344 |
"Modified: / 24-11-2010 / 12:51:31 / cg" |
|
345 |
"Created: / 14-02-2012 / 14:00:24 / cg" |
|
346 |
! |
|
347 |
||
9189
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
348 |
visitedClassNamesHistory |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
349 |
^ self classHistory |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
350 |
collect:[:e | e className] |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
351 |
thenSelect:[:nm | nm notEmptyOrNil] |
13028 | 352 |
|
353 |
" |
|
354 |
Tools::NewSystemBrowser visitedClassNamesHistory |
|
355 |
" |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
356 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
357 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
358 |
!SystemBrowser class methodsFor:'defaults'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
359 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
360 |
classHistoryMaxLevels |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
361 |
^ 3 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
362 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
363 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
364 |
classHistoryMaxSize |
12954 | 365 |
"returns maximum size of the visited class history" |
366 |
||
367 |
Screen current height < 768 ifTrue:[ |
|
368 |
^ 15 |
|
369 |
]. |
|
370 |
^ 20 "/ 15 |
|
371 |
||
372 |
"Modified: / 10.2.2000 / 14:07:07 / cg" |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
373 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
374 |
|
15831 | 375 |
default |
376 |
"convenient getter for the user's preference. |
|
377 |
Returns his choice of browser class" |
|
378 |
||
15940 | 379 |
^ UserPreferences systemBrowserClass |
15831 | 380 |
|
381 |
" |
|
382 |
SystemBrowser default open |
|
383 |
" |
|
384 |
! |
|
385 |
||
16847 | 386 |
largeLabelFont |
387 |
^ Label defaultFont scaled:1.2. |
|
388 |
! |
|
389 |
||
3549 | 390 |
methodTemplate |
8877 | 391 |
"return a method definition template string or nil" |
392 |
||
393 |
^ SmalltalkLanguage instance methodTemplate |
|
3549 | 394 |
! |
395 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
396 |
visitedHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
397 |
"the maximum number of remembered visited-class-history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
398 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
399 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
400 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
401 |
|
4909 | 402 |
!SystemBrowser class methodsFor:'defaults-presentation'! |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
403 |
|
3352 | 404 |
emphasisForChangedCode |
4499 | 405 |
^ UserPreferences current emphasisForChangedCode. |
3352 | 406 |
|
407 |
" |
|
408 |
EmphasisForChangedCode := #underwave |
|
4112 | 409 |
EmphasisForChangedCode := #color->Color blue |
3352 | 410 |
EmphasisForChangedCode := #color->Color red lightened lightened lightened |
411 |
" |
|
412 |
||
413 |
"Created: / 31.10.2001 / 10:15:33 / cg" |
|
414 |
! |
|
415 |
||
416 |
emphasisForChangedCode:anEmphasis |
|
417 |
EmphasisForChangedCode := anEmphasis |
|
418 |
||
419 |
" |
|
420 |
self emphasisForChangedCode:#underwave |
|
421 |
self emphasisForChangedCode:(#color->Color red lightened lightened lightened) |
|
422 |
" |
|
423 |
||
424 |
"Created: / 31.10.2001 / 10:15:44 / cg" |
|
425 |
! |
|
426 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
427 |
emphasisForDifferentPackage |
4499 | 428 |
^ UserPreferences current emphasisForDifferentPackage. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
429 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
430 |
" |
3352 | 431 |
EmphasisForDifferentPackage := nil. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
432 |
EmphasisForDifferentPackage := #underwave |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
433 |
EmphasisForDifferentPackage := #color->Color red lightened lightened lightened |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
434 |
" |
3352 | 435 |
|
436 |
"Modified: / 31.10.2001 / 10:47:25 / cg" |
|
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
437 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
438 |
|
3241 | 439 |
emphasisForDifferentPackage:anEmphasis |
440 |
EmphasisForDifferentPackage := anEmphasis |
|
441 |
||
442 |
" |
|
443 |
self emphasisForDifferentPackage:#underwave |
|
444 |
self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened) |
|
445 |
" |
|
446 |
! |
|
447 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
448 |
emphasisForModifiedBuffer |
4499 | 449 |
^ UserPreferences current emphasisForModifiedBuffer. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
450 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
451 |
|
3241 | 452 |
emphasisForModifiedBuffer:anEmphasis |
453 |
EmphasisForModifiedBuffer := anEmphasis |
|
454 |
! |
|
455 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
456 |
emphasisForObsoleteCode |
4499 | 457 |
^ UserPreferences current emphasisForObsoleteCode. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
458 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
459 |
|
3241 | 460 |
emphasisForObsoleteCode:anEmphasis |
461 |
EmphasisForObsoleteCode := anEmphasis |
|
462 |
! |
|
463 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
464 |
emphasisForReadVariable |
4499 | 465 |
^ UserPreferences current emphasisForReadVariable. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
466 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
467 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
468 |
EmphasisForReadVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
469 |
EmphasisForReadVariable := Array with:#underline with:#underlineColor->Color yellow |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
470 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
471 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
472 |
|
3241 | 473 |
emphasisForReadVariable:anEmphasis |
474 |
EmphasisForReadVariable := anEmphasis |
|
475 |
||
476 |
" |
|
477 |
self emphasisForReadVariable:#underline |
|
478 |
self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow) |
|
479 |
" |
|
480 |
! |
|
481 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
482 |
emphasisForWrittenVariable |
4499 | 483 |
^ UserPreferences current emphasisForWrittenVariable. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
484 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
485 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
486 |
EmphasisForWrittenVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
487 |
EmphasisForWrittenVariable := Array with:#underline with:#underlineColor->Color red lightened |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
488 |
" |
3241 | 489 |
! |
490 |
||
491 |
emphasisForWrittenVariable:anEmphasis |
|
492 |
EmphasisForWrittenVariable := anEmphasis |
|
493 |
||
494 |
" |
|
495 |
self emphasisForWrittenVariable:#underline |
|
496 |
self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened) |
|
497 |
" |
|
6901 | 498 |
! |
499 |
||
500 |
iconForClass:aClass |
|
14103 | 501 |
"ask the class for its browser symbol; |
502 |
that's a key/selector in the ToolbarIconLibrary" |
|
6901 | 503 |
|
7827 | 504 |
aClass withAllSuperclassesDo:[:eachCls | |
15540 | 505 |
|icon iconSymbol | |
506 |
||
15565 | 507 |
icon := [ eachCls toolListIcon ] on:Error do:[]. |
15540 | 508 |
icon notNil ifTrue:[^ icon ]. |
7827 | 509 |
|
510 |
iconSymbol := eachCls iconInBrowserSymbol. |
|
511 |
iconSymbol notNil ifTrue:[ |
|
512 |
^ ToolbarIconLibrary perform:iconSymbol |
|
513 |
]. |
|
514 |
]. |
|
15944 | 515 |
(aClass isUtilityClass) ifTrue:[ |
516 |
^ ToolbarIconLibrary utilityClassIcon |
|
517 |
]. |
|
518 |
(aClass isAbstract) ifTrue:[ |
|
519 |
^ ToolbarIconLibrary abstractClassIcon |
|
520 |
]. |
|
7827 | 521 |
|
6901 | 522 |
^ nil |
523 |
||
524 |
"Created: / 17-08-2006 / 09:11:27 / cg" |
|
7827 | 525 |
"Modified: / 20-07-2007 / 09:01:43 / cg" |
6901 | 526 |
! |
527 |
||
528 |
resourceIconForMethod:aMethod |
|
529 |
|resources| |
|
530 |
||
531 |
(resources := aMethod resources) isNil ifTrue:[^ nil]. |
|
532 |
||
533 |
(resources includesKey:#obsolete) ifTrue:[ |
|
534 |
^ self deprecatedMethodIcon |
|
535 |
]. |
|
536 |
(resources includesKey:#canvas) ifTrue:[ |
|
537 |
^ self canvasIcon |
|
538 |
]. |
|
539 |
(resources includesKey:#menu) ifTrue:[ |
|
540 |
^ self menuIcon |
|
541 |
]. |
|
542 |
(resources includesKey:#image) ifTrue:[ |
|
543 |
^ self imageIcon |
|
544 |
]. |
|
545 |
(resources includesKey:#fileImage) ifTrue:[ |
|
546 |
^ self fileImageIcon |
|
547 |
]. |
|
548 |
(resources includesKey:#programImage) ifTrue:[ |
|
549 |
^ self programImageIcon |
|
550 |
]. |
|
551 |
(resources includesKey:#help) ifTrue:[ |
|
552 |
^ self helpIcon |
|
553 |
]. |
|
554 |
(resources includesKey:#programMenu) ifTrue:[ |
|
555 |
^ self programMenuIcon |
|
556 |
]. |
|
557 |
(resources includesKey:#tableColumns) ifTrue:[ |
|
558 |
^ self tableColumnsIcon |
|
559 |
]. |
|
560 |
(resources includesKey:#tabList) ifTrue:[ |
|
561 |
^ self tabListIcon |
|
562 |
]. |
|
563 |
(resources includesKey:#hierarchicalList) ifTrue:[ |
|
564 |
^ self hierarchicalListIcon |
|
565 |
]. |
|
566 |
(resources includesKey:#programImage) ifTrue:[ |
|
567 |
^ self programImageIcon |
|
568 |
]. |
|
569 |
^ nil |
|
570 |
||
571 |
"Created: / 17-08-2006 / 09:08:11 / cg" |
|
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
572 |
! ! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
573 |
|
8702 | 574 |
!SystemBrowser class methodsFor:'dialogs'! |
575 |
||
576 |
askForClassNameMatching:matchStringArg inEnvironment:anEnvironmentOrClassOrNil for:aBrowserOrNil |
|
577 |
"open a dialog to ask for a class name. |
|
578 |
env is either a nameSpace or a class (to ask for a private class)" |
|
579 |
||
580 |
|classNames caselessMatchingNames |
|
581 |
substringMatchingNames caselessSubstringMatchingNames |
|
582 |
caselessWithoutPrefixSubstringMatchingNames |
|
583 |
lcMatchString subMatch lcSubMatch box className |
|
584 |
needSearch cls env searchBlock searchBlock2 |
|
585 |
idx pref aMatchString allNames sortedBySpellingDistance msg resources| |
|
586 |
||
587 |
resources := self classResources. |
|
588 |
env := anEnvironmentOrClassOrNil ? Smalltalk. |
|
589 |
||
590 |
aMatchString := matchStringArg. |
|
591 |
||
592 |
"/ try to limit search to a namespace (but only if nameSpace is not a matchCharacter) |
|
593 |
||
594 |
(aMatchString includesString:'::') ifTrue:[ |
|
595 |
"/ pref := aMatchString upTo:$:. |
|
596 |
idx := aMatchString lastIndexOf:$:. |
|
597 |
pref := aMatchString copyTo:idx-2. |
|
598 |
pref includesMatchCharacters ifTrue:[ |
|
599 |
"/ search all in Smalltalk |
|
600 |
] ifFalse:[ |
|
601 |
cls := Smalltalk at:pref asSymbol ifAbsent:nil. |
|
602 |
(cls notNil and:[cls isBehavior]) ifTrue:[ |
|
603 |
env := cls. |
|
604 |
aMatchString := aMatchString copyFrom:pref size + 1 + 2. |
|
605 |
]. |
|
606 |
]. |
|
607 |
]. |
|
608 |
||
609 |
classNames := Set new. |
|
610 |
caselessMatchingNames := Set new. |
|
611 |
substringMatchingNames := Set new. |
|
612 |
caselessSubstringMatchingNames := Set new. |
|
613 |
caselessWithoutPrefixSubstringMatchingNames := Set new. |
|
614 |
||
615 |
lcMatchString := aMatchString asLowercase. |
|
616 |
needSearch := true. |
|
617 |
aMatchString includesMatchCharacters ifFalse:[ |
|
618 |
subMatch := '*' , aMatchString , '*'. |
|
619 |
lcSubMatch := subMatch asLowercase. |
|
620 |
||
621 |
"/ if the name is already a good one, avoid the expensive search |
|
622 |
className := aMatchString asSymbolIfInterned. |
|
623 |
className notNil ifTrue:[ |
|
624 |
env isNameSpace ifTrue:[ |
|
625 |
cls := env at:className ifAbsent:nil. |
|
626 |
] ifFalse:[ |
|
627 |
cls := env privateClassesAt:className. |
|
628 |
]. |
|
629 |
(cls notNil and:[cls isBehavior]) ifTrue:[ |
|
630 |
needSearch := false. |
|
631 |
] |
|
632 |
] |
|
633 |
]. |
|
634 |
||
635 |
needSearch ifTrue:[ |
|
636 |
searchBlock := [:aClass | |
|
637 |
|thisName| |
|
638 |
||
639 |
"/ use dotted names for java |
|
640 |
aClass isJavaClass ifTrue:[ |
|
641 |
thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$. |
|
642 |
] ifFalse:[ |
|
643 |
thisName := aClass name |
|
644 |
]. |
|
645 |
(lcMatchString match:aClass name asLowercase) ifTrue:[ |
|
646 |
caselessWithoutPrefixSubstringMatchingNames add:thisName |
|
647 |
]. |
|
648 |
aClass nameWithoutPrefix ~= aClass name ifTrue:[ |
|
649 |
(lcMatchString match:aClass nameWithoutPrefix asLowercase) ifTrue:[ |
|
650 |
caselessWithoutPrefixSubstringMatchingNames add:thisName |
|
651 |
]. |
|
652 |
]. |
|
653 |
||
654 |
(aMatchString match:thisName) ifTrue:[ |
|
655 |
classNames add:thisName |
|
656 |
] ifFalse:[ |
|
657 |
(lcMatchString match:thisName asLowercase) ifTrue:[ |
|
658 |
caselessMatchingNames add:thisName |
|
659 |
] ifFalse:[ |
|
660 |
subMatch notNil ifTrue:[ |
|
661 |
(subMatch match:thisName) ifTrue:[ |
|
662 |
substringMatchingNames add:thisName |
|
663 |
] ifFalse:[ |
|
664 |
(lcSubMatch match:thisName asLowercase) ifTrue:[ |
|
665 |
caselessSubstringMatchingNames add:thisName |
|
666 |
] |
|
667 |
] |
|
668 |
] |
|
669 |
] |
|
670 |
] |
|
671 |
]. |
|
672 |
||
673 |
(env == Smalltalk or:[env isNameSpace]) ifTrue:[ |
|
674 |
env allClassesDo:searchBlock |
|
675 |
] ifFalse:[ |
|
676 |
env allPrivateClasses do:searchBlock |
|
677 |
]. |
|
678 |
||
679 |
sortedBySpellingDistance := false. |
|
680 |
"/ if nothing matched - try caseless matches |
|
681 |
classNames size == 0 ifTrue:[ |
|
682 |
classNames := caselessMatchingNames. |
|
683 |
||
684 |
"/ if nothing matched - try substring matches |
|
685 |
classNames size == 0 ifTrue:[ |
|
8704 | 686 |
aMatchString isUppercaseFirst ifTrue:[ |
8702 | 687 |
classNames := substringMatchingNames. |
688 |
]. |
|
689 |
"/ if nothing matched - try caseless substring matches |
|
690 |
classNames size == 0 ifTrue:[ |
|
691 |
classNames := caselessSubstringMatchingNames. |
|
692 |
||
693 |
"/ if nothing matched - try best fitting |
|
694 |
classNames size == 0 ifTrue:[ |
|
695 |
aMatchString includesMatchCharacters ifFalse:[ |
|
696 |
allNames := SortedCollection sortBlock:[:a :b | a value > b value]. |
|
697 |
searchBlock2 := |
|
698 |
[:aClass | |
|
699 |
|thisName dist| |
|
700 |
||
701 |
aClass isJavaClass ifTrue:[ |
|
702 |
thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$. |
|
703 |
] ifFalse:[ |
|
704 |
thisName := aClass name |
|
705 |
]. |
|
706 |
dist := thisName asLowercase spellAgainst:lcMatchString. |
|
707 |
(thisName asLowercase startsWith:lcMatchString) ifTrue:[ |
|
708 |
dist := dist + (thisName size * 10). |
|
709 |
]. |
|
710 |
allNames add:(thisName -> dist). |
|
711 |
]. |
|
712 |
(env == Smalltalk or:[env isNameSpace]) ifTrue:[ |
|
713 |
env allClassesDo:searchBlock2 |
|
714 |
] ifFalse:[ |
|
715 |
env allPrivateClasses do:searchBlock2 |
|
716 |
]. |
|
717 |
classNames := (allNames copyTo:(allNames size min:40)) collect:[:each | each key]. |
|
718 |
sortedBySpellingDistance := true. |
|
719 |
] |
|
720 |
] |
|
721 |
] |
|
722 |
] |
|
723 |
]. |
|
724 |
||
725 |
(classNames size == 0) ifTrue:[^ nil]. |
|
726 |
(classNames size == 1) ifTrue:[ |
|
727 |
className := classNames first |
|
728 |
] ifFalse:[ |
|
729 |
|browseButton| |
|
730 |
||
731 |
sortedBySpellingDistance ifFalse:[ |
|
732 |
classNames := classNames asArray sort. |
|
733 |
]. |
|
734 |
||
735 |
aMatchString includesMatchCharacters ifTrue:[ |
|
18149 | 736 |
msg := 'Class names matching or similar to "%1"\\Select or enter name of class to switch to:' |
8702 | 737 |
] ifFalse:[ |
18149 | 738 |
msg := 'Class names containing or similar to "%1"\\Select or enter name of class to switch to:' |
8702 | 739 |
]. |
740 |
||
741 |
box := self listBoxTitle:(resources string:msg with:matchStringArg) withCRs |
|
742 |
okText:'OK' |
|
743 |
list:classNames. |
|
744 |
caselessWithoutPrefixSubstringMatchingNames notEmpty ifTrue:[ |
|
745 |
box initialText:(caselessWithoutPrefixSubstringMatchingNames first). |
|
746 |
]. |
|
747 |
box action:[:aString | className := aString]. |
|
748 |
||
749 |
browseButton := Button label:(resources string:'Browse All'). |
|
750 |
browseButton action:[ |
|
751 |
|classes title| |
|
752 |
||
18149 | 753 |
title := resources string:'Class Names Matching or Similar to "%1"' with:matchStringArg. |
8702 | 754 |
classes := classNames collect:[:nm | Smalltalk classNamed:nm]. |
755 |
aBrowserOrNil isNil ifTrue:[ |
|
756 |
SystemBrowser |
|
757 |
browseClasses:classes |
|
758 |
label:title. |
|
759 |
] ifFalse:[ |
|
760 |
aBrowserOrNil |
|
761 |
spawnClassBrowserFor:classes |
|
762 |
label:title |
|
763 |
in:#newBrowser |
|
764 |
select:false. |
|
765 |
]. |
|
13365 | 766 |
box hide. |
767 |
box closeRequest |
|
8702 | 768 |
]. |
769 |
box addButton:browseButton before:box okButton. |
|
14502 | 770 |
|
771 |
aMatchString isLowercaseFirst ifTrue:[ |
|
772 |
|browseImplementorsButton| |
|
773 |
||
774 |
browseImplementorsButton := Button label:(resources string:'Implementors'). |
|
775 |
browseImplementorsButton |
|
776 |
action:[ |
|
777 |
aBrowserOrNil isNil ifTrue:[ |
|
778 |
SystemBrowser browseImplementorsMatching:aMatchString |
|
779 |
] ifFalse:[ |
|
780 |
aBrowserOrNil |
|
781 |
spawnMethodImplementorsBrowserFor:{ aMatchString } match:true in:#newBrowser. |
|
782 |
]. |
|
783 |
box hide. |
|
784 |
box closeRequest |
|
785 |
]. |
|
786 |
box addButton:browseImplementorsButton before:box okButton. |
|
787 |
]. |
|
788 |
||
9157
c8166dbf5a5a
changed: #askForClassNameMatching:inEnvironment:for:
Claus Gittinger <cg@exept.de>
parents:
9065
diff
changeset
|
789 |
box minExtent:300@250. |
8702 | 790 |
|
791 |
box open. |
|
792 |
(box accepted not or:[className isNil]) ifTrue:[ "/ cancel |
|
793 |
^ nil |
|
794 |
] |
|
795 |
]. |
|
796 |
]. |
|
797 |
||
798 |
className notNil ifTrue:[ |
|
799 |
"/ use slashed javaName for search. |
|
14653 | 800 |
className := className copyReplaceAll:$. with:$/ ifNone:className. |
8702 | 801 |
]. |
802 |
||
803 |
"/ pref notNil ifTrue:[ |
|
804 |
"/ ^ pref , '::' , className |
|
805 |
"/ ]. |
|
806 |
^ className |
|
807 |
||
808 |
"Modified: / 16-10-2006 / 11:36:20 / cg" |
|
18149 | 809 |
"Modified: / 24-05-2018 / 08:49:02 / Claus Gittinger" |
8702 | 810 |
! |
811 |
||
812 |
listBoxTitle:title okText:okText list:aList |
|
813 |
"convenient method: setup a listBox & return it" |
|
814 |
||
815 |
|box resources| |
|
816 |
||
817 |
resources := self classResources. |
|
818 |
||
819 |
box := ListSelectionBox |
|
820 |
title:(resources string:title) |
|
821 |
okText:(resources string:okText) |
|
822 |
action:nil. |
|
823 |
box list:aList. |
|
824 |
^ box |
|
13365 | 825 |
|
826 |
" |
|
827 |
(self listBoxTitle:'hello world' okText:'aaa' list:#(1 2 3 4)) open |
|
828 |
" |
|
8702 | 829 |
! ! |
830 |
||
2692 | 831 |
!SystemBrowser class methodsFor:'image specs'! |
832 |
||
2748 | 833 |
abstractMethodIcon |
834 |
<resource: #programImage> |
|
835 |
||
836 |
^ self padLockGrayMiniIcon |
|
837 |
! |
|
838 |
||
3813 | 839 |
addBreakPointIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
840 |
<resource: #image> |
3813 | 841 |
"This resource specification was automatically generated |
842 |
by the ImageEditor of ST/X." |
|
843 |
"Do not manually edit this!! If it is corrupted, |
|
844 |
the ImageEditor may not be able to read the specification." |
|
845 |
" |
|
846 |
self addBreakPointIcon inspect |
|
847 |
ImageEditor openOnClass:self andSelector:#addBreakPointIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
848 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
849 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
850 |
^ Icon constantNamed:'SystemBrowser class addBreakPointIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
851 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
852 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
853 |
width:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
854 |
height:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
855 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
856 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
857 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
858 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
859 |
fromPackedString:'@@@@@@@@@8@C @N@@8@A@@@@@P@C @D@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
860 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
861 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
862 |
width:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
863 |
height:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
864 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
865 |
fromPackedString:'@@@O8A?0O?!!??G?<_?1??G?<_?1??C?8G?@O8@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
866 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
867 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
868 |
] |
3813 | 869 |
! |
870 |
||
871 |
addBreakPointIcon2 |
|
6115 | 872 |
^ XPToolbarIconLibrary addBreakPointIcon2 |
3813 | 873 |
! |
874 |
||
4341 | 875 |
autoloadedClassIcon |
7827 | 876 |
<resource: #programImage> |
877 |
||
878 |
^ ToolbarIconLibrary autoloadedClassBrowserIcon |
|
879 |
||
880 |
"Modified: / 20-07-2007 / 09:15:37 / cg" |
|
4341 | 881 |
! |
882 |
||
12040 | 883 |
breakPointedIcon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
884 |
<resource: #obsolete> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
885 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
886 |
^ self lineBreakPointedIcon |
12504 | 887 |
"/ ^ self breakPointedIcon2 |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
888 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
889 |
"Modified: / 05-03-2014 / 10:26:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12504 | 890 |
! |
891 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
892 |
canvasIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
893 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
894 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
895 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
896 |
"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
|
897 |
the ImageEditor may not be able to read the specification." |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
898 |
" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
899 |
ImageEditor openOnClass:self andSelector:#canvasIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
900 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
901 |
^ Icon constantNamed:'SystemBrowser class canvasIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
902 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
903 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
904 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
905 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
906 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
907 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
908 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
909 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
910 |
fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;/C.;/@@9&XP9&XP@NY&DNY&D@C&Y!!C&Y!!@@9&XP9&XP@NY&DNY&D@C1DQC1DQ@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
911 |
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 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
912 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
913 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
914 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
915 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
916 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
917 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
918 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
919 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
920 |
|
4143 | 921 |
containerClassIcon |
7827 | 922 |
<resource: #programImage> |
923 |
||
924 |
^ ToolbarIconLibrary containerClassBrowserIcon |
|
925 |
||
926 |
"Modified: / 20-07-2007 / 09:14:54 / cg" |
|
4143 | 927 |
! |
928 |
||
2692 | 929 |
defaultIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
930 |
<resource: #image> |
2692 | 931 |
"This resource specification was automatically generated |
932 |
by the ImageEditor of ST/X." |
|
933 |
"Do not manually edit this!! If it is corrupted, |
|
934 |
the ImageEditor may not be able to read the specification." |
|
935 |
" |
|
936 |
self defaultIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
937 |
ImageEditor openOnClass:self andSelector:#defaultIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
938 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
939 |
^ Icon constantNamed:'SystemBrowser class defaultIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
940 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
941 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
942 |
width:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
943 |
height:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
944 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
945 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
946 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
947 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
948 |
fromPackedString:' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
949 |
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@ |
3794 | 950 |
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H" |
951 |
H @@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFUUUUUUH@@@@@@@@@@@L"H"H"H @@@@@@ |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
952 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
953 |
@@@@@@@@@@@@@@@@@@@@@@@@H@@@@@@@@@H@@ @@@@Hb'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
954 |
colorMapFromArray:#[ 0 0 0 0 255 0 127 127 127 170 170 170 255 0 0 255 255 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
955 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
956 |
width:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
957 |
height:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
958 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
959 |
fromPackedString:' |
3794 | 960 |
??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@@@@@ O?8@\C?>@G??? A0O?8@HC?>@B@@@@@ O?8@\C?>@G??? A0O?8@@C?>@@@@@@9O\7\IRT |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
961 |
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
962 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
963 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
964 |
] |
2846 | 965 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
966 |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
967 |
deprecatedMethodIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
968 |
^ self doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
969 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
970 |
|
16893 | 971 |
disabledBreakpointIcon |
972 |
<resource: #programImage> |
|
973 |
||
974 |
^ ToolbarIconLibrary breakpointDisabled9x9 |
|
975 |
! |
|
976 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
977 |
doNotEnterIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
978 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
979 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
980 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
981 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
982 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
983 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
984 |
self doNotEnterIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
985 |
ImageEditor openOnClass:self andSelector:#doNotEnterIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
986 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
987 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
988 |
^ Icon constantNamed:'SystemBrowser class doNotEnterIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
989 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
990 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
991 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
992 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
993 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
994 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
995 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
996 |
bits:(ByteArray fromPackedString:'??C0<NA00CB@EY>P''9B@DL@08GC0<@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
997 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
998 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
999 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1000 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1001 |
bits:(ByteArray fromPackedString:'@@@O@A>@O<A?8G? _>A?8C?@G8@O@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1002 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1003 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1004 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1005 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1006 |
|
3354 | 1007 |
emptyIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1008 |
<resource: #image> |
3354 | 1009 |
"This resource specification was automatically generated |
1010 |
by the ImageEditor of ST/X." |
|
1011 |
"Do not manually edit this!! If it is corrupted, |
|
1012 |
the ImageEditor may not be able to read the specification." |
|
1013 |
" |
|
1014 |
self emptyIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1015 |
ImageEditor openOnClass:self andSelector:#emptyIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1016 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1017 |
^ Icon constantNamed:'SystemBrowser class emptyIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1018 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1019 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1020 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1021 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1022 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1023 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1024 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1025 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1026 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1027 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1028 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1029 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1030 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1031 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1032 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1033 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1034 |
] |
3354 | 1035 |
|
1036 |
"Created: / 5.11.2001 / 09:39:54 / cg" |
|
1037 |
! |
|
1038 |
||
4143 | 1039 |
errorClassIcon |
7827 | 1040 |
<resource: #programImage> |
1041 |
||
1042 |
^ ToolbarIconLibrary errorClassBrowserIcon |
|
1043 |
||
1044 |
"Modified: / 20-07-2007 / 09:14:06 / cg" |
|
4143 | 1045 |
! |
1046 |
||
1047 |
exceptionClassIcon |
|
1048 |
"This resource specification was automatically generated |
|
1049 |
by the ImageEditor of ST/X." |
|
1050 |
||
1051 |
"Do not manually edit this!! If it is corrupted, |
|
1052 |
the ImageEditor may not be able to read the specification." |
|
1053 |
||
1054 |
" |
|
1055 |
self exceptionClassIcon inspect |
|
1056 |
ImageEditor openOnClass:self andSelector:#exceptionClassIcon |
|
1057 |
Icon flushCachedIcons |
|
1058 |
" |
|
1059 |
||
7827 | 1060 |
<resource: #programImage> |
1061 |
||
1062 |
^ ToolbarIconLibrary exceptionClassBrowserIcon |
|
1063 |
||
1064 |
"Modified: / 20-07-2007 / 09:13:18 / cg" |
|
4143 | 1065 |
! |
1066 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1067 |
fileImageIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1068 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1069 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1070 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1071 |
"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
|
1072 |
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
|
1073 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1074 |
self fileImageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1075 |
ImageEditor openOnClass:self andSelector:#fileImageIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1076 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1077 |
^ Icon constantNamed:'SystemBrowser class fileImageIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1078 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1079 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1080 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1081 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1082 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1083 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1084 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1085 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1086 |
fromPackedString:'@@@@@@@@@@H"H"H"@@@BQBH!!D"@@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1087 |
colorMapFromArray:#[ 0 0 0 51 153 153 51 255 255 255 153 0 255 255 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1088 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1089 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1090 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1091 |
bits:(ByteArray fromPackedString:'?<C?8O?0??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1092 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1093 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1094 |
] |
2846 | 1095 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1096 |
|
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1097 |
fullBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1098 |
<resource: #programImage> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1099 |
|
15305 | 1100 |
^ ToolbarIconLibrary fullBreakPoint9x9Icon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1101 |
"/ ^ self fullBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1102 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1103 |
"Created: / 05-03-2014 / 10:27:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1104 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1105 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1106 |
fullBreakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1107 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1108 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1109 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1110 |
"Do not manually edit this!! If it is corrupted, |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1111 |
the ImageEditor may not be able to read the specification." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1112 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1113 |
self stopIcon1 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1114 |
ImageEditor openOnClass:self andSelector:#stopIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1115 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1116 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1117 |
^ Icon constantNamed:'SystemBrowser stopIcon1' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1118 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1119 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1120 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1121 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1122 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1123 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1124 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1125 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1126 |
fromPackedString:'DQH"H!!DQDAD!!DAD!!DQ@RDP@AD!!DPHQD@@QD!!DBDQ@@DQHQ@!!DQ@QDRDZHQDQDQD!!FBDQDADQHQ@RDP@AD!!DPDRDPDRDQDADRH"HQDQ@b'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1127 |
colorMapFromArray:#[ 255 255 255 255 0 0 128 0 0 ]; |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1128 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1129 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1130 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1131 |
bits:(ByteArray fromPackedString:'G0@? G?@?>C?8O? ?>C?8G?@O8@_@@@a'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1132 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1133 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1134 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1135 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1136 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1137 |
fullBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1138 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1139 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1140 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1141 |
"Do not manually edit this!! If it is corrupted, |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1142 |
the ImageEditor may not be able to read the specification." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1143 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1144 |
self stopIcon2 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1145 |
ImageEditor openOnClass:self andSelector:#stopIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1146 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1147 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1148 |
^ Icon constantNamed:'SystemBrowser stopIcon2' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1149 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1150 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1151 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1152 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1153 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1154 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1155 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1156 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1157 |
fromPackedString:'DQH"H!!DQDAD!!DQD!!DQ@RDQDQD!!DPHQDQDQD!!DBDSL3LQHQ@!!D@@@DRDZHQL3L1D!!FBDQDQDQHQ@RDQDQD!!DPDRDQDRDQDADRH"HQDQ@b'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1158 |
colorMapFromArray:#[ 255 255 255 255 0 0 128 0 0 255 163 163 ]; |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1159 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1160 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1161 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1162 |
bits:(ByteArray fromPackedString:'G0@? G?@?>C?8O? ?>C?8G?@O8@_@@@a'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1163 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1164 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1165 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1166 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1167 |
|
4166 | 1168 |
greenCheckIcon |
1169 |
"This resource specification was automatically generated |
|
1170 |
by the ImageEditor of ST/X." |
|
18157 | 1171 |
|
4166 | 1172 |
"Do not manually edit this!! If it is corrupted, |
1173 |
the ImageEditor may not be able to read the specification." |
|
18157 | 1174 |
|
4166 | 1175 |
" |
1176 |
self greenCheckIcon inspect |
|
1177 |
ImageEditor openOnClass:self andSelector:#greenCheckIcon |
|
18157 | 1178 |
Icon flushCachedIcons |
1179 |
" |
|
1180 |
||
1181 |
<resource: #image> |
|
1182 |
||
1183 |
^Icon |
|
1184 |
constantNamed:'SystemBrowser class greenCheckIcon' |
|
1185 |
ifAbsentPut:[(Depth2Image width:13 height:11) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@J@@@@FP@@@BP@@FA$@@A($@@@F)@@@@Y@@@@A@@@@@@@@@b') |
|
1186 |
colorMapFromArray:#[0 0 0 126 190 126 0 127 0] |
|
1187 |
mask:((ImageMask width:13 height:11) bits:(ByteArray fromPackedString:'@@@@@@C@@\@A CN@N0@_@@8@A@@@@@@a'); yourself); yourself] |
|
4166 | 1188 |
! |
1189 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1190 |
greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1191 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1192 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1193 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1194 |
"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
|
1195 |
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
|
1196 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1197 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1198 |
self greenLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1199 |
ImageEditor openOnClass:self andSelector:#greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1200 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1201 |
|
3354 | 1202 |
<resource: #programImage> |
1203 |
||
2892 | 1204 |
^ self padLockGreenMiniIcon |
3354 | 1205 |
|
1206 |
"Modified: / 5.11.2001 / 09:40:12 / cg" |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1207 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1208 |
|
4165 | 1209 |
greenThumbUpIcon |
10327 | 1210 |
^ ToolbarIconLibrary greenThumbUpIcon |
1211 |
||
1212 |
"Modified: / 17-07-2011 / 10:03:34 / cg" |
|
4165 | 1213 |
! |
1214 |
||
4166 | 1215 |
greenThumbUpSmallIcon |
10327 | 1216 |
^ ToolbarIconLibrary greenThumbUpSmallIcon |
1217 |
||
1218 |
"Modified: / 17-07-2011 / 10:03:43 / cg" |
|
4166 | 1219 |
! |
1220 |
||
1221 |
greyCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1222 |
<resource: #image> |
4166 | 1223 |
"This resource specification was automatically generated |
1224 |
by the ImageEditor of ST/X." |
|
1225 |
"Do not manually edit this!! If it is corrupted, |
|
1226 |
the ImageEditor may not be able to read the specification." |
|
1227 |
" |
|
1228 |
self greyCheckIcon inspect |
|
1229 |
ImageEditor openOnClass:self andSelector:#greyCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1230 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1231 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1232 |
^ Icon constantNamed:'SystemBrowser class greyCheckIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1233 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1234 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1235 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1236 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1237 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1238 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1239 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1240 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1241 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1242 |
colorMapFromArray:#[ 0 0 0 255 255 255 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1243 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1244 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1245 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1246 |
bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1247 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1248 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1249 |
] |
4166 | 1250 |
! |
1251 |
||
4165 | 1252 |
greyThumbUpIcon |
10327 | 1253 |
^ ToolbarIconLibrary greyThumbUpIcon |
1254 |
||
1255 |
"Modified: / 17-07-2011 / 10:04:06 / cg" |
|
4165 | 1256 |
! |
1257 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1258 |
helpIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1259 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1260 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1261 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1262 |
"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
|
1263 |
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
|
1264 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1265 |
self helpIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1266 |
ImageEditor openOnClass:self andSelector:#helpIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1267 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1268 |
^ Icon constantNamed:'SystemBrowser class helpIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1269 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1270 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1271 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1272 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1273 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1274 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1275 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1276 |
bits:(ByteArray fromPackedString:'@@A?<G#0]7A?\G;0__A?<G72_?@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1277 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1278 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1279 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1280 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1281 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1282 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1283 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1284 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1285 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1286 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1287 |
hierarchicalListIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1288 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1289 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1290 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1291 |
"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
|
1292 |
the ImageEditor may not be able to read the specification." |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1293 |
" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1294 |
ImageEditor openOnClass:self andSelector:#hierarchicalListIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1295 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1296 |
^ Icon constantNamed:'SystemBrowser class hierarchicalListIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1297 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1298 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1299 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1300 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1301 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1302 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1303 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1304 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1305 |
fromPackedString:'@@@@NAUUU0@R??8@GO?>@A0@C @\??88G@@N@A3?? @^@@8@N***@@@@@C b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1306 |
colorMapFromArray:#[ 0 0 0 255 255 255 127 127 127 170 170 170 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1307 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1308 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1309 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1310 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1311 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1312 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1313 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1314 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1315 |
|
5997 | 1316 |
ignoredMethodIcon |
1317 |
<resource: #programImage> |
|
1318 |
||
1319 |
^ self padLockBlackMiniIcon |
|
1320 |
! |
|
1321 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1322 |
imageIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1323 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1324 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1325 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1326 |
"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
|
1327 |
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
|
1328 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1329 |
self imageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1330 |
ImageEditor openOnClass:self andSelector:#imageIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1331 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1332 |
^ Icon constantNamed:'SystemBrowser class imageIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1333 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1334 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1335 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1336 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1337 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1338 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1339 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1340 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1341 |
fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1342 |
colorMapFromArray:#[ 0 0 0 51 153 153 51 255 255 255 153 0 255 255 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1343 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1344 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1345 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1346 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1347 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1348 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1349 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1350 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1351 |
|
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1352 |
instVarOverlayXmlSpec |
14390
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1353 |
<resource: #image> |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1354 |
"This resource specification was automatically generated |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1355 |
by the ImageEditor of ST/X." |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1356 |
"Do not manually edit this!! If it is corrupted, |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1357 |
the ImageEditor may not be able to read the specification." |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1358 |
" |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1359 |
self instVarOverlayXmlSpec inspect |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1360 |
ImageEditor openOnClass:self andSelector:#instVarOverlayXmlSpec |
14390
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1361 |
Icon flushCachedIcons" |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1362 |
|
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1363 |
^ Icon constantNamed:'SystemBrowser class instVarOverlayXmlSpec' |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1364 |
ifAbsentPut:[ |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1365 |
(Depth2Image new) |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1366 |
width:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1367 |
height:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1368 |
photometric:(#palette); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1369 |
bitsPerSample:(#[ 2 ]); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1370 |
samplesPerPixel:(1); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1371 |
bits:(ByteArray |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1372 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BDP@@BID@@@"Q@@@BDP@@@@@@@@@@@@@@@@@@@a'); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1373 |
colorMapFromArray:#[ 0 0 0 84 84 84 170 170 170 255 255 255 ]; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1374 |
mask:((ImageMask new) |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1375 |
width:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1376 |
height:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1377 |
bits:(ByteArray |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1378 |
fromPackedString:' |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1379 |
@@@@@@@@@@@@@@@@BA@XFC@L[>[O8<=#[7X0CA XBA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1380 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
14390
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1381 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1382 |
yourself); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1383 |
yourself |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1384 |
] |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1385 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1386 |
|
7992 | 1387 |
instrumentationIcon |
1388 |
<resource: #programImage> |
|
1389 |
||
1390 |
^ ToolbarIconLibrary pipette16x16Icon |
|
1391 |
! |
|
1392 |
||
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1393 |
lineBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1394 |
<resource: #programImage> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1395 |
|
15305 | 1396 |
^ ToolbarIconLibrary lineBreakPoint9x9Icon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1397 |
"/ ^ self lineBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1398 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1399 |
"Created: / 05-03-2014 / 10:20:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1400 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1401 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1402 |
lineBreakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1403 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1404 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1405 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1406 |
"Do not manually edit this!! If it is corrupted, |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1407 |
the ImageEditor may not be able to read the specification." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1408 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1409 |
self breakPointedIcon1 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1410 |
ImageEditor openOnClass:self andSelector:#breakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1411 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1412 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1413 |
^ Icon constantNamed:'SystemBrowser breakPointedIcon1' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1414 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1415 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1416 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1417 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1418 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1419 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1420 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1421 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1422 |
fromPackedString:'@@@@@@@@@P@@L3@@@@$@L@@@L@@H@@@C@@@@APL@DQ@C@@@C@1DS@0@B@0@QD@L@@@@@@0@@@@@@L@@@L@@@@@@3L@@@@ @@@@@@@@ b'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1423 |
colorMapFromArray:#[ 255 0 0 255 255 255 0 0 0 255 199 199 ]; |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1424 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1425 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1426 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1427 |
bits:(ByteArray fromPackedString:'@@@N@C>@O8A?0G?@_<@? C>@C @@@@@a'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1428 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1429 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1430 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1431 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1432 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1433 |
lineBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1434 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1435 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1436 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1437 |
"Do not manually edit this!! If it is corrupted, |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1438 |
the ImageEditor may not be able to read the specification." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1439 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1440 |
self breakPointedIcon2 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1441 |
ImageEditor openOnClass:self andSelector:#breakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1442 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1443 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1444 |
^ Icon constantNamed:'SystemBrowser breakPointedIcon2' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1445 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1446 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1447 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1448 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1449 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1450 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1451 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1452 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1453 |
fromPackedString:'DQH"H!!DQDAD!!DQD!!DQ@RDQDQD!!DPHQDQDQD!!DBDQDQDQHQ@!!DQDQDRDZHQDQDQD!!FBDQDQDQHQ@RDQDQD!!DPDRDQDRDQDADRH"HQDQ@b'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1454 |
colorMapFromArray:#[ 255 255 255 255 0 0 128 0 0 ]; |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1455 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1456 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1457 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1458 |
bits:(ByteArray fromPackedString:'G0@? G?@?>C?8O? ?>C?8G?@O8@_@@@a'); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1459 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1460 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1461 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1462 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1463 |
|
16027 | 1464 |
lineTracePointedIcon |
1465 |
<resource: #programImage> |
|
1466 |
||
1467 |
^ ToolbarIconLibrary lineTracePoint9x9Icon |
|
1468 |
! |
|
1469 |
||
3675 | 1470 |
medium_methodEmptyInheritedIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1471 |
<resource: #image> |
3675 | 1472 |
"This resource specification was automatically generated |
1473 |
by the ImageEditor of ST/X." |
|
1474 |
"Do not manually edit this!! If it is corrupted, |
|
1475 |
the ImageEditor may not be able to read the specification." |
|
1476 |
" |
|
1477 |
self medium_methodEmptyInheritedIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1478 |
ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1479 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1480 |
^ Icon |
7968 | 1481 |
constantNamed:'SystemBrowser class medium_methodEmptyInheritedIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1482 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1483 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1484 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1485 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1486 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1487 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1488 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1489 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1490 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1491 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1492 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1493 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1494 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1495 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1496 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1497 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1498 |
] |
3675 | 1499 |
! |
1500 |
||
1501 |
medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1502 |
<resource: #image> |
3675 | 1503 |
"This resource specification was automatically generated |
1504 |
by the ImageEditor of ST/X." |
|
1505 |
"Do not manually edit this!! If it is corrupted, |
|
1506 |
the ImageEditor may not be able to read the specification." |
|
1507 |
" |
|
1508 |
self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1509 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1510 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1511 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1512 |
^ Icon |
7968 | 1513 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1514 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1515 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1516 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1517 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1518 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1519 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1520 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1521 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1522 |
fromPackedString:'@@@@@@@@@B()@B(@A@ @A@ @A@ (EP@HEP@@@@@@@@@@'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1523 |
colorMapFromArray:#[ 0 0 0 255 255 127 255 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1524 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1525 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1526 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1527 |
bits:(ByteArray fromPackedString:'@@@/ B>@K8A7@G\@]0C:@O(@> @@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1528 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1529 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1530 |
] |
3675 | 1531 |
! |
1532 |
||
1533 |
medium_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1534 |
<resource: #image> |
3675 | 1535 |
"This resource specification was automatically generated |
1536 |
by the ImageEditor of ST/X." |
|
1537 |
"Do not manually edit this!! If it is corrupted, |
|
1538 |
the ImageEditor may not be able to read the specification." |
|
1539 |
" |
|
1540 |
self medium_methodInheritedFromAboveIcon inspect |
|
1541 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1542 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1543 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1544 |
^ Icon |
7968 | 1545 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1546 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1547 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1548 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1549 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1550 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1551 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1552 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1553 |
bits:(ByteArray fromPackedString:'@@@@@@@A@@@ @B@@HA=0LG@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1554 |
colorMapFromArray:#[ 0 0 0 255 255 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1555 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1556 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1557 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1558 |
bits:(ByteArray fromPackedString:'@@@ @B@@H@A0@G@@\@C8@O @>@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1559 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1560 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1561 |
] |
3675 | 1562 |
! |
1563 |
||
1564 |
medium_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1565 |
<resource: #image> |
3675 | 1566 |
"This resource specification was automatically generated |
1567 |
by the ImageEditor of ST/X." |
|
1568 |
"Do not manually edit this!! If it is corrupted, |
|
1569 |
the ImageEditor may not be able to read the specification." |
|
1570 |
" |
|
1571 |
self medium_methodRedefinedBelowIcon inspect |
|
1572 |
ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1573 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1574 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1575 |
^ Icon |
7968 | 1576 |
constantNamed:'SystemBrowser class medium_methodRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1577 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1578 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1579 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1580 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1581 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1582 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1583 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1584 |
bits:(ByteArray fromPackedString:'@ED@L@\@A0@B@@H@@"8@P@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1585 |
colorMapFromArray:#[ 0 0 0 255 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1586 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1587 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1588 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1589 |
bits:(ByteArray fromPackedString:'@@@O @>@C8@G@@\@A0@B@@H@@ @@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1590 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1591 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1592 |
] |
3675 | 1593 |
! |
1594 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1595 |
menuIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1596 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1597 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1598 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1599 |
"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
|
1600 |
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
|
1601 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1602 |
self menuIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1603 |
ImageEditor openOnClass:self andSelector:#menuIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1604 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1605 |
^ Icon constantNamed:'SystemBrowser class menuIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1606 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1607 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1608 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1609 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1610 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1611 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1612 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1613 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1614 |
fromPackedString:'@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1615 |
colorMapFromArray:#[ 0 0 0 170 170 170 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1616 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1617 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1618 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1619 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1620 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1621 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1622 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1623 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1624 |
|
3675 | 1625 |
methodEmptyInheritedIcon |
1626 |
^ self small_methodEmptyInheritedIcon |
|
1627 |
! |
|
1628 |
||
1629 |
methodInheritedFromAboveAndRedefinedBelowIcon |
|
1630 |
^ self small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1631 |
! |
|
1632 |
||
1633 |
methodInheritedFromAboveIcon |
|
1634 |
^ self small_methodInheritedFromAboveIcon |
|
1635 |
! |
|
1636 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1637 |
methodIsSubclassResponsibilityAndRedefinedBelowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1638 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1639 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1640 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1641 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1642 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1643 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1644 |
self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1645 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1646 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1647 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1648 |
^ Icon |
7968 | 1649 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1650 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1651 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1652 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1653 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1654 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1655 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1656 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1657 |
bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@@4UBHR@A@@"@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1658 |
colorMapFromArray:#[ 0 0 0 255 127 127 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1659 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1660 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1661 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1662 |
bits:(ByteArray fromPackedString:'<HC DO@@>O#8\G@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1663 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1664 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1665 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1666 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1667 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1668 |
methodIsSubclassResponsibilityIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1669 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1670 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1671 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1672 |
"Do not manually edit this!! If it is corrupted, |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1673 |
the ImageEditor may not be able to read the specification." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1674 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1675 |
self methodIsSubclassResponsibilityIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1676 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1677 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1678 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1679 |
^ Icon |
7968 | 1680 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1681 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1682 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1683 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1684 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1685 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1686 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1687 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1688 |
bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@ 4@B@H@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1689 |
colorMapFromArray:#[ 0 0 0 255 127 127 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1690 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1691 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1692 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1693 |
bits:(ByteArray fromPackedString:'<HC DO@@<IC0(I@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1694 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1695 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1696 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1697 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1698 |
|
3675 | 1699 |
methodRedefinedBelowIcon |
1700 |
^ self small_methodRedefinedBelowIcon |
|
1701 |
! |
|
1702 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1703 |
nameSpaceIcon |
7827 | 1704 |
<resource: #programImage> |
1705 |
||
1706 |
^ ToolbarIconLibrary nameSpaceBrowserIcon |
|
1707 |
||
1708 |
"Modified: / 20-07-2007 / 09:12:26 / cg" |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1709 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1710 |
|
4308 | 1711 |
notificationClassIcon |
7827 | 1712 |
<resource: #programImage> |
1713 |
||
1714 |
^ ToolbarIconLibrary notificationClassBrowserIcon |
|
1715 |
||
1716 |
"Modified: / 20-07-2007 / 09:11:21 / cg" |
|
4308 | 1717 |
! |
1718 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1719 |
packageIcon |
8853 | 1720 |
<resource: #programImage> |
1721 |
||
1722 |
^ ToolbarIconLibrary smallYellowPackageIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1723 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1724 |
|
6954 | 1725 |
packageIconGraySmall |
8853 | 1726 |
<resource: #programImage> |
1727 |
||
1728 |
^ ToolbarIconLibrary smallGrayPackageIcon |
|
6954 | 1729 |
! |
1730 |
||
6925 | 1731 |
packageIconGreenSmall |
8853 | 1732 |
<resource: #programImage> |
1733 |
||
1734 |
^ ToolbarIconLibrary smallGreenPackageIcon |
|
6925 | 1735 |
! |
1736 |
||
1737 |
packageIconOrangeSmall |
|
8853 | 1738 |
<resource: #programImage> |
1739 |
||
1740 |
^ ToolbarIconLibrary smallOrangePackageIcon |
|
6925 | 1741 |
! |
1742 |
||
6901 | 1743 |
packageIconSmall |
8853 | 1744 |
<resource: #programImage> |
1745 |
||
1746 |
^ ToolbarIconLibrary smallYellowPackageIcon |
|
6901 | 1747 |
! |
1748 |
||
5997 | 1749 |
padLockBlackMiniIcon |
6333 | 1750 |
<resource: #programImage> |
1751 |
||
1752 |
^ XPToolbarIconLibrary padLockBlackMiniIcon |
|
5997 | 1753 |
! |
1754 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1755 |
padLockBlueMiniIcon |
6333 | 1756 |
<resource: #programImage> |
1757 |
||
1758 |
^ XPToolbarIconLibrary padLockBlueMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1759 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1760 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1761 |
padLockGrayMiniIcon |
6333 | 1762 |
<resource: #programImage> |
1763 |
||
1764 |
^ GenericToolbarIconLibrary padLockGrayMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1765 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1766 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1767 |
padLockGreenMiniIcon |
6333 | 1768 |
<resource: #programImage> |
1769 |
||
1770 |
^ GenericToolbarIconLibrary padLockGreenMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1771 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1772 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1773 |
padLockRedMiniIcon |
6333 | 1774 |
<resource: #programImage> |
1775 |
||
1776 |
^ GenericToolbarIconLibrary padLockRedMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1777 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1778 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1779 |
privateMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1780 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1781 |
|
2748 | 1782 |
^ self padLockRedMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1783 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1784 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1785 |
programImageIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1786 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1787 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1788 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1789 |
"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
|
1790 |
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
|
1791 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1792 |
self programImageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1793 |
ImageEditor openOnClass:self andSelector:#programImageIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1794 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1795 |
^ Icon constantNamed:#'SystemBrowser class programImageIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1796 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1797 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1798 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1799 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1800 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1801 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1802 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1803 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1804 |
fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1805 |
colorMapFromArray:#[ 0 0 0 25 77 77 51 255 255 128 128 0 128 77 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1806 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1807 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1808 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1809 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1810 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1811 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1812 |
] |
2846 | 1813 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1814 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1815 |
programMenuIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1816 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1817 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1818 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1819 |
"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
|
1820 |
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
|
1821 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1822 |
self programMenuIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1823 |
ImageEditor openOnClass:self andSelector:#programMenuIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1824 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1825 |
^ Icon constantNamed:#'SystemBrowser class programMenuIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1826 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1827 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1828 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1829 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1830 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1831 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1832 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1833 |
bits:(ByteArray fromPackedString:'@@A?<G?0@@A?<G?0@@A?<G?3@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1834 |
colorMapFromArray:#[ 0 0 0 170 170 170 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1835 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1836 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1837 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1838 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1839 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1840 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1841 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1842 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1843 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1844 |
protectedMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1845 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1846 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1847 |
^ self padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1848 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1849 |
|
4308 | 1850 |
queryClassIcon |
7827 | 1851 |
<resource: #programImage> |
1852 |
||
1853 |
^ ToolbarIconLibrary queryClassBrowserIcon |
|
1854 |
||
1855 |
"Modified: / 20-07-2007 / 09:10:32 / cg" |
|
4308 | 1856 |
! |
1857 |
||
4166 | 1858 |
redCheckIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1859 |
<resource: #image> |
4166 | 1860 |
"This resource specification was automatically generated |
1861 |
by the ImageEditor of ST/X." |
|
1862 |
"Do not manually edit this!! If it is corrupted, |
|
1863 |
the ImageEditor may not be able to read the specification." |
|
1864 |
" |
|
1865 |
self redCheckIcon inspect |
|
1866 |
ImageEditor openOnClass:self andSelector:#redCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1867 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1868 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1869 |
^ Icon constantNamed:#'SystemBrowser class redCheckIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1870 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1871 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1872 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1873 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1874 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1875 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1876 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1877 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1878 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@"@@@@@@@BH@@@@ @@H @@@BH @"@@@@@BH"H @@@@@BH"@@@@@@@BH @@@@@@@B@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1879 |
colorMapFromArray:#[ 0 0 0 255 255 255 255 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1880 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1881 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1882 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1883 |
bits:(ByteArray fromPackedString:'@@@@@@A @L@!! GL@O0@^@@8@A@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1884 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1885 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1886 |
] |
4166 | 1887 |
! |
1888 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1889 |
redLockIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1890 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1891 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1892 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1893 |
"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
|
1894 |
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
|
1895 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1896 |
self redLockIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1897 |
ImageEditor openOnClass:self andSelector:#redLockIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1898 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1899 |
^ Icon constantNamed:#'SystemBrowser class redLockIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1900 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1901 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1902 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1903 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1904 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1905 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1906 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1907 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1908 |
fromPackedString:'@T@@AA@@AA@@EUP@EUP@EQP@EQP@EQP@EAP@AU@@@@@@'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1909 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1910 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1911 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1912 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1913 |
bits:(ByteArray fromPackedString:'F@@$@BP@_ A>@G8@_ A>@G8@O@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1914 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1915 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1916 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1917 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1918 |
|
4165 | 1919 |
redThumbDownIcon |
10327 | 1920 |
^ ToolbarIconLibrary redThumbDownIcon |
1921 |
||
1922 |
"Modified: / 17-07-2011 / 10:04:37 / cg" |
|
4165 | 1923 |
! |
1924 |
||
4166 | 1925 |
redThumbDownSmallIcon |
10327 | 1926 |
^ ToolbarIconLibrary redThumbDownSmallIcon |
1927 |
||
1928 |
"Modified: / 17-07-2011 / 10:05:09 / cg" |
|
4166 | 1929 |
! |
1930 |
||
3813 | 1931 |
removeBreakPointIcon2 |
15362 | 1932 |
UserPreferences current useColorsForColorBlindness ifTrue:[ |
1933 |
^ ToolbarIconLibrary removeBreakPointBlueIcon2 |
|
1934 |
]. |
|
1935 |
^ ToolbarIconLibrary removeBreakPointIcon2 |
|
3813 | 1936 |
! |
1937 |
||
3675 | 1938 |
small_methodEmptyInheritedIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1939 |
<resource: #image> |
3675 | 1940 |
"This resource specification was automatically generated |
1941 |
by the ImageEditor of ST/X." |
|
1942 |
"Do not manually edit this!! If it is corrupted, |
|
1943 |
the ImageEditor may not be able to read the specification." |
|
1944 |
" |
|
1945 |
self small_methodEmptyInheritedIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1946 |
ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1947 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1948 |
^ Icon |
3675 | 1949 |
constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1950 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1951 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1952 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1953 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1954 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1955 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1956 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1957 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1958 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1959 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1960 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1961 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1962 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1963 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1964 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1965 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1966 |
] |
3675 | 1967 |
! |
1968 |
||
1969 |
small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1970 |
<resource: #image> |
3675 | 1971 |
"This resource specification was automatically generated |
1972 |
by the ImageEditor of ST/X." |
|
1973 |
"Do not manually edit this!! If it is corrupted, |
|
1974 |
the ImageEditor may not be able to read the specification." |
|
1975 |
" |
|
1976 |
self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1977 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1978 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1979 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1980 |
^ Icon |
3675 | 1981 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1982 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1983 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1984 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1985 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1986 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1987 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1988 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1989 |
bits:(ByteArray fromPackedString:'L1@DLLS,ES@@@@@0@@@*@L#@B@@3@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1990 |
colorMapFromArray:#[ 0 0 0 255 255 127 255 127 127 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1991 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1992 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1993 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1994 |
bits:(ByteArray fromPackedString:'\GC8>O @>O#8\G@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1995 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1996 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1997 |
] |
3675 | 1998 |
! |
1999 |
||
2000 |
small_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2001 |
<resource: #image> |
3675 | 2002 |
"This resource specification was automatically generated |
2003 |
by the ImageEditor of ST/X." |
|
2004 |
"Do not manually edit this!! If it is corrupted, |
|
2005 |
the ImageEditor may not be able to read the specification." |
|
2006 |
" |
|
2007 |
self small_methodInheritedFromAboveIcon inspect |
|
2008 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2009 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2010 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2011 |
^ Icon |
3675 | 2012 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2013 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2014 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2015 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2016 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2017 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2018 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2019 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2020 |
bits:(ByteArray fromPackedString:'H#HDLHR@EP@@@@@@@BD@IP@!!@B@@IP@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2021 |
colorMapFromArray:#[ 0 0 0 255 255 127 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2022 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2023 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2024 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2025 |
bits:(ByteArray fromPackedString:'\GC8>O @@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2026 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2027 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2028 |
] |
3675 | 2029 |
! |
2030 |
||
2031 |
small_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2032 |
<resource: #image> |
3675 | 2033 |
"This resource specification was automatically generated |
2034 |
by the ImageEditor of ST/X." |
|
2035 |
"Do not manually edit this!! If it is corrupted, |
|
2036 |
the ImageEditor may not be able to read the specification." |
|
2037 |
" |
|
2038 |
self small_methodRedefinedBelowIcon inspect |
|
2039 |
ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2040 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2041 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2042 |
^ Icon |
3675 | 2043 |
constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2044 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2045 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2046 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2047 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2048 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2049 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2050 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2051 |
bits:(ByteArray fromPackedString:'@@D@@@@@@@@@@@@@@@4UBHR@A@@"@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2052 |
colorMapFromArray:#[ 0 0 0 255 127 127 127 127 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2053 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2054 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2055 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2056 |
bits:(ByteArray fromPackedString:'@@@@@@@@>O#8\G@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2057 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2058 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2059 |
] |
3675 | 2060 |
! |
2061 |
||
3354 | 2062 |
startableClassIcon |
7827 | 2063 |
<resource: #programImage> |
2064 |
||
2065 |
^ ToolbarIconLibrary startableClassBrowserIcon |
|
2066 |
||
2067 |
"Created: / 05-11-2001 / 09:50:16 / cg" |
|
2068 |
"Modified: / 20-07-2007 / 09:09:40 / cg" |
|
3354 | 2069 |
! |
2070 |
||
2071 |
startableVisualAppIcon |
|
7827 | 2072 |
<resource: #programImage> |
2073 |
||
2074 |
^ ToolbarIconLibrary visualStartableClassBrowserIcon |
|
2075 |
||
2076 |
"Created: / 05-11-2001 / 09:49:00 / cg" |
|
2077 |
"Modified: / 20-07-2007 / 09:08:34 / cg" |
|
3354 | 2078 |
! |
2079 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2080 |
stopIcon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2081 |
<resource: #obsolete> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2082 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2083 |
^ self fullBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2084 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2085 |
"Modified: / 05-03-2014 / 10:27:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2086 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2087 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2088 |
tabListIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2089 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2090 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2091 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2092 |
"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
|
2093 |
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
|
2094 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2095 |
self tabListIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2096 |
ImageEditor openOnClass:self andSelector:#tabListIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2097 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2098 |
^ Icon constantNamed:#'SystemBrowser class tabListIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2099 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2100 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2101 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2102 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2103 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2104 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2105 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2106 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2107 |
fromPackedString:'@@@@D3!!QP@@8TT@@N@@J@C***P@:**$AN**)@C***P@:**$@IUUUB @@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2108 |
colorMapFromArray:#[ 0 0 0 127 127 127 170 170 170 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2109 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2110 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2111 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2112 |
bits:(ByteArray fromPackedString:'?8C?0O?0??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2113 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2114 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2115 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2116 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2117 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2118 |
tableColumnsIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2119 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2120 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2121 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2122 |
"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
|
2123 |
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
|
2124 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2125 |
self tableColumnsIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2126 |
ImageEditor openOnClass:self andSelector:#tableColumnsIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2127 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2128 |
^ Icon constantNamed:#'SystemBrowser class tableColumnsIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2129 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2130 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2131 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2132 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2133 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2134 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2135 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2136 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2137 |
fromPackedString:'@@@@@C??? @8(($@L@@AHC"""R@0@@D@NJJI@C@@@P@8(($@IUUU@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2138 |
colorMapFromArray:#[ 0 0 0 127 127 127 170 170 170 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2139 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2140 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2141 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2142 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2143 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2144 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2145 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2146 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2147 |
|
4150 | 2148 |
testCaseClassIcon |
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2149 |
<resource: #programImage> |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2150 |
|
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2151 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2152 |
^ ToolbarIconLibrary testCaseClassIcon |
4150 | 2153 |
! |
2154 |
||
2155 |
testCaseClassIconFor:cls |
|
4167 | 2156 |
<resource: #programImage> |
2157 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2158 |
"/ decision moved to TestCase - see there. |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2159 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2160 |
|
4150 | 2161 |
|lastResult| |
2162 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2163 |
lastResult := cls lastTestRunResultOrNil. |
12729 | 2164 |
lastResult notNil ifTrue:[ |
2165 |
lastResult == TestResult statePass ifTrue:[ |
|
2166 |
^ self testCasePassedIcon |
|
2167 |
]. |
|
2168 |
lastResult == TestResult stateFail ifTrue:[ |
|
2169 |
^ self testCaseFailedIcon |
|
2170 |
]. |
|
2171 |
lastResult == TestResult stateError ifTrue:[ |
|
2172 |
^ self testCaseErrorIcon |
|
2173 |
]. |
|
4150 | 2174 |
]. |
2175 |
^ self testCaseUnknownResultIcon |
|
6848 | 2176 |
|
2177 |
"Modified: / 06-08-2006 / 11:14:12 / cg" |
|
4150 | 2178 |
! |
2179 |
||
12729 | 2180 |
testCaseErrorIcon |
2181 |
<resource: #programImage> |
|
2182 |
||
2183 |
"/ only left here for backward compatibility... |
|
2184 |
^ ToolbarIconLibrary testCaseErrorIcon |
|
2185 |
! |
|
2186 |
||
4150 | 2187 |
testCaseFailedIcon |
4166 | 2188 |
<resource: #programImage> |
2189 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2190 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2191 |
^ ToolbarIconLibrary testCaseFailedIcon |
4150 | 2192 |
! |
2193 |
||
2194 |
testCasePassedIcon |
|
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2195 |
<resource: #programImage> |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2196 |
|
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2197 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2198 |
^ ToolbarIconLibrary testCasePassedIcon |
4150 | 2199 |
! |
2200 |
||
12631 | 2201 |
testCaseSkippedIcon |
2202 |
<resource: #programImage> |
|
2203 |
||
2204 |
"/ only left here for backward compatibility... |
|
2205 |
^ ToolbarIconLibrary testCaseSkippedIcon |
|
2206 |
! |
|
2207 |
||
4150 | 2208 |
testCaseUnknownResultIcon |
4166 | 2209 |
<resource: #programImage> |
2210 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2211 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2212 |
^ ToolbarIconLibrary testCaseClassIcon |
4150 | 2213 |
! |
2214 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2215 |
timeIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2216 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2217 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2218 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2219 |
"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
|
2220 |
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
|
2221 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2222 |
self timeIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2223 |
ImageEditor openOnClass:self andSelector:#timeIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2224 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2225 |
^ Icon constantNamed:#'SystemBrowser class timeIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2226 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2227 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2228 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2229 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2230 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2231 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2232 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2233 |
bits:(ByteArray fromPackedString:'@@@G@A7@G\@=8C0 O>@_0A?@A0@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2234 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2235 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2236 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2237 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2238 |
bits:(ByteArray fromPackedString:'A0@_0C? O>A?<G?0_?@?8C? G<@G@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2239 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2240 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2241 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2242 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2243 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2244 |
traceIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2245 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2246 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2247 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2248 |
"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
|
2249 |
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
|
2250 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2251 |
self traceIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2252 |
ImageEditor openOnClass:self andSelector:#traceIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2253 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2254 |
^ Icon constantNamed:#'SystemBrowser class traceIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2255 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2256 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2257 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2258 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2259 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2260 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2261 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2262 |
bits:(ByteArray fromPackedString:'@@@@@@>@C8@G@@\@@ @B@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2263 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2264 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2265 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2266 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2267 |
bits:(ByteArray fromPackedString:'_?A?<C? O>@_0A?@C8@O @\@A0@B@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2268 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2269 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2270 |
] |
2830 | 2271 |
! |
2272 |
||
2273 |
visualStartableClassIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2274 |
<resource: #image> |
2830 | 2275 |
"This resource specification was automatically generated |
2276 |
by the ImageEditor of ST/X." |
|
2277 |
"Do not manually edit this!! If it is corrupted, |
|
2278 |
the ImageEditor may not be able to read the specification." |
|
2279 |
" |
|
2280 |
self visualStartableClassIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2281 |
ImageEditor openOnClass:self andSelector:#visualStartableClassIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2282 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2283 |
^ Icon constantNamed:#'SystemBrowser class visualStartableClassIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2284 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2285 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2286 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2287 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2288 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2289 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2290 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2291 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2292 |
fromPackedString:'**J*NJ*"*#"*!!J(@*!!T*@J(DJ B*DR(@*!!T*NJ(*J B*O2(@*+.*@J*** @b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2293 |
colorMapFromArray:#[ 0 0 0 127 127 127 255 0 0 255 255 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2294 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2295 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2296 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2297 |
bits:(ByteArray fromPackedString:'@ @B@@\@C8@O @>@C8@H @>@A0@G@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2298 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2299 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2300 |
] |
3354 | 2301 |
|
2302 |
"Modified: / 5.11.2001 / 09:49:30 / cg" |
|
2892 | 2303 |
! |
2304 |
||
4275 | 2305 |
warningClassIcon |
7827 | 2306 |
<resource: #programImage> |
2307 |
||
2308 |
^ ToolbarIconLibrary warningClassBrowserIcon |
|
2309 |
||
2310 |
"Modified: / 20-07-2007 / 09:04:39 / cg" |
|
4275 | 2311 |
! |
2312 |
||
2892 | 2313 |
watchIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2314 |
<resource: #image> |
2892 | 2315 |
"This resource specification was automatically generated |
2316 |
by the ImageEditor of ST/X." |
|
2317 |
"Do not manually edit this!! If it is corrupted, |
|
2318 |
the ImageEditor may not be able to read the specification." |
|
2319 |
" |
|
2320 |
self watchIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2321 |
ImageEditor openOnClass:self andSelector:#watchIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2322 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2323 |
^ Icon constantNamed:#'SystemBrowser class watchIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2324 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2325 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2326 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2327 |
height:12; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2328 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2329 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2330 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2331 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2332 |
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@'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2333 |
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 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2334 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2335 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2336 |
height:12; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2337 |
bits:(ByteArray fromPackedString:'FL@]0C7 O>A?<G?0??#=>O78?_#8>GA0'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2338 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2339 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2340 |
] |
3354 | 2341 |
! |
2342 |
||
4143 | 2343 |
windowClassIcon |
7827 | 2344 |
<resource: #programImage> |
2345 |
||
2346 |
^ ToolbarIconLibrary windowClassBrowserIcon |
|
2347 |
||
2348 |
"Modified: / 20-07-2007 / 09:05:57 / cg" |
|
4143 | 2349 |
! |
2350 |
||
3354 | 2351 |
windowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2352 |
<resource: #image> |
3354 | 2353 |
"This resource specification was automatically generated |
2354 |
by the ImageEditor of ST/X." |
|
2355 |
"Do not manually edit this!! If it is corrupted, |
|
2356 |
the ImageEditor may not be able to read the specification." |
|
2357 |
" |
|
2358 |
self windowIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2359 |
ImageEditor openOnClass:self andSelector:#windowIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2360 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2361 |
^ Icon constantNamed:#'SystemBrowser class windowIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2362 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2363 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2364 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2365 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2366 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2367 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2368 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2369 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2370 |
fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;.;.;/@@9&Y&Y&XP@NY&Y&Y&D@C&Y&Y&Y!!@@9&Y&Y&XP@NY&Y&Y&D@C1DQDQDQ@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2371 |
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 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2372 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2373 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2374 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2375 |
bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2376 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2377 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2378 |
] |
3354 | 2379 |
|
2380 |
"Created: / 5.11.2001 / 09:39:03 / cg" |
|
2846 | 2381 |
! ! |
2692 | 2382 |
|
1203 | 2383 |
!SystemBrowser class methodsFor:'interface specs'! |
2384 |
||
1367 | 2385 |
metaSpec |
2386 |
"UIPainter new openOnClass: self andSelector: #metaSpec" |
|
2387 |
||
2388 |
<resource: #canvas> |
|
2389 |
^#(#FullSpec |
|
2390 |
#window: |
|
2391 |
#(#WindowSpec |
|
2392 |
#label: 'Unlabeled Canvas' |
|
2393 |
#bounds: #(#Rectangle 27 249 325 334 ) ) |
|
2394 |
#component: |
|
2395 |
#(#SpecCollection |
|
2396 |
#collection: #( |
|
2397 |
#(#RadioButtonSpec |
|
2398 |
#layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) |
|
2399 |
#name: #instanceSwitch |
|
2400 |
#model: #metaHolder |
|
2401 |
#callbacksSpec: |
|
2402 |
#(#UIEventCallbackSubSpec |
|
2403 |
#requestValueChangeSelector: #changeRequest ) |
|
2404 |
#label: 'instance' |
|
2405 |
#select: false ) |
|
2406 |
#(#RadioButtonSpec |
|
2407 |
#layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) |
|
2408 |
#name: #classSwitch |
|
2409 |
#model: #metaHolder |
|
2410 |
#callbacksSpec: |
|
2411 |
#(#UIEventCallbackSubSpec |
|
2412 |
#requestValueChangeSelector: #changeRequest ) |
|
2413 |
#label: 'class' |
|
2414 |
#select: true ) ) ) ) |
|
2415 |
||
2416 |
"Created: / 30.10.1997 / 19:07:29 / cg" |
|
2417 |
! |
|
2418 |
||
1203 | 2419 |
methodMoveDialogSpec |
16847 | 2420 |
"This resource specification was automatically generated |
2421 |
by the UIPainter of ST/X." |
|
2422 |
||
2423 |
"Do not manually edit this!! If it is corrupted, |
|
2424 |
the UIPainter may not be able to read the specification." |
|
1203 | 2425 |
|
2426 |
" |
|
2427 |
UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec |
|
16847 | 2428 |
SystemBrowser new openInterface:#methodMoveDialogSpec |
1203 | 2429 |
" |
2430 |
||
2431 |
<resource: #canvas> |
|
2432 |
||
16847 | 2433 |
^ |
2434 |
#(FullSpec |
|
2435 |
name: methodMoveDialogSpec |
|
2436 |
window: |
|
2437 |
(WindowSpec |
|
2438 |
label: 'move method' |
|
2439 |
name: 'move method' |
|
2440 |
bounds: (Rectangle 0 0 387 118) |
|
2441 |
) |
|
2442 |
component: |
|
2443 |
(SpecCollection |
|
2444 |
collection: ( |
|
2445 |
(HorizontalPanelViewSpec |
|
2446 |
name: 'horizontalPanelView' |
|
2447 |
layout: (LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0) |
|
2448 |
level: 0 |
|
2449 |
horizontalLayout: fitSpace |
|
2450 |
verticalLayout: center |
|
2451 |
horizontalSpace: 4 |
|
2452 |
verticalSpace: 4 |
|
2453 |
component: |
|
2454 |
(SpecCollection |
|
2455 |
collection: ( |
|
2456 |
(ActionButtonSpec |
|
2457 |
label: 'cancel' |
|
2458 |
name: 'actionButton2' |
|
2459 |
translateLabel: true |
|
2460 |
tabable: true |
|
2461 |
model: cancel |
|
2462 |
extent: (Point 187 27) |
|
2463 |
) |
|
2464 |
(ActionButtonSpec |
|
2465 |
label: 'move' |
|
2466 |
name: 'actionButton1' |
|
2467 |
translateLabel: true |
|
2468 |
tabable: true |
|
2469 |
model: accept |
|
2470 |
isDefault: true |
|
2471 |
extent: (Point 188 27) |
|
2472 |
) |
|
2473 |
) |
|
2474 |
||
2475 |
) |
|
2476 |
) |
|
2477 |
(LabelSpec |
|
2478 |
label: 'move current method to which class:' |
|
2479 |
name: 'label' |
|
2480 |
layout: (LayoutFrame 2 0 2 0 -2 1.0 25 0) |
|
2481 |
style: largeLabelFont |
|
2482 |
foregroundColor: (Color 0.0 0.0 0.0) |
|
2483 |
backgroundColor: (Color 67.0 67.0 67.0) |
|
2484 |
translateLabel: true |
|
2485 |
adjust: left |
|
2486 |
) |
|
2487 |
(ComboBoxSpec |
|
2488 |
name: 'comboBox1' |
|
2489 |
layout: (LayoutFrame 2 0 29 0 -2 1.0 51 0) |
|
2490 |
tabable: true |
|
2491 |
model: className |
|
2492 |
comboList: classList |
|
2493 |
) |
|
1203 | 2494 |
) |
16847 | 2495 |
|
2496 |
) |
|
2497 |
) |
|
1203 | 2498 |
! ! |
2499 |
||
17734 | 2500 |
!SystemBrowser class methodsFor:'private-code update'! |
2501 |
||
2502 |
sourceOfMethod:mthd |
|
2503 |
|code| |
|
2504 |
||
2505 |
code := mthd source. |
|
2506 |
code notNil ifTrue:[ ^ code]. |
|
2507 |
||
2508 |
"/ wrong: even if there is no source, we |
|
2509 |
"/ should be able to type in something and accept |
|
2510 |
"/ self setNoAcceptAction. |
|
2511 |
||
2512 |
(mthd sourcePosition isNil |
|
2513 |
or:[mthd getSource isNil]) ifTrue:[ |
|
2514 |
^ '" |
|
2515 |
Sorry, but the method''s sourceCode is not available. |
|
2516 |
||
2517 |
Probably, the method''s sourceCode-info was stripped from the system. |
|
2518 |
"'. |
|
2519 |
]. |
|
2520 |
||
2521 |
^ '" |
|
2522 |
Sorry, but the method''s sourceCode is not available or corrupted. |
|
2523 |
||
2524 |
',(Smalltalk isStandAloneApp ifTrue:['If this is a deployed application, this part of the source is probably not |
|
2525 |
part of the distribution (only the base Smalltalk/X framework is open-source). |
|
2526 |
'] ifFalse:['']),' |
|
2527 |
Please check the setting of your packagePath, which contains a collection of pathNames. |
|
2528 |
The system searches those directories for a package-subdirectories, |
|
2529 |
which should either contain the classes source file. |
|
2530 |
Also, check if that directory and/or sourceFile grants read access. |
|
2531 |
The packagePath can be accessed via |
|
2532 |
Smalltalk packagePath |
|
2533 |
||
2534 |
To fix this (in the running system), evaluate: |
|
2535 |
Smalltalk packagePath addFirst:''<<pathOfDirContainingPackageDir>>''. |
|
2536 |
Smalltalk flushPathCaches. |
|
2537 |
||
2538 |
You may also want to add those statements to the end of your ''private.rc'' |
|
2539 |
file - so you will not get this error again and again. |
|
2540 |
||
2541 |
Also, check if you have the sourceCodeManagement (CVS) enabled, |
|
2542 |
and (if so) configured correctly. |
|
2543 |
||
2544 |
If all of the above fail, and you know the path of the source file, |
|
2545 |
you can workaround the problem, by adding a symbolic link to that sourcefile |
|
2546 |
in the ''source'' directory. |
|
2547 |
"'. |
|
2548 |
||
2549 |
"Modified: / 09-11-2017 / 08:16:28 / cg" |
|
2550 |
! ! |
|
2551 |
||
4860 | 2552 |
!SystemBrowser class methodsFor:'private-helpers'! |
36 | 2553 |
|
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2554 |
askForPackageChangeFrom:oldPkg to:newPkg |
3626 | 2555 |
|answer box notAgain chk| |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2556 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2557 |
box := OptionBox |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2558 |
title: |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2559 |
('You are about to change a method from another (system-) package. |
17775 | 2560 |
The method''s original packageID was ''%1''. |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2561 |
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
|
2562 |
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
|
2563 |
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
|
2564 |
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
|
2565 |
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
|
2566 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2567 |
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
|
2568 |
bindWith:(oldPkg allBold) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2569 |
with:(newPkg allBold)) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2570 |
numberOfOptions:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2571 |
|
3476 | 2572 |
box buttonTitles:#('Cancel' 'Keep' 'Continue'). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2573 |
box defaultButtonIndex:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2574 |
box action:[:n | answer := #(#cancel #keep #continue) at:n]. |
5833
5c2a75846afc
Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents:
5802
diff
changeset
|
2575 |
box label:'Method redefinition'; image:(WarningBox iconBitmap). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2576 |
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
|
2577 |
box addVerticalSpace:10. |
17043 | 2578 |
chk := box addCheckBoxAtBottom:'Don''t show this dialog again (never keep)' on:(notAgain := false asValue). |
8158
f7b891e7fb75
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
8139
diff
changeset
|
2579 |
box preferredExtent:(box preferredExtent + (0 @ chk preferredHeight) + (0@10)). |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2580 |
box resize. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2581 |
box showAtPointer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2582 |
box destroy. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2583 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2584 |
(answer ~~ #cancel) ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2585 |
notAgain value ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2586 |
Class catchMethodRedefinitions:false. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2587 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2588 |
]. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2589 |
^ answer. |
11291
d4d27edd6ab4
changed: #askForPackageChangeFrom:to:
Claus Gittinger <cg@exept.de>
parents:
11271
diff
changeset
|
2590 |
|
17775 | 2591 |
"Modified: / 21-11-2017 / 13:09:11 / cg" |
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2592 |
! |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2593 |
|
203 | 2594 |
showNoneFound |
3244 | 2595 |
self warn:(self classResources string:'None found.'). |
203 | 2596 |
! |
36 | 2597 |
|
203 | 2598 |
showNoneFound:what |
1620 | 2599 |
|rs| |
2600 |
||
2601 |
rs := self classResources. |
|
3244 | 2602 |
self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs. |
203 | 2603 |
! ! |
36 | 2604 |
|
4860 | 2605 |
!SystemBrowser class methodsFor:'private-instance creation'! |
203 | 2606 |
|
2607 |
newWithLabel:aString setupBlock:aBlock |
|
2608 |
"common helper method for all creation methods" |
|
2609 |
||
2610 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current |
|
36 | 2611 |
! |
2612 |
||
203 | 2613 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation |
2614 |
"common helper method for all creation methods" |
|
36 | 2615 |
|
203 | 2616 |
|newBrowser| |
45 | 2617 |
|
203 | 2618 |
newBrowser := BrowserView onDevice:aWorkstation. |
2619 |
newBrowser title:aString. |
|
2620 |
aBlock value:newBrowser. |
|
45 | 2621 |
|
203 | 2622 |
newBrowser open. |
2623 |
^ newBrowser |
|
2624 |
! |
|
45 | 2625 |
|
203 | 2626 |
newWithLabel:aString setupSelector:aSymbol arg:arg |
2627 |
"common helper method for all creation methods" |
|
36 | 2628 |
|
203 | 2629 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current |
36 | 2630 |
! |
2631 |
||
203 | 2632 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation |
2633 |
"common helper method for all creation methods" |
|
2634 |
||
2635 |
|newBrowser| |
|
52 | 2636 |
|
203 | 2637 |
newBrowser := BrowserView onDevice:aWorkstation. |
2638 |
newBrowser title:aString. |
|
2639 |
newBrowser perform:aSymbol with:arg. |
|
2640 |
newBrowser open. |
|
2641 |
^ newBrowser |
|
2642 |
! ! |
|
2643 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2644 |
!SystemBrowser class methodsFor:'special search startup'! |
203 | 2645 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2646 |
allCallsOn:aSelectorString |
16449 | 2647 |
"return a collection of methods which send aSelector. |
2648 |
This takes some time, because source code is parsed to see |
|
2649 |
if there is really a message send inside (and not just a symbol reference)" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2650 |
|
9007 | 2651 |
^ self |
2652 |
allCallsOn:aSelectorString |
|
2653 |
in:(Smalltalk allClasses) |
|
2654 |
ignoreCase:false |
|
2655 |
match:false |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2656 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2657 |
" |
16449 | 2658 |
Time millisecondsToRun:[ |
2659 |
SystemBrowser allCallsOn:#at:put: |
|
2660 |
]. |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2661 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2662 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2663 |
"Created: 24.1.1997 / 19:42:57 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2664 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2665 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2666 |
allCallsOn:aSelectorString in:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2667 |
"return a collection of methods which send aSelector. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2668 |
Methods from classes in aCollectionOfClasses are searched only." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2669 |
|
9007 | 2670 |
^ self |
2671 |
allCallsOn:aSelectorString |
|
2672 |
in:aCollectionOfClasses |
|
2673 |
ignoreCase:false |
|
2674 |
match:false |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2675 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2676 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2677 |
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
|
2678 |
"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
|
2679 |
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
|
2680 |
|
9007 | 2681 |
^ self |
2682 |
allCallsOn:aSelectorString |
|
2683 |
in:aCollectionOfClasses |
|
2684 |
ignoreCase:ignoreCase |
|
2685 |
match:true |
|
4270 | 2686 |
|
2687 |
" |
|
2688 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
|
2689 |
" |
|
2690 |
||
2691 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
|
2692 |
! |
|
2693 |
||
16395 | 2694 |
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatchArg |
4270 | 2695 |
"return a collection of methods which send aSelector. |
2696 |
Methods from classes in aCollectionOfClasses are searched only." |
|
2697 |
||
16395 | 2698 |
|doMatch sel searchBlock classesSearched| |
2699 |
||
2700 |
doMatch := doMatchArg. |
|
2701 |
(doMatch and:[aSelectorString includesMatchCharacters not]) ifTrue:[ |
|
2702 |
doMatch := false. |
|
2703 |
]. |
|
2704 |
||
3471
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
2705 |
aSelectorString size == 0 ifTrue:[ ^ #() ]. |
16395 | 2706 |
(doMatch or:[ignoreCase]) ifFalse:[ |
2707 |
"/ no need to search, if there is no such symbol in the system |
|
2708 |
sel := aSelectorString asSymbolIfInterned. |
|
2709 |
sel isNil ifTrue:[ ^ #() ]. "/ none (no such selector) |
|
4270 | 2710 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2711 |
|
2901 | 2712 |
classesSearched := aCollectionOfClasses. |
16395 | 2713 |
doMatch ifFalse:[ |
2714 |
"/ exclude all javaClasses, if the selector cannot be a valid java-selector |
|
4270 | 2715 |
(aSelectorString includes:$() ifFalse:[ |
12831 | 2716 |
classesSearched := classesSearched reject:[:eachClass | eachClass theNonMetaclass isJavaClass ]. |
2846 | 2717 |
]. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2718 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2719 |
|
4270 | 2720 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
4332 | 2721 |
searchBlock isNil ifTrue:[ |
2722 |
^ #() "/ none (no such selector) |
|
2723 |
]. |
|
2901 | 2724 |
^ self allMethodsIn:classesSearched where:searchBlock |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2725 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2726 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2727 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2728 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2729 |
|
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2730 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2731 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2732 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2733 |
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2734 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2735 |
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
|
2736 |
considered. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2737 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2738 |
|
2769 | 2739 |
|list activePriority| |
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 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2742 |
since this may take a long time, lower my priority ... |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2743 |
" |
2769 | 2744 |
activePriority := Processor activePriority. |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
2745 |
Processor activeProcess |
2769 | 2746 |
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
|
2747 |
do:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2748 |
|checkedClasses checkBlock detectedMethods| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2749 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2750 |
checkedClasses := IdentitySet new. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2751 |
list := OrderedCollection new. |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2752 |
detectedMethods := IdentitySet new. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2753 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2754 |
checkBlock := [:cls | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2755 |
(checkedClasses includes:cls) ifFalse:[ |
8554
441ea25ad1fd
Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents:
8505
diff
changeset
|
2756 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
17466 | 2757 |
Logger debug:'Browser method search: skipping obsolete class: %1' with:cls displayString |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2758 |
] ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2759 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2760 |
(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
|
2761 |
"/ 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
|
2762 |
(detectedMethods includes:method) ifFalse:[ |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2763 |
list add:method. |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2764 |
detectedMethods add:method |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2765 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2766 |
] |
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 |
checkedClasses add:cls. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2769 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2770 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2771 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2772 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2773 |
aCollectionOfClasses do:[:aClass | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2774 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2775 |
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
|
2776 |
implementors or senders) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2777 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2778 |
wantInst ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2779 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2780 |
checkBlock value:aClass |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2781 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2782 |
wantClass ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2783 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2784 |
checkBlock value:(aClass class) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2785 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2786 |
Processor yield |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2787 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2788 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2789 |
^ list |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2790 |
|
17466 | 2791 |
"Created: / 24-01-1997 / 19:41:12 / cg" |
2792 |
"Modified: / 14-03-2017 / 12:05:41 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2793 |
! |
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 |
allMethodsIn:aCollectionOfClasses where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2796 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2797 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2798 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2799 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2800 |
allMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2801 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2802 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2803 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2804 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2805 |
"Created: 24.1.1997 / 19:41:49 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2806 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2807 |
|
203 | 2808 |
aproposSearch:aString |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2809 |
"browse all methods, which have aString in their selector." |
203 | 2810 |
|
2811 |
^ self aproposSearch:aString in:(Smalltalk allClasses) |
|
75 | 2812 |
|
52 | 2813 |
! |
2814 |
||
203 | 2815 |
aproposSearch:aString in:aCollectionOfClasses |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2816 |
"browse all methods, which have aString. |
203 | 2817 |
This is relatively slow, since all source must be processed." |
52 | 2818 |
|
203 | 2819 |
|matchString list s searchBlock browser| |
52 | 2820 |
|
203 | 2821 |
matchString := '*' , aString , '*'. |
52 | 2822 |
|
203 | 2823 |
list := OrderedCollection new. |
52 | 2824 |
|
203 | 2825 |
(aString includesMatchCharacters) ifTrue:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2826 |
s := '*' , aString asLowercase , '*'. |
256 | 2827 |
"a matchString" |
2828 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0]. |
|
203 | 2829 |
] ifFalse:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2830 |
searchBlock := [:source | (source findString:aString asLowercase) ~~ 0] |
203 | 2831 |
]. |
52 | 2832 |
|
203 | 2833 |
browser := self browseMethodsIn:aCollectionOfClasses |
256 | 2834 |
where:[:class :method :sel | |
2835 |
|comment| |
|
52 | 2836 |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2837 |
(searchBlock value:sel asLowercase) |
256 | 2838 |
] |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
2839 |
title:(self classResources string:'selectors containing: %1' with:aString). |
52 | 2840 |
|
203 | 2841 |
browser notNil ifTrue:[ |
256 | 2842 |
browser autoSearch:aString |
203 | 2843 |
]. |
2844 |
^ browser |
|
52 | 2845 |
|
2846 |
" |
|
203 | 2847 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses) |
2848 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses) |
|
2849 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses) |
|
2850 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses) |
|
52 | 2851 |
" |
203 | 2852 |
|
256 | 2853 |
"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
|
2854 |
! |
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
2855 |
|
203 | 2856 |
browseAllCallsOn:aSelectorString |
4490 | 2857 |
"launch a browser for all senders of aSelector. |
2858 |
Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences" |
|
52 | 2859 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2860 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2861 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2862 |
in:(Smalltalk allClasses) |
52 | 2863 |
|
2864 |
" |
|
203 | 2865 |
SystemBrowser browseAllCallsOn:#+ |
52 | 2866 |
" |
256 | 2867 |
|
2868 |
"Created: 9.12.1995 / 18:00:41 / cg" |
|
666 | 2869 |
"Modified: 10.7.1996 / 10:26:15 / cg" |
2870 |
! |
|
2871 |
||
2872 |
browseAllCallsOn:aSelectorString in:aSetOfClasses |
|
2873 |
"launch a browser for all senders of aSelector" |
|
2874 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2875 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2876 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2877 |
in:aSetOfClasses |
4200 | 2878 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
666 | 2879 |
|
2880 |
" |
|
2881 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
|
2882 |
" |
|
2883 |
||
2884 |
"Created: 10.7.1996 / 10:25:49 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2885 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
52 | 2886 |
! |
2887 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2888 |
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
|
2889 |
"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
|
2890 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2891 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2892 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2893 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2894 |
ignoreCase:ignoreCase |
6476 | 2895 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2896 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2897 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2898 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2899 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2900 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2901 |
"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
|
2902 |
"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
|
2903 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2904 |
|
11271 | 2905 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:match title:titleArg |
52 | 2906 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
2907 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2908 |
|list list2 browser selWithColon title rs| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2909 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2910 |
title := titleArg. |
4200 | 2911 |
|
4270 | 2912 |
list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
4200 | 2913 |
list isEmpty ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2914 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2915 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2916 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2917 |
list2 := self allCallsOn:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2918 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2919 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2920 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2921 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2922 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2923 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2924 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2925 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2926 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2927 |
(rs string:'\\But I found %1 sends of the "%2" message (with colon).\\Browse those ?' |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2928 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2929 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2930 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2931 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2932 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2933 |
title := title , ':'. |
4200 | 2934 |
]. |
2935 |
||
2936 |
browser := self browseMethods:list title:title. |
|
52 | 2937 |
browser notNil ifTrue:[ |
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2938 |
|s| |
52 | 2939 |
|
8139
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2940 |
"/ " |
17404 | 2941 |
"/ kludge for now, if it's a multipart selector, |
8139
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2942 |
"/ no easy search is (as yet) possible |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2943 |
"/ " |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2944 |
"/ s := aSelectorString. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2945 |
"/ (s includes:$:) ifTrue:[ |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2946 |
"/ s := s copyTo:(s indexOf:$:) |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2947 |
"/ ]. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2948 |
"/ browser autoSearch:s |
16471 | 2949 |
browser setSearchSelector:aSelectorString ignoreCase:ignoreCase doMatch:true. |
52 | 2950 |
]. |
2951 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2952 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2953 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2954 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2955 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2956 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2957 |
title:'just a test' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2958 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2959 |
|
11271 | 2960 |
"Modified: / 24-01-1997 / 19:48:54 / cg" |
2961 |
"Created: / 14-02-2012 / 14:19:51 / cg" |
|
17404 | 2962 |
"Modified (format): / 13-02-2017 / 20:31:46 / cg" |
11271 | 2963 |
! |
2964 |
||
2965 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
2966 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
|
2967 |
||
2968 |
^ self |
|
2969 |
browseAllCallsOn:aSelectorString |
|
2970 |
in:aCollectionOfClasses |
|
2971 |
ignoreCase:ignoreCase |
|
2972 |
match:true |
|
2973 |
title:titleArg |
|
2974 |
||
2975 |
" |
|
2976 |
SystemBrowser |
|
2977 |
browseAllCallsOn:#+ |
|
2978 |
in:(Number withAllSubclasses) |
|
2979 |
title:'just a test' |
|
2980 |
" |
|
2981 |
||
2982 |
"Modified: / 14-02-2012 / 14:20:17 / cg" |
|
52 | 2983 |
! |
2984 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2985 |
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
|
2986 |
"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
|
2987 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2988 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2989 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2990 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2991 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2992 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2993 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2994 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2995 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2996 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2997 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2998 |
title:'just a test' |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2999 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3000 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3001 |
"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
|
3002 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3003 |
|
203 | 3004 |
browseCallsOn:aSelectorString under:aClass |
3005 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
3006 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3007 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3008 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3009 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3010 |
title:(self classResources |
6476 | 3011 |
string:'Senders of: %1 (in and below %2)' |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3012 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3013 |
with:aClass name) |
203 | 3014 |
|
3015 |
" |
|
256 | 3016 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 3017 |
" |
256 | 3018 |
|
3019 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3020 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 3021 |
! |
3022 |
||
3023 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3024 |
"launch a browser for all methods in aClass where the classVar named |
|
3025 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3026 |
classvar is modified" |
|
3027 |
||
3028 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3029 |
! |
|
3030 |
||
3031 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3032 |
"launch a browser for all methods in aCollectionOfClasses, |
|
3033 |
where the classVar named aString is referenced; |
|
3034 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3035 |
||
3036 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3037 |
! |
|
3038 |
||
3039 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
3040 |
"launch a browser for all methods in aClass and subclasses |
|
3041 |
where the classVar named aString is referenced; |
|
3042 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3043 |
||
3044 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3045 |
||
3046 |
! |
|
3047 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3048 |
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
|
3049 |
"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
|
3050 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3051 |
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
|
3052 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3053 |
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
|
3054 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3055 |
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
|
3056 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3057 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
3058 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3059 |
|
1356 | 3060 |
"/ search for any resource can be done without looking |
3061 |
"/ at the source ... |
|
3062 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
3063 |
searchBlock := [:class :method :s | method hasResource] |
|
3064 |
] ifFalse:[ |
|
3065 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3066 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3067 |
|
1356 | 3068 |
found := false. |
3069 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3070 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3071 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3072 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3073 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3074 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3075 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3076 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3077 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3078 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3079 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3080 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3081 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3082 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3083 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3084 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3085 |
] |
1356 | 3086 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3087 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3088 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3089 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3090 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3091 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3092 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3093 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3094 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3095 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3096 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3097 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3098 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3099 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3100 |
] |
1356 | 3101 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3102 |
found := item match:val printString |
1356 | 3103 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3104 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3105 |
found := item match:rsrc printString |
1356 | 3106 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3107 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3108 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3109 |
] |
1356 | 3110 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3111 |
]. |
1356 | 3112 |
found |
3113 |
]. |
|
3114 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3115 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3116 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3117 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3118 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3119 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3120 |
browser autoSearch:'resource:' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3121 |
]. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3122 |
^ browser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3123 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3124 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3125 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3126 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3127 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3128 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3129 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3130 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3131 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3132 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3133 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3134 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3135 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3136 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3137 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3138 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3139 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3140 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3141 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3142 |
title:'methods with a #style resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3143 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3144 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3145 |
"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
|
3146 |
! |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3147 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3148 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3149 |
"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
|
3150 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3151 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3152 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3153 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3154 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3155 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3156 |
title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3157 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3158 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3159 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3160 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3161 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3162 |
title:'methods accessing styleSheet values' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3163 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3164 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3165 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3166 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3167 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3168 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3169 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3170 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3171 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3172 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3173 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3174 |
title:'methods with a resource' |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3175 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3176 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3177 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3178 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3179 |
|
203 | 3180 |
browseForString:aString |
16471 | 3181 |
<resource: #obsolete> |
203 | 3182 |
"launch a browser for all methods containing a string in their source. |
3183 |
This may be slow, since source-code has to be scanned." |
|
3184 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3185 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3186 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3187 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 3188 |
! |
3189 |
||
3190 |
browseForString:aString in:aCollectionOfClasses |
|
16471 | 3191 |
<resource: #obsolete> |
203 | 3192 |
"launch a browser for all methods in aCollectionOfClasses |
3193 |
containing a string in their source. |
|
3194 |
This may be slow, since source-code has to be scanned." |
|
3195 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3196 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3197 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3198 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3199 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3200 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3201 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3202 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3203 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3204 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3205 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3206 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3207 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3208 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3209 |
! |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3210 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3211 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
16471 | 3212 |
<resource: #obsolete> |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3213 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3214 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3215 |
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
|
3216 |
|
203 | 3217 |
|browser searchBlock title s| |
3218 |
||
6476 | 3219 |
title := self classResources string:'Methods containing: %1' with:aString displayString. |
203 | 3220 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3221 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3222 |
or:[ignoreCase]) ifTrue:[ |
256 | 3223 |
s := '*' , aString , '*'. |
3224 |
"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
|
3225 |
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
|
3226 |
|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
|
3227 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3228 |
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
|
3229 |
('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
|
3230 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3231 |
] ifFalse:[ |
13438 | 3232 |
s match:src caseSensitive:ignoreCase not |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3233 |
] |
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
|
3234 |
] |
203 | 3235 |
] 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
|
3236 |
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
|
3237 |
|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
|
3238 |
|
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
3239 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3240 |
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
|
3241 |
('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
|
3242 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3243 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3244 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3245 |
] |
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
|
3246 |
] |
203 | 3247 |
]. |
3248 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
3249 |
||
3250 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3251 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 3252 |
]. |
3253 |
^ browser |
|
3254 |
||
3255 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3256 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3257 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 3258 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
3259 |
" |
|
3260 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3261 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3262 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 3263 |
! |
3264 |
||
3265 |
browseForSymbol:aSymbol |
|
3266 |
"launch a browser for all methods referencing aSymbol" |
|
3267 |
||
666 | 3268 |
^ self |
3269 |
browseForSymbol:aSymbol |
|
6476 | 3270 |
title:(self classResources string:'Users of: %1' with:aSymbol) |
666 | 3271 |
warnIfNone:true |
256 | 3272 |
|
3273 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 3274 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
3275 |
! |
|
3276 |
||
3277 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
3278 |
"launch a browser for all methods referencing aSymbol" |
|
3279 |
||
7914 | 3280 |
^ self |
3281 |
browseForSymbol:aSymbol |
|
3282 |
in:aSetOfClasses |
|
3283 |
title:title |
|
3284 |
warnIfNone:doWarn |
|
3285 |
searchFor:aSymbol |
|
203 | 3286 |
! |
3287 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3288 |
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
|
3289 |
"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
|
3290 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3291 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3292 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3293 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3294 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3295 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3296 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3297 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3298 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3299 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3300 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3301 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3302 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3303 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3304 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3305 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3306 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3307 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3308 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3309 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3310 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3311 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3312 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3313 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3314 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3315 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3316 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3317 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3318 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3319 |
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
|
3320 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3321 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3322 |
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
|
3323 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3324 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3325 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3326 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3327 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3328 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3329 |
^ browser |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3330 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3331 |
"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
|
3332 |
"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
|
3333 |
"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
|
3334 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3335 |
|
2409 | 3336 |
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
|
3337 |
"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
|
3338 |
|
11452 | 3339 |
|browser searchBlock| |
3340 |
||
3341 |
searchBlock := self searchBlockForSymbol:aSymbol. |
|
12866 | 3342 |
searchBlock == false ifTrue:[ |
3343 |
actionIfNoneFound value. |
|
3344 |
^ nil |
|
3345 |
]. |
|
2409 | 3346 |
|
3347 |
WarningSignal ignoreIn:[ |
|
3348 |
InformationSignal ignoreIn:[ |
|
375 | 3349 |
browser := self browseMethodsWhere:searchBlock title:title. |
3350 |
] |
|
2409 | 3351 |
]. |
3352 |
browser isNil ifTrue:[ |
|
12866 | 3353 |
actionIfNoneFound value. |
3354 |
^ nil |
|
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
|
3355 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3356 |
|
11452 | 3357 |
(browser notNil and:[searchString notNil]) ifTrue:[ |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3358 |
browser autoSearch:searchString |
203 | 3359 |
]. |
3360 |
^ browser |
|
375 | 3361 |
|
11452 | 3362 |
"Modified: / 24-06-1996 / 14:39:07 / stefan" |
3363 |
"Created: / 31-10-1996 / 14:45:08 / cg" |
|
3364 |
"Modified: / 22-03-2012 / 06:58:07 / cg" |
|
203 | 3365 |
! |
3366 |
||
2409 | 3367 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
3368 |
"launch a browser for all methods referencing aSymbol" |
|
3369 |
||
3370 |
^ self |
|
3371 |
browseForSymbol:aSymbol |
|
3372 |
title:title |
|
3373 |
warnIfNone:doWarn |
|
3374 |
searchFor:aSymbol |
|
3375 |
||
3376 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
3377 |
! |
|
3378 |
||
3379 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
3380 |
"launch a browser for all methods referencing aSymbol" |
|
3381 |
||
2414 | 3382 |
|b| |
3383 |
||
3384 |
doWarn ifTrue: [ |
|
4158 | 3385 |
b := [self showNoneFound:title] |
2414 | 3386 |
]. |
2409 | 3387 |
^ self |
3388 |
browseForSymbol:aSymbol |
|
3389 |
title:title |
|
2414 | 3390 |
ifNone:b |
2409 | 3391 |
searchFor:searchString |
3392 |
! |
|
3393 |
||
4158 | 3394 |
browseImplementorsMatching:aSelectorString |
3395 |
"launch a browser for all implementors of aSelector" |
|
3396 |
||
3397 |
^ self |
|
3398 |
browseImplementorsMatching:aSelectorString |
|
3399 |
in:(Smalltalk allClasses) |
|
3400 |
||
3401 |
" |
|
3402 |
SystemBrowser browseImplementorsOf:#+ |
|
3403 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3404 |
" |
|
3405 |
||
3406 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
3407 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
3408 |
! |
|
3409 |
||
3410 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses |
|
3411 |
"launch a browser for all implementors of aSelector" |
|
3412 |
||
3413 |
^ self |
|
3414 |
browseImplementorsMatching:aSelectorString |
|
3415 |
in:aSetOfClasses |
|
3416 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
3417 |
||
3418 |
" |
|
3419 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3420 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3421 |
" |
|
3422 |
||
3423 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3424 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3425 |
! |
|
3426 |
||
3427 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
|
3428 |
"launch a browser for all implementors of aSelector" |
|
3429 |
||
3430 |
^ self |
|
3431 |
browseImplementorsMatching:aSelectorString |
|
3432 |
in:aSetOfClasses |
|
3433 |
ignoreCase:ignoreCase |
|
3434 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
3435 |
||
3436 |
" |
|
3437 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3438 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3439 |
" |
|
3440 |
||
3441 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3442 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
|
3443 |
! |
|
3444 |
||
3445 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3446 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3447 |
the classes contained in aCollectionOfClasses and their metaclasses" |
4158 | 3448 |
|
3449 |
|list| |
|
3450 |
||
3451 |
list := self |
|
3452 |
findImplementorsMatching:aSelectorString |
|
3453 |
in:aCollectionOfClasses |
|
3454 |
ignoreCase:ignoreCase. |
|
3455 |
||
3456 |
list size == 0 ifTrue:[ |
|
3457 |
self showNoneFound:title. |
|
3458 |
^ nil |
|
3459 |
]. |
|
3460 |
||
3461 |
^ self browseMethods:list asOrderedCollection title:title |
|
3462 |
||
3463 |
" |
|
3464 |
SystemBrowser browseImplementorsOf:#+ |
|
3465 |
in:(Array with:Number |
|
3466 |
with:Float |
|
3467 |
with:SmallInteger) |
|
3468 |
title:'some implementors of +' |
|
3469 |
||
3470 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3471 |
in:(Array with:Number |
|
3472 |
with:Float |
|
3473 |
with:SmallInteger) |
|
3474 |
title:'some implementors of +' |
|
3475 |
" |
|
3476 |
||
3477 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3478 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3479 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3480 |
! |
|
3481 |
||
3482 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title |
|
3483 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3484 |
the classes contained in aCollectionOfClasses and their metaclasses" |
4158 | 3485 |
|
3486 |
^ self |
|
3487 |
browseImplementorsMatching:aSelectorString |
|
3488 |
in:aCollectionOfClasses |
|
3489 |
ignoreCase:false |
|
3490 |
title:title |
|
3491 |
! |
|
3492 |
||
3493 |
browseImplementorsMatching:aSelectorString under:aClass |
|
3494 |
"launch a browser for all implementors of aSelector in aClass |
|
3495 |
and its subclasses" |
|
3496 |
||
3497 |
^ self |
|
3498 |
browseImplementorsMatching:aSelectorString |
|
3499 |
in:(aClass withAllSubclasses) |
|
3500 |
title:(self classResources |
|
3501 |
string:'implementors of: %1 (in and below %2)' |
|
3502 |
with:aSelectorString |
|
3503 |
with:aClass name) |
|
3504 |
||
3505 |
" |
|
3506 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3507 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
|
3508 |
" |
|
3509 |
||
3510 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
|
3511 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
|
3512 |
! |
|
3513 |
||
52 | 3514 |
browseImplementorsOf:aSelectorString |
3515 |
"launch a browser for all implementors of aSelector" |
|
3516 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3517 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3518 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3519 |
in:(Smalltalk allClasses) |
52 | 3520 |
|
3521 |
" |
|
3522 |
SystemBrowser browseImplementorsOf:#+ |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3523 |
NewSystemBrowser browseImplementorsOf:#+ |
52 | 3524 |
" |
256 | 3525 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3526 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3527 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
666 | 3528 |
! |
3529 |
||
3530 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
3531 |
"launch a browser for all implementors of aSelector" |
|
3532 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3533 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3534 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3535 |
in:aSetOfClasses |
8704 | 3536 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString allBold) |
666 | 3537 |
|
3538 |
" |
|
3539 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3540 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
666 | 3541 |
" |
3542 |
||
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3543 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3544 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
52 | 3545 |
! |
3546 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3547 |
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
|
3548 |
"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
|
3549 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3550 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3551 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3552 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3553 |
ignoreCase:ignoreCase |
6476 | 3554 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3555 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3556 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3557 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3558 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3559 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3560 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3561 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3562 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3563 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3564 |
|
11271 | 3565 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch title:titleArg |
3566 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3567 |
the classes contained in aCollectionOfClasses and their metaclasses" |
11271 | 3568 |
|
3569 |
doMatch ifTrue:[ |
|
3570 |
self browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
3571 |
] ifFalse:[ |
|
3572 |
self browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
3573 |
]. |
|
3574 |
||
3575 |
"Created: / 14-02-2012 / 13:55:23 / cg" |
|
3576 |
! |
|
3577 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3578 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
36 | 3579 |
"launch a browser for all implementors of aSelector in |
16586 | 3580 |
the classes contained in aCollectionOfClasses and their metaclasses" |
36 | 3581 |
|
17180 | 3582 |
|list list2 rs selWithColon title top20 allSelectors choice but globalClass global globalName lcSelector| |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3583 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3584 |
title := titleArg. |
2642 | 3585 |
list := self |
15206 | 3586 |
findImplementors:aSelectorString |
2642 | 3587 |
in:aCollectionOfClasses |
15206 | 3588 |
ignoreCase:ignoreCase |
3589 |
match:(aSelectorString includesMatchCharacters and:[aSelectorString ~= '*']). |
|
45 | 3590 |
|
2642 | 3591 |
list size == 0 ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3592 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3593 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3594 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3595 |
list2 := self findImplementorsOf:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3596 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3597 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3598 |
list2 size == 0 ifTrue:[ |
8678 | 3599 |
"/ self showNoneFound:title. |
3600 |
"/ ^ self |
|
17180 | 3601 |
lcSelector := aSelectorString asLowercase. |
3602 |
||
8688 | 3603 |
allSelectors := Set new. |
8678 | 3604 |
top20 := SortedCollection new. |
17180 | 3605 |
top20 |
3606 |
sortBlock:[:a :b | |
|
3607 |
|isPrefixOfA isPrefixOfB aDist bDist| |
|
3608 |
||
3609 |
isPrefixOfA := (a asLowercase startsWith:lcSelector). |
|
3610 |
isPrefixOfB := (b asLowercase startsWith:lcSelector). |
|
3611 |
(isPrefixOfA and:[isPrefixOfB not]) |
|
3612 |
or:[ |
|
3613 |
aDist := (a spellAgainst:aSelectorString). |
|
3614 |
bDist := (b spellAgainst:aSelectorString). |
|
3615 |
(isPrefixOfA and:[isPrefixOfB and:[aDist > bDist]]) |
|
3616 |
or:[ isPrefixOfB not and:[ aDist > bDist ]]] |
|
3617 |
]. |
|
8759 | 3618 |
Smalltalk allMethodsWithSelectorDo:[:eachMethod :eachSelector | |
17180 | 3619 |
((eachSelector asLowercase startsWith:lcSelector) or:[(eachSelector spellAgainst:aSelectorString) > 50]) ifTrue:[ |
8759 | 3620 |
(allSelectors includes:eachSelector) ifFalse:[ |
3621 |
allSelectors add:eachSelector. |
|
3622 |
top20 add:eachSelector. |
|
3623 |
top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ]. |
|
3624 |
] |
|
8678 | 3625 |
] |
3626 |
]. |
|
9685
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3627 |
top20 isEmpty ifTrue:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3628 |
Smalltalk allMethodsWithSelectorDo:[:eachMethod :eachSelector | |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3629 |
(eachSelector asLowercase spellAgainst:lcSelector) > 50 ifTrue:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3630 |
(allSelectors includes:eachSelector) ifFalse:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3631 |
allSelectors add:eachSelector. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3632 |
top20 add:eachSelector. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3633 |
top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ]. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3634 |
] |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3635 |
] |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3636 |
]. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3637 |
]. |
15499 | 3638 |
|
3639 |
"/ for your convenience: look for a global class by that name, and offer browsing the class |
|
12621 | 3640 |
but := ''. |
13128 | 3641 |
(globalClass := Smalltalk classNamed:aSelectorString) notNil ifTrue:[ |
12575 | 3642 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class ',aSelectorString,' <<'); yourself. |
12621 | 3643 |
but := '\But there exists a class by that name.'. |
13128 | 3644 |
] ifFalse:[ |
3645 |
(aSelectorString knownAsSymbol |
|
3646 |
and:[ (global := Smalltalk at:aSelectorString asSymbol) notNil ]) |
|
3647 |
ifTrue:[ |
|
3648 |
global isBehavior ifTrue:[ |
|
3649 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse alias ',aSelectorString,' <<'); yourself. |
|
3650 |
but := '\But there exists a global alias by that name.'. |
|
3651 |
globalClass := global |
|
3652 |
] ifFalse:[ |
|
3653 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class of ',aSelectorString,' <<'); yourself. |
|
3654 |
but := '\But there exists a global by that name.'. |
|
3655 |
globalClass := global class. |
|
3656 |
] |
|
3657 |
]. |
|
12575 | 3658 |
]. |
15499 | 3659 |
"/ for your convenience: look for any namespace class by that name, and offer browsing the class |
3660 |
but isEmpty ifTrue:[ |
|
3661 |
globalName := Smalltalk keys |
|
3662 |
detect:[:nm | (nm includesString:'::') |
|
3663 |
and:[ (nm includesString:aSelectorString) |
|
3664 |
and:[ (nm endsWith:('::',aSelectorString)) ]]] |
|
3665 |
ifNone:nil. |
|
3666 |
globalName notNil ifTrue:[ |
|
3667 |
globalClass := Smalltalk at:globalName. |
|
3668 |
globalClass isBehavior ifTrue:[ |
|
3669 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class ',globalClass name,' <<'); yourself. |
|
3670 |
but := '\But there exists a class in some namespace by that name.'. |
|
3671 |
]. |
|
3672 |
]. |
|
3673 |
]. |
|
3674 |
||
8678 | 3675 |
choice := Dialog |
12621 | 3676 |
choose:(title,(' - none found.',but,'\\Browse implementors of a similar selector or cancel:') withCRs) |
8678 | 3677 |
fromList:top20 |
3678 |
lines:10. |
|
13128 | 3679 |
|
8678 | 3680 |
choice notEmptyOrNil ifTrue:[ |
12575 | 3681 |
(choice startsWith:'>>') ifTrue:[ |
13128 | 3682 |
self openInClass:globalClass selector:nil. |
12575 | 3683 |
] ifFalse:[ |
3684 |
self browseImplementorsOf:choice in:aCollectionOfClasses ignoreCase:ignoreCase title:'Implementors of ',choice. |
|
3685 |
] |
|
8678 | 3686 |
]. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3687 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3688 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3689 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3690 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3691 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3692 |
(rs string:'\\But I found %1 implementor(s) of the "%2" message (with colon).\\Browse those ?' |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3693 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3694 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3695 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3696 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3697 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3698 |
title := title , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3699 |
|
36 | 3700 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3701 |
|
270 | 3702 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 3703 |
|
3704 |
" |
|
3705 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 3706 |
in:(Array with:Number |
3707 |
with:Float |
|
3708 |
with:SmallInteger) |
|
3709 |
title:'some implementors of +' |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3710 |
|
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3711 |
NewSystemBrowser browseImplementorsOf:#+ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3712 |
in:(Array with:Number |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3713 |
with:Float |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3714 |
with:SmallInteger) |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3715 |
title:'some implementors of +' |
36 | 3716 |
" |
132 | 3717 |
|
9685
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3718 |
"Modified: / 04-09-1995 / 17:33:39 / claus" |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3719 |
"Modified: / 19-06-1996 / 14:19:02 / stefan" |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3720 |
"Modified: / 15-01-2011 / 14:35:56 / cg" |
36 | 3721 |
! |
3722 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3723 |
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
|
3724 |
"launch a browser for all implementors of aSelector in |
16586 | 3725 |
the classes contained in aCollectionOfClasses and their metaclasses" |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3726 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3727 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3728 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3729 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3730 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3731 |
title:title |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3732 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3733 |
|
52 | 3734 |
browseImplementorsOf:aSelectorString under:aClass |
3735 |
"launch a browser for all implementors of aSelector in aClass |
|
3736 |
and its subclasses" |
|
3737 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3738 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3739 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3740 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3741 |
title:(self classResources |
6476 | 3742 |
string:'Implementors of: %1 (in and below %2)' |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3743 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3744 |
with:aClass name) |
52 | 3745 |
|
3746 |
" |
|
3747 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3748 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
52 | 3749 |
" |
256 | 3750 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3751 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3752 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
52 | 3753 |
! |
3754 |
||
3663 | 3755 |
browseImplementorsOfAny:setOfSelectors |
3756 |
"launch a browser for all implementors of aSelector" |
|
3757 |
||
3758 |
^ self |
|
3759 |
browseImplementorsOfAny:setOfSelectors |
|
3760 |
in:(Smalltalk allClasses) |
|
3761 |
||
3762 |
" |
|
3763 |
SystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3764 |
NewSystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3765 |
" |
|
3766 |
||
3767 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
3768 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
3769 |
! |
|
3770 |
||
3771 |
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses |
|
3772 |
"launch a browser for all implementors of aSelector" |
|
3773 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3774 |
|title| |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3775 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3776 |
setOfSelectors size == 1 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3777 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3778 |
string:'Implementors of %1' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3779 |
with:(setOfSelectors asOrderedCollection first). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3780 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3781 |
setOfSelectors size == 2 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3782 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3783 |
string:'Implementors of %1 or %2' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3784 |
with:(setOfSelectors asOrderedCollection first) |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3785 |
with:(setOfSelectors asOrderedCollection second). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3786 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3787 |
title := self classResources string:'Implementors of some'. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3788 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3789 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3790 |
|
3663 | 3791 |
^ self |
3792 |
browseImplementorsOfAny:setOfSelectors |
|
3793 |
in:aSetOfClasses |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3794 |
title:title |
3663 | 3795 |
|
3796 |
" |
|
3797 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3798 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3799 |
" |
|
3800 |
||
3801 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3802 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3803 |
! |
|
3804 |
||
3805 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3806 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3807 |
the classes contained in aCollectionOfClasses and their metaclasses" |
3663 | 3808 |
|
3809 |
|list| |
|
3810 |
||
3811 |
list := self |
|
3812 |
findImplementorsOfAny:setOfSelectors |
|
3813 |
in:aCollectionOfClasses |
|
3814 |
ignoreCase:ignoreCase. |
|
3815 |
||
3816 |
list size == 0 ifTrue:[ |
|
3817 |
self showNoneFound:title. |
|
3818 |
^ nil |
|
3819 |
]. |
|
3820 |
||
3821 |
^ self browseMethods:list asOrderedCollection title:title |
|
3822 |
||
3823 |
" |
|
3824 |
SystemBrowser browseImplementorsOf:#+ |
|
3825 |
in:(Array with:Number |
|
3826 |
with:Float |
|
3827 |
with:SmallInteger) |
|
3828 |
title:'some implementors of +' |
|
3829 |
||
3830 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3831 |
in:(Array with:Number |
|
3832 |
with:Float |
|
3833 |
with:SmallInteger) |
|
3834 |
title:'some implementors of +' |
|
3835 |
" |
|
3836 |
||
3837 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3838 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3839 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3840 |
! |
|
3841 |
||
3842 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title |
|
3843 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3844 |
the classes contained in aCollectionOfClasses and their metaclasses" |
3663 | 3845 |
|
3846 |
^ self |
|
3847 |
browseImplementorsOfAny:setOfSelectors |
|
3848 |
in:aCollectionOfClasses |
|
3849 |
ignoreCase:false |
|
3850 |
title:title |
|
3851 |
! |
|
3852 |
||
203 | 3853 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
3854 |
"launch a browser for all methods in aClass where the instVar named |
|
3855 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3856 |
instvar is modified" |
|
45 | 3857 |
|
203 | 3858 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 3859 |
! |
3860 |
||
203 | 3861 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
3862 |
"launch a browser for all methods in aClass where the instVar named |
|
3863 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3864 |
instvar is modified" |
|
52 | 3865 |
|
203 | 3866 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 3867 |
! |
3868 |
||
203 | 3869 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3870 |
"launch a browser for all methods in aClass and subclasses |
|
3871 |
where the instVar named aString is referenced; |
|
3872 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 3873 |
|
203 | 3874 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 3875 |
! |
3876 |
||
3877 |
browseReferendsOf:aGlobalName |
|
3878 |
"launch a browser for all methods referencing a global |
|
1367 | 3879 |
named aGlobalName. The argument may be a symbol, a string or |
3880 |
a matchPattern. |
|
36 | 3881 |
" |
3882 |
||
3883 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
3884 |
||
3885 |
" |
|
14944 | 3886 |
UserPreferences current systemBrowserClass browseReferendsOf:#Transcript |
3887 |
UserPreferences current systemBrowserClass browseReferendsOf:'Tr*' |
|
36 | 3888 |
" |
75 | 3889 |
|
1367 | 3890 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 3891 |
! |
3892 |
||
2409 | 3893 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
3894 |
"launch a browser for all methods referencing a global |
|
3895 |
named aGlobalName. |
|
3896 |
" |
|
3897 |
||
3898 |
^ self |
|
3899 |
browseReferendsOf:aGlobalName |
|
6476 | 3900 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
2409 | 3901 |
ifNone:actionIfNone |
3902 |
||
3903 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
3904 |
! |
|
3905 |
||
666 | 3906 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
3907 |
"launch a browser for all methods referencing a global |
|
3908 |
named aGlobalName. |
|
3909 |
" |
|
3910 |
||
3911 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
3912 |
||
3913 |
" |
|
3914 |
Browser browseReferendsOf:#Transcript |
|
3915 |
" |
|
3916 |
||
3917 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
3918 |
! |
|
3919 |
||
3920 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
3921 |
"launch a browser for all methods referencing a global |
|
3922 |
named aGlobalName. |
|
3923 |
" |
|
3924 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3925 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3926 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3927 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3928 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3929 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3930 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3931 |
|
666 | 3932 |
^ self browseForSymbol:aGlobalName |
3933 |
in:aSetOfClasses |
|
6476 | 3934 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
666 | 3935 |
warnIfNone:doWarn |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3936 |
searchFor:globalsPlainName |
666 | 3937 |
|
3938 |
"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
|
3939 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 3940 |
! |
3941 |
||
2409 | 3942 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
17967 | 3943 |
"launch a browser for all methods referencing a global named aGlobalName. |
3944 |
If aGlobalName is inside a namespace (a private or namespace-global), |
|
3945 |
the search should be for a global named <namespace>::<aGlobalName>" |
|
9002 | 3946 |
|
3947 |
|searchBlock browser| |
|
3948 |
||
3949 |
searchBlock := self searchBlockForReferendsOf:aGlobalName. |
|
3950 |
browser := self |
|
3951 |
browseMethodsWhere:searchBlock |
|
3952 |
title:title |
|
3953 |
ifNone:[ |
|
3954 |
actionIfNone value. |
|
3955 |
^ nil |
|
3956 |
]. |
|
3957 |
||
2828 | 3958 |
browser isNil ifTrue:[ |
3959 |
actionIfNone value |
|
3960 |
] ifFalse:[ |
|
9010
fa5c1fef4aef
changed: #browseReferendsOf:title:ifNone:
Claus Gittinger <cg@exept.de>
parents:
9007
diff
changeset
|
3961 |
browser autoSearchVariable:aGlobalName. |
2828 | 3962 |
]. |
3963 |
^ browser |
|
9002 | 3964 |
|
3965 |
" |
|
3966 |
Tools::NewSystemBrowser browseReferendsOf:'SortedCollection' title:'foo' ifNone:[ self halt ] |
|
3967 |
" |
|
2409 | 3968 |
! |
3969 |
||
3970 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
17967 | 3971 |
"launch a browser for all methods referencing a global named aGlobalName. |
3972 |
If aGlobalName is inside a namespace (a private or namespace-global), |
|
3973 |
the search should be for a global named <namespace>::<aGlobalName>" |
|
2409 | 3974 |
|
2414 | 3975 |
|b| |
3976 |
||
3977 |
doWarn ifTrue: [ |
|
4158 | 3978 |
b := [self showNoneFound:title] |
2414 | 3979 |
]. |
3980 |
||
2409 | 3981 |
^ self |
3982 |
browseReferendsOf:aGlobalName |
|
3983 |
title:title |
|
2414 | 3984 |
ifNone:b |
1367 | 3985 |
! |
3986 |
||
3987 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
17967 | 3988 |
"launch a browser for all methods referencing a global named aGlobalName. |
3989 |
If aGlobalName is inside a namespace (a private or namespace-global), |
|
3990 |
the search should be for a global named <namespace>::<aGlobalName>" |
|
1367 | 3991 |
|
3992 |
^ self |
|
3993 |
browseReferendsOf:aGlobalName |
|
6476 | 3994 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
1367 | 3995 |
warnIfNone:doWarn |
3996 |
||
3997 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 3998 |
! |
3999 |
||
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4000 |
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone |
12844 | 4001 |
"launch a browser for all methods referencing an unbound global." |
4002 |
||
4003 |
|searchBlock browser| |
|
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4004 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4005 |
searchBlock := [:cls :mthd :sel | |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4006 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4007 |
|mSource globals potentialNames| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4008 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4009 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4010 |
mthd isLazyMethod ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4011 |
mSource := mthd source. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4012 |
mSource notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4013 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4014 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4015 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4016 |
"/ try hard to avoid the usedGlobals - its expensive |
6640 | 4017 |
potentialNames := mthd literals select:[:lit | lit isSymbol and:[lit size > 0 and:[lit isUppercaseFirst]]]. |
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4018 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4019 |
potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4020 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4021 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4022 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4023 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4024 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4025 |
globals notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4026 |
globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4027 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4028 |
false |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4029 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4030 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4031 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4032 |
browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4033 |
browser isNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4034 |
actionIfNone value |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4035 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4036 |
^ browser |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4037 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4038 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4039 |
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4040 |
"launch a browser for all methods referencing an unbound global. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4041 |
" |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4042 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4043 |
|b| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4044 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4045 |
doWarn ifTrue: [ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4046 |
b := [self showNoneFound:title] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4047 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4048 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4049 |
^ self |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4050 |
browseReferendsOfUnboundGlobalsWithTitle:title |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4051 |
ifNone:b |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4052 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4053 |
|
203 | 4054 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4055 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
4056 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
4057 |
instvar is modified" |
|
4058 |
||
4059 |
|title| |
|
4060 |
||
4061 |
modsOnly ifTrue:[ |
|
6476 | 4062 |
title := 'Modifications of: %1' |
203 | 4063 |
] ifFalse:[ |
6476 | 4064 |
title := 'References to: %1 ' |
203 | 4065 |
]. |
4066 |
^ self |
|
256 | 4067 |
browseRefsTo:aString |
4068 |
classVars:classVars |
|
4069 |
in:aCollectionOfClasses |
|
4070 |
modificationsOnly:modsOnly |
|
4071 |
title:(self classResources string:title with:aString) |
|
4072 |
||
4073 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
4074 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 4075 |
! |
4076 |
||
4077 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
4078 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
4079 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
4080 |
instvar is modified" |
|
4081 |
||
4082 |
|filter browser pattern| |
|
4083 |
||
4084 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 4085 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 4086 |
|
4087 |
browser notNil ifTrue:[ |
|
2677 | 4088 |
modsOnly ifTrue:[ |
4089 |
pattern := varName , ' :=' |
|
4090 |
] ifFalse:[ |
|
4091 |
pattern := varName |
|
4092 |
]. |
|
4093 |
browser autoSearch:pattern |
|
203 | 4094 |
]. |
4095 |
^ browser |
|
4096 |
! |
|
4097 |
||
3407 | 4098 |
browseSendersOf:aSelectorString |
4099 |
"launch a browser for all senders of aSelector" |
|
4100 |
||
4101 |
^ self browseAllCallsOn:aSelectorString |
|
4102 |
||
4103 |
" |
|
4104 |
SystemBrowser browseSendersOf:#+ |
|
7914 | 4105 |
UserPreferences current systemBrowserClass browseSendersOf:#+ |
3407 | 4106 |
" |
4107 |
||
4108 |
"Modified: / 10.7.1996 / 10:26:15 / cg" |
|
4109 |
"Created: / 13.11.2001 / 13:52:12 / cg" |
|
4110 |
! |
|
4111 |
||
256 | 4112 |
browseSuperCallsIn:aCollectionOfClasses title:title |
4113 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
4114 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
4115 |
|browser searchBlock| |
256 | 4116 |
|
4117 |
searchBlock := [:class :method :s | |
|
504 | 4118 |
|src parser| |
256 | 4119 |
|
504 | 4120 |
src := method source. |
15334 | 4121 |
(src notNil and:[ (src findString:'super') ~~ 0 ]) ifTrue:[ |
4122 |
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
|
4123 |
parseMethod:src |
504 | 4124 |
in:class |
4125 |
ignoreErrors:true |
|
4126 |
ignoreWarnings:true. |
|
4127 |
||
7711 | 4128 |
(parser notNil and:[parser ~~ #Error and:[parser usesSuper]]) |
504 | 4129 |
] ifFalse:[ |
4130 |
false |
|
4131 |
] |
|
256 | 4132 |
]. |
4133 |
||
4134 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 4135 |
where:searchBlock |
4136 |
title:title. |
|
256 | 4137 |
|
4138 |
browser notNil ifTrue:[ |
|
504 | 4139 |
browser autoSearch:'super' |
256 | 4140 |
]. |
4141 |
^ browser |
|
4142 |
||
504 | 4143 |
" |
4144 |
SystemBrowser |
|
4145 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
4146 |
title:'superSends in SortedCollection' |
|
4147 |
" |
|
4148 |
||
7711 | 4149 |
"Created: / 23-11-1995 / 14:08:55 / cg" |
4150 |
"Modified: / 06-03-2007 / 14:00:12 / cg" |
|
256 | 4151 |
! |
4152 |
||
4153 |
browseSuperCallsUnder:aClass |
|
4154 |
"launch a browser for all supersends in aClass and subclasses" |
|
4155 |
||
4156 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
6476 | 4157 |
title:(self classResources string:'Supersends (in and below %1)' with:aClass name) |
256 | 4158 |
|
4159 |
" |
|
4160 |
SystemBrowser browseSuperCallsUnder:Number |
|
4161 |
" |
|
4162 |
||
4163 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
4164 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
4165 |
! |
|
4166 |
||
52 | 4167 |
browseUsesOf:aClass |
4168 |
|dict owners offsets |
|
4169 |
sz "{ Class: SmallInteger }" |
|
4170 |
n "{ Class: SmallInteger }" |
|
4171 |
removeSet newDict| |
|
4172 |
||
4173 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
4174 |
||
4175 |
" |
|
4176 |
collect set of offsets in dict; key is class |
|
4177 |
" |
|
4178 |
dict := IdentityDictionary new. |
|
4179 |
owners do:[:someObject | |
|
4158 | 4180 |
|cls create| |
4181 |
||
4182 |
someObject isContext ifFalse:[ |
|
4183 |
" |
|
4184 |
someObject refers to an instance of aClass; |
|
4185 |
find out, which instVar(s) |
|
4186 |
" |
|
4187 |
cls := someObject class. |
|
4188 |
cls ~~ Array ifTrue:[ |
|
4189 |
n := cls instSize. |
|
4190 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
4191 |
||
4192 |
1 to:n do:[:i | |
|
4193 |
|ref| |
|
4194 |
||
4195 |
ref := someObject instVarAt:i. |
|
4196 |
(ref isMemberOf:aClass) ifTrue:[ |
|
4197 |
offsets := dict at:cls ifAbsent:create. |
|
4198 |
offsets add:i. |
|
4199 |
] |
|
4200 |
]. |
|
4201 |
cls isVariable ifTrue:[ |
|
4202 |
cls isPointers ifTrue:[ |
|
4203 |
| idx "{ Class: SmallInteger }" | |
|
4204 |
||
4205 |
sz := someObject basicSize. |
|
4206 |
idx := 1. |
|
4207 |
[idx <= sz] whileTrue:[ |
|
4208 |
|ref| |
|
4209 |
||
4210 |
ref := someObject basicAt:idx. |
|
4211 |
(ref isMemberOf:aClass) ifTrue:[ |
|
4212 |
offsets := dict at:cls ifAbsent:create. |
|
4213 |
offsets add:0. |
|
4214 |
idx := sz |
|
4215 |
]. |
|
4216 |
idx := idx + 1 |
|
4217 |
] |
|
4218 |
] |
|
4219 |
] |
|
4220 |
] |
|
4221 |
] |
|
52 | 4222 |
]. |
4223 |
||
4224 |
" |
|
4225 |
merge with superclass refs |
|
4226 |
" |
|
4227 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4228 |
cls allSuperclasses do:[:aSuperclass | |
4229 |
|superSet| |
|
4230 |
||
4231 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
4232 |
superSet notNil ifTrue:[ |
|
4233 |
superSet := dict at:aSuperclass. |
|
4234 |
removeSet := Set new. |
|
4235 |
set do:[:offset | |
|
4236 |
(superSet includes:offset) ifTrue:[ |
|
4237 |
removeSet add:offset |
|
4238 |
] |
|
4239 |
]. |
|
4240 |
set removeAll:removeSet |
|
4241 |
] |
|
4242 |
] |
|
52 | 4243 |
]. |
4244 |
||
4245 |
" |
|
4246 |
remove empty ones |
|
4247 |
" |
|
4248 |
removeSet := Set new. |
|
4249 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4250 |
set isEmpty ifTrue:[ |
4251 |
removeSet add:cls |
|
4252 |
] |
|
52 | 4253 |
]. |
9334 | 4254 |
dict removeAllKeys:removeSet. |
52 | 4255 |
|
4256 |
" |
|
4257 |
replace the indices by real names |
|
4258 |
" |
|
4259 |
newDict := IdentityDictionary new. |
|
4260 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4261 |
|newSet names| |
4262 |
||
4263 |
names := cls allInstVarNames. |
|
4264 |
newSet := set collect:[:index | |
|
4265 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
4266 |
]. |
|
4267 |
newDict at:cls put:newSet |
|
52 | 4268 |
]. |
4269 |
||
4270 |
newDict inspect |
|
4271 |
! |
|
4272 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4273 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
7914 | 4274 |
"return a searchblock for variable references (obsolete)" |
4275 |
||
4276 |
^ self |
|
4277 |
filterToSearchRefsTo:varName |
|
4278 |
instVars:(classVars not) |
|
4279 |
classVars:classVars |
|
11934 | 4280 |
globals:false |
4281 |
poolVars:false |
|
7914 | 4282 |
access:accessType |
4283 |
! |
|
4284 |
||
4285 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
|
4286 |
"return a searchblock for variable references" |
|
4287 |
||
4288 |
^ self |
|
4289 |
filterToSearchRefsTo:varName |
|
4290 |
classVars:classVars |
|
4291 |
access:(modsOnly ifTrue:#write ifFalse:#readWrite) |
|
4292 |
! |
|
4293 |
||
4294 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals access:accessType |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4295 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4296 |
|
11934 | 4297 |
^ self |
4298 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals |
|
4299 |
poolVars:false access:accessType |
|
4300 |
! |
|
4301 |
||
4302 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals poolVars:doPoolVars access:accessType |
|
4303 |
"return a searchblock for variable references" |
|
4304 |
||
4305 |
|searchBlock needMatch baseVarName| |
|
4306 |
||
4307 |
needMatch := varName includesMatchCharacters. |
|
4308 |
(varName includes:$:) ifTrue:[ |
|
4309 |
baseVarName := varName copyFrom:(varName lastIndexOf:$:)+1 |
|
4310 |
] ifFalse:[ |
|
4311 |
baseVarName := varName |
|
4312 |
]. |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4313 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4314 |
searchBlock := [:c :m :s | |
11934 | 4315 |
|src result parser vars instVars classVars poolVars globals| |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4316 |
|
7914 | 4317 |
result := false. |
4318 |
||
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4319 |
"/ JV Following code is bad. It assumes that method is a Smalltalk method. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4320 |
"/ But it may not, it could be JavaScript method, Java method or whatever fancy language |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4321 |
"/ method. Should be actually delegated to the method itself. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4322 |
|
17596 | 4323 |
(m programmingLanguage isSmalltalk |
4324 |
or:[ m programmingLanguage isSTXJavaScript ]) ifTrue:[ |
|
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4325 |
"/ For Smalltalk, use parser... |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4326 |
src := m source. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4327 |
src notNil ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4328 |
needMatch ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4329 |
" |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4330 |
before doing a slow parse, quickly scan the |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4331 |
method's source for the variable's name ... |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4332 |
" |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4333 |
result := (src findString:baseVarName) ~~ 0. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4334 |
] ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4335 |
result := true. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4336 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4337 |
result ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4338 |
result := false. |
17596 | 4339 |
parser := (m parserClass) |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4340 |
parseMethod:src |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4341 |
in:c |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4342 |
ignoreErrors:true |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4343 |
ignoreWarnings:true. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4344 |
|
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4345 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4346 |
vars := Set new. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4347 |
doInstVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4348 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4349 |
instVars := parser readInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4350 |
] ifFalse:[ |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4351 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4352 |
instVars := parser modifiedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4353 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4354 |
instVars := parser usedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4355 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4356 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4357 |
vars addAll:instVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4358 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4359 |
doClassVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4360 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4361 |
classVars := parser readClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4362 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4363 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4364 |
classVars := parser modifiedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4365 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4366 |
classVars := parser usedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4367 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4368 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4369 |
vars addAll:classVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4370 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4371 |
doPoolVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4372 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4373 |
poolVars := parser readPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4374 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4375 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4376 |
poolVars := parser modifiedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4377 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4378 |
poolVars := parser usedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4379 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4380 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4381 |
vars addAll:poolVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4382 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4383 |
doGlobals ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4384 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4385 |
globals := parser readGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4386 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4387 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4388 |
globals := parser modifiedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4389 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4390 |
globals := parser usedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4391 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4392 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4393 |
vars addAll:globals. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4394 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4395 |
vars size > 0 ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4396 |
needMatch ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4397 |
result := vars contains:[:cv | (varName match:cv)] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4398 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4399 |
result := vars includes:varName |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4400 |
] |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4401 |
] |
7914 | 4402 |
]. |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4403 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4404 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4405 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4406 |
"/ For all other languages, ask method. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4407 |
vars := Set new. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4408 |
doInstVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4409 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4410 |
instVars := m readInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4411 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4412 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4413 |
instVars := m modifiedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4414 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4415 |
instVars := m usedInstVars |
504 | 4416 |
] |
4417 |
]. |
|
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4418 |
vars addAll:instVars. |
504 | 4419 |
]. |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4420 |
doClassVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4421 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4422 |
classVars := m readClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4423 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4424 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4425 |
classVars := m modifiedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4426 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4427 |
classVars := m usedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4428 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4429 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4430 |
vars addAll:classVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4431 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4432 |
doPoolVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4433 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4434 |
poolVars := m readPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4435 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4436 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4437 |
poolVars := m modifiedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4438 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4439 |
poolVars := m usedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4440 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4441 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4442 |
vars addAll:poolVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4443 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4444 |
doGlobals ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4445 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4446 |
globals := m readGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4447 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4448 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4449 |
globals := m modifiedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4450 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4451 |
globals := m usedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4452 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4453 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4454 |
vars addAll:globals. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4455 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4456 |
vars size > 0 ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4457 |
needMatch ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4458 |
result := vars contains:[:cv | (varName match:cv)] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4459 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4460 |
result := vars includes:varName |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4461 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4462 |
] |
504 | 4463 |
]. |
4464 |
Processor yield. |
|
4465 |
result |
|
36 | 4466 |
]. |
203 | 4467 |
^ searchBlock |
504 | 4468 |
|
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4469 |
"Modified: / 06-09-2013 / 18:02:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17596 | 4470 |
"Modified: / 23-07-2017 / 13:47:40 / cg" |
2642 | 4471 |
! |
4472 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4473 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4474 |
"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
|
4475 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4476 |
^ 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
|
4477 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4478 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4479 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4480 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4481 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4482 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4483 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4484 |
"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
|
4485 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4486 |
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
|
4487 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4488 |
^ 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
|
4489 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4490 |
|
2677 | 4491 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 4492 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 4493 |
aString is referenced; |
4494 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4495 |
||
4496 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
4497 |
! |
|
4498 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4499 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4500 |
"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
|
4501 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4502 |
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
|
4503 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4504 |
^ 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
|
4505 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4506 |
|
2728 | 4507 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
4508 |
"return all methods in aClass where the classVar named |
|
4509 |
aString is referenced; |
|
4510 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4511 |
||
4512 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
4513 |
! |
|
4514 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4515 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4516 |
"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
|
4517 |
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
|
4518 |
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
|
4519 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4520 |
^ 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
|
4521 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4522 |
|
2677 | 4523 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
4524 |
"return all methods in aClass and subclasses |
|
4525 |
where the classVar named aString is referenced; |
|
4526 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4527 |
||
4528 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
4529 |
||
4530 |
! |
|
4531 |
||
5094 | 4532 |
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
5243 | 4533 |
"return a collection of all methods in aCollectionOfClasses |
5094 | 4534 |
containing a matching piece of code. |
4535 |
This may be slow, since source-code has to be scanned." |
|
4536 |
||
4537 |
|searchBlock| |
|
4538 |
||
9879 | 4539 |
searchBlock := self searchBlockForCode:aCodeString in:aCollectionOfClasses isMethod:isMethod. |
5226 | 4540 |
searchBlock isNil ifTrue:[ ^ nil]. |
5094 | 4541 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
9879 | 4542 |
|
4543 |
"Modified: / 02-05-2011 / 13:25:15 / sr" |
|
5094 | 4544 |
! |
4545 |
||
5243 | 4546 |
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod |
4547 |
"return a collection of all methods in aCollectionOfMethods |
|
4548 |
containing a matching piece of code." |
|
4549 |
||
4550 |
|searchBlock| |
|
4551 |
||
9879 | 4552 |
searchBlock := self searchBlockForCode:aCodeString in:(aCollectionOfMethods collect:[:each | each mclass]) isMethod:isMethod. |
5243 | 4553 |
searchBlock isNil ifTrue:[ ^ nil]. |
4554 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
9879 | 4555 |
|
4556 |
"Modified: / 02-05-2011 / 13:25:39 / sr" |
|
5243 | 4557 |
! |
4558 |
||
9482 | 4559 |
findExceptionHandlersIn:aCollectionOfClasses |
4560 |
"return a collection of all methods in aCollectionOfClasses |
|
4561 |
containing an exception raiser. |
|
4562 |
This may be slow, since source-code has to be scanned." |
|
4563 |
||
4564 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher handlesException) in:aCollectionOfClasses |
|
4565 |
||
4566 |
"Modified: / 11-05-2010 / 16:18:55 / cg" |
|
4567 |
! |
|
4568 |
||
4569 |
findExceptionHandlersInMethods:aCollectionOfMethods |
|
4570 |
"return a collection of all methods in aCollectionOfClasses |
|
4571 |
containing an exception raiser. |
|
4572 |
This may be slow, since source-code has to be scanned." |
|
4573 |
||
4574 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher handlesException) inMethods:aCollectionOfMethods |
|
4575 |
||
4576 |
"Created: / 11-05-2010 / 16:20:48 / cg" |
|
4577 |
! |
|
4578 |
||
4579 |
findExceptionRaisersIn:aCollectionOfClasses |
|
4580 |
"return a collection of all methods in aCollectionOfClasses |
|
4581 |
containing an exception raiser. |
|
4582 |
This may be slow, since source-code has to be scanned." |
|
4583 |
||
4584 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher raisesException) in:aCollectionOfClasses |
|
4585 |
||
4586 |
"Modified: / 11-05-2010 / 16:18:48 / cg" |
|
4587 |
! |
|
4588 |
||
4589 |
findExceptionRaisersInMethods:aCollectionOfMethods |
|
4590 |
"return a collection of all methods in aCollectionOfClasses |
|
4591 |
containing an exception raiser. |
|
4592 |
This may be slow, since source-code has to be scanned." |
|
4593 |
||
4594 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher raisesException) inMethods:aCollectionOfMethods |
|
4595 |
||
4596 |
"Created: / 11-05-2010 / 16:20:36 / cg" |
|
4597 |
! |
|
4598 |
||
8129 | 4599 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 4600 |
"return a collection of all help-spec methods in aCollectionOfClasses |
4601 |
containing a string in their source. |
|
4602 |
This may be slow, since source-code has to be scanned." |
|
8129 | 4603 |
|
4604 |
^ self |
|
4605 |
findSpecMethodsFor:#help |
|
4606 |
withString:aString |
|
4607 |
in:aCollectionOfClasses |
|
4608 |
ignoreCase:ignoreCase |
|
4609 |
! |
|
4610 |
||
4611 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4612 |
"return a collection of all help-spec methods in aCollectionOfClasses |
|
4613 |
containing a string in their source. |
|
4614 |
This may be slow, since source-code has to be scanned." |
|
4615 |
||
4616 |
^ self |
|
4617 |
findSpecMethodsFor:#help |
|
4618 |
withString:aString |
|
4619 |
in:aCollectionOfClasses |
|
4620 |
ignoreCase:ignoreCase |
|
4621 |
match:doMatch |
|
3314 | 4622 |
! |
4623 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4624 |
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
3675 | 4625 |
"search for all implementors of aSelector in |
16586 | 4626 |
the classes contained in aCollectionOfClasses and their metaclasses. |
3675 | 4627 |
Return a collection of methods" |
4628 |
||
16597 | 4629 |
|lcSelector list compare testST testJava srchBlockST srchBlockJava collectionOfClasses| |
3675 | 4630 |
|
4631 |
list := IdentitySet new. |
|
6051 | 4632 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
4633 |
||
16395 | 4634 |
(doMatch and:[aSelectorMatchString includesMatchCharacters]) ifTrue:[ |
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4635 |
compare := [:sel :search | sel match:search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4636 |
] ifFalse:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4637 |
compare := [:sel :search | sel = search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4638 |
]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4639 |
|
3675 | 4640 |
ignoreCase == true ifTrue:[ |
4641 |
lcSelector := aSelectorMatchString asLowercase. |
|
4642 |
||
15075 | 4643 |
testST := [:mthdSelector :aMethod | (compare value:lcSelector value:mthdSelector asLowercase) ]. |
4644 |
testJava := [:mthdSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ]. |
|
3675 | 4645 |
] ifFalse:[ |
15075 | 4646 |
testST := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:mthdSelector) ]. |
4647 |
testJava := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
|
3675 | 4648 |
]. |
4649 |
||
15075 | 4650 |
srchBlockST := [:mthdSelector :mthd | (testST value:mthdSelector value:mthd) ifTrue:[ list add:mthd]]. |
4651 |
srchBlockJava := [:mthdSelector :mthd | (testJava value:mthdSelector value:mthd) ifTrue:[ list add:mthd]]. |
|
11452 | 4652 |
|
16597 | 4653 |
(collectionOfClasses := aCollectionOfClasses) isNil ifTrue:[ |
4654 |
collectionOfClasses := Smalltalk allClasses |
|
4655 |
]. |
|
4656 |
collectionOfClasses do:[:aClass | |
|
11452 | 4657 |
|srchBlock| |
3675 | 4658 |
|
4659 |
aClass isObsolete ifFalse:[ |
|
11452 | 4660 |
srchBlock := aClass isJavaClass |
4661 |
ifTrue:[ srchBlockJava ] |
|
4662 |
ifFalse:[ srchBlockST ]. |
|
4663 |
||
3675 | 4664 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
4665 |
aClass isMeta ifFalse:[ |
|
4666 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
4667 |
] |
|
4668 |
] |
|
4669 |
]. |
|
4670 |
||
4671 |
^ list |
|
4672 |
||
4673 |
" |
|
11452 | 4674 |
SystemBrowser |
4675 |
findImplementorsOf:#+ |
|
4676 |
in: { Number . Float . SmallInteger } |
|
4677 |
ignoreCase: false |
|
16395 | 4678 |
|
4679 |
Time millisecondsToRun:[ |
|
4680 |
SystemBrowser |
|
4681 |
findImplementorsOf:#add: |
|
4682 |
in: (Smalltalk allClasses) |
|
4683 |
ignoreCase: false |
|
4684 |
] |
|
11452 | 4685 |
" |
4686 |
||
4687 |
"Modified (format): / 22-03-2012 / 07:28:50 / cg" |
|
3675 | 4688 |
! |
4689 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4690 |
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4691 |
"search for all implementors of aSelector in |
16395 | 4692 |
the classes contained in aCollectionOfClasses and their metaclasses. |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4693 |
Return a collection of methods" |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4694 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4695 |
|list compare testST testJava lcSelector| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4696 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4697 |
list := IdentitySet new. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4698 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4699 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4700 |
doMatch ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4701 |
compare := [:sel :search | sel match:search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4702 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4703 |
compare := [:sel :search | sel = search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4704 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4705 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4706 |
ignoreCase == true ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4707 |
lcSelector := aSelectorMatchString asLowercase. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4708 |
|
15075 | 4709 |
testST := [:mthdSelector :aMethod | (compare value:lcSelector value:mthdSelector asLowercase) ]. |
4710 |
testJava := [:mthdSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ]. |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4711 |
] ifFalse:[ |
15075 | 4712 |
testST := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:mthdSelector) ]. |
4713 |
testJava := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4714 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4715 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4716 |
aCollectionOfMethods do:[:eachMethod | |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4717 |
|cls sel testBlock| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4718 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4719 |
cls := eachMethod mclass. |
7066 | 4720 |
(cls isNil or:[cls isObsolete]) ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4721 |
cls isJavaClass ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4722 |
testBlock := testJava |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4723 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4724 |
testBlock := testST |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4725 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4726 |
sel := eachMethod selector. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4727 |
(testBlock value:sel value:eachMethod) ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4728 |
list add:eachMethod |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4729 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4730 |
] |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4731 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4732 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4733 |
^ list |
7066 | 4734 |
|
4735 |
"Modified: / 29-08-2006 / 14:33:42 / cg" |
|
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4736 |
! |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4737 |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4738 |
findImplementorsMatching:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4739 |
"search for all implementors of aSelector in |
16586 | 4740 |
the classes contained in aCollectionOfClasses and their metaclasses. |
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4741 |
Return a collection of methods" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4742 |
|
11452 | 4743 |
^ self |
4744 |
findImplementors:aSelectorMatchString |
|
4745 |
in:aCollectionOfClasses |
|
4746 |
ignoreCase:ignoreCase |
|
4747 |
match:true |
|
4748 |
||
4749 |
" |
|
4750 |
SystemBrowser |
|
4751 |
findImplementorsOf:#+ |
|
4752 |
in:{ Number . Float . SmallInteger } |
|
16443 | 4753 |
ignoreCase:false |
11452 | 4754 |
" |
4755 |
||
4756 |
"Modified (comment): / 22-03-2012 / 07:20:42 / cg" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4757 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4758 |
|
3675 | 4759 |
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4760 |
"search for all implementors of any in aCollectionOfSelectors in |
|
16586 | 4761 |
the classes contained in aCollectionOfClasses and their metaclasses. |
3675 | 4762 |
Return a collection of methods. |
4763 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4764 |
||
6052 | 4765 |
^ aCollectionOfSelectors |
4766 |
collectAll:[:eachSelector | |
|
4767 |
self findImplementorsMatching:eachSelector |
|
4768 |
in:aCollectionOfClasses |
|
4769 |
ignoreCase:ignoreCase. |
|
4770 |
]. |
|
4771 |
||
4772 |
"/ |implementors| |
|
4773 |
"/ |
|
6051 | 4774 |
"/ implementors := IdentitySet new. |
4775 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4776 |
"/ implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
4777 |
"/ ]. |
|
6052 | 4778 |
"/ ^ implementors |
6051 | 4779 |
|
4780 |
" |
|
4781 |
self |
|
4782 |
findImplementorsMatchingAny:#( 'at*:' '*size') |
|
4783 |
in:(Smalltalk allClasses) |
|
4784 |
ignoreCase:true |
|
4785 |
" |
|
3675 | 4786 |
! |
4787 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4788 |
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
2642 | 4789 |
"search for all implementors of aSelector in |
16586 | 4790 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2642 | 4791 |
Return a collection of methods" |
4792 |
||
6480 | 4793 |
^ self |
4794 |
findImplementors:aSelectorMatchString |
|
4795 |
in:aCollectionOfClasses |
|
4796 |
ignoreCase:ignoreCase |
|
4797 |
match:false |
|
2642 | 4798 |
|
4799 |
" |
|
4800 |
SystemBrowser findImplementorsOf:#+ |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4801 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4802 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4803 |
with:SmallInteger) |
2642 | 4804 |
" |
4805 |
! |
|
4806 |
||
2811 | 4807 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4808 |
"search for all implementors of any in aCollectionOfSelectors in |
|
16586 | 4809 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2811 | 4810 |
Return a collection of methods. |
4811 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4812 |
||
6052 | 4813 |
^ aCollectionOfSelectors |
4814 |
collectAll:[:eachSelector | |
|
4815 |
self findImplementorsOf:eachSelector |
|
4816 |
in:aCollectionOfClasses |
|
4817 |
ignoreCase:ignoreCase. |
|
4818 |
]. |
|
4819 |
||
4820 |
"/ |implementors| |
|
4821 |
"/ |
|
4822 |
"/ implementors := IdentitySet new. |
|
4823 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4824 |
"/ implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
4825 |
"/ ]. |
|
4826 |
"/ ^ implementors |
|
2811 | 4827 |
! |
4828 |
||
2741 | 4829 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
4830 |
"return all methods in aCollectionOfClasses where the instVar named |
|
4831 |
aString is referenced; |
|
4832 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4833 |
||
4834 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
4835 |
! |
|
4836 |
||
2677 | 4837 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 4838 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 4839 |
aString is referenced; if modsOnly is true, browse only methods where the |
4840 |
instvar is modified" |
|
4841 |
||
4842 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
4843 |
! |
|
4844 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4845 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4846 |
"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
|
4847 |
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
|
4848 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4849 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4850 |
^ 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
|
4851 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4852 |
|
2728 | 4853 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
4854 |
"return all methods in aClass where the instVar named |
|
4855 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
4856 |
instvar is modified" |
|
4857 |
||
4858 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
4859 |
! |
|
4860 |
||
2741 | 4861 |
findInstRefsTo:aString under:aClass access:accessType |
4862 |
"return all methods in aClass and subclasses |
|
4863 |
where the classVar named aString is referenced; |
|
4864 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4865 |
||
4866 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
4867 |
! |
|
4868 |
||
2677 | 4869 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
4870 |
"return all methods in aClass and subclasses |
|
4871 |
where the instVar named aString is referenced; |
|
4872 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4873 |
||
4874 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
4875 |
! |
|
4876 |
||
8129 | 4877 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 4878 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
4879 |
containing a string in their source. |
|
4880 |
This may be slow, since source-code has to be scanned." |
|
8129 | 4881 |
|
4882 |
^ self |
|
4883 |
findSpecMethodsFor:#menu |
|
4884 |
withString:aString |
|
4885 |
in:aCollectionOfClasses |
|
4886 |
ignoreCase:ignoreCase |
|
4887 |
! |
|
4888 |
||
4889 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4890 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
|
4891 |
containing a string in their source. |
|
4892 |
This may be slow, since source-code has to be scanned." |
|
4893 |
||
4894 |
^ self |
|
4895 |
findSpecMethodsFor:#menu |
|
4896 |
withString:aString |
|
4897 |
in:aCollectionOfClasses |
|
4898 |
ignoreCase:ignoreCase |
|
4899 |
match:doMatch |
|
3314 | 4900 |
! |
4901 |
||
11934 | 4902 |
findPoolVarRefsTo:aString inClass:aClass access:accessType |
4903 |
"return all methods in aClass where the pool variable named aString is referenced; |
|
4904 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4905 |
||
4906 |
|filter| |
|
4907 |
||
4908 |
filter := self |
|
4909 |
filterToSearchRefsTo:aString |
|
4910 |
instVars:false classVars:false globals:false poolVars:true |
|
4911 |
access:accessType. |
|
4912 |
||
4913 |
^ self findMethodsIn:(Array with:aClass) inst:true class:true where:filter. |
|
4914 |
! |
|
4915 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4916 |
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
|
4917 |
"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
|
4918 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4919 |
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
|
4920 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4921 |
|filter| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4922 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4923 |
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
|
4924 |
^ 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
|
4925 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4926 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4927 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4928 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4929 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4930 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4931 |
modificationsOnly:true |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4932 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4933 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4934 |
|
2677 | 4935 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4936 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
4937 |
varName is referenced; |
|
4938 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4939 |
||
4940 |
|filter| |
|
4941 |
||
4942 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
4943 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
4944 |
||
4945 |
" |
|
4946 |
self |
|
4947 |
findRefsTo:'x' |
|
4948 |
classVars:false |
|
4949 |
in:(Array with:Point) |
|
4950 |
modificationsOnly:true |
|
4951 |
" |
|
4952 |
! |
|
4953 |
||
2692 | 4954 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
4955 |
"return a collection of all methods in aCollectionOfClasses |
|
4956 |
containing a resource." |
|
4957 |
||
4958 |
|searchBlock| |
|
4959 |
||
4960 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
4961 |
searchBlock := [:c :m :sel | |resources| |
|
4962 |
(resources := m resources) size > 0 |
|
4963 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
4964 |
]. |
|
4965 |
] ifFalse:[ |
|
4966 |
searchBlock := [:c :m :sel | |resources| |
|
4967 |
(resources := m resources) size > 0 |
|
4968 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
4969 |
]. |
|
4970 |
]. |
|
4971 |
||
4972 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4973 |
||
4974 |
" |
|
4975 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
4976 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
4977 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
4978 |
" |
|
4979 |
! |
|
4980 |
||
10188
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4981 |
findResource:aStringOrEmpty match:doMatch ignoreCase:ignoreCase in:aCollectionOfClasses |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4982 |
"return a collection of all methods in aCollectionOfClasses containing a matching resource." |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4983 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4984 |
|matchCheck lcSearchString| |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4985 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4986 |
aStringOrEmpty isEmptyOrNil ifTrue:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4987 |
matchCheck := [:aResourceName | true ] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4988 |
] ifFalse:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4989 |
doMatch ifTrue:[ |
13438 | 4990 |
matchCheck := [:aResourceName | aStringOrEmpty match:aResourceName caseSensitive:ignoreCase not] |
10188
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4991 |
] ifFalse:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4992 |
ignoreCase ifTrue:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4993 |
lcSearchString := aStringOrEmpty asLowercase. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4994 |
matchCheck := [:aResourceName | aResourceName asLowercase = lcSearchString] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4995 |
] ifFalse:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4996 |
matchCheck := [:aResourceName | aResourceName = aStringOrEmpty ] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4997 |
] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4998 |
]. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4999 |
]. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5000 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5001 |
^ self |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5002 |
findMethodsIn:aCollectionOfClasses |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5003 |
where:[:c :m :sel | |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5004 |
m hasResource |
12073 | 5005 |
and:[m resources notNil and:[m resources keys contains:matchCheck]] |
10188
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5006 |
]. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5007 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5008 |
" |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5009 |
SystemBrowser findResource:'*debug*' match:true ignoreCase:true in:(GenericException withAllSubclasses) |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5010 |
" |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5011 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5012 |
"Created: / 06-07-2011 / 12:14:24 / cg" |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5013 |
! |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5014 |
|
16586 | 5015 |
findRespondersOfAll:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
5016 |
"search for all classes which respond to all of the selectors in aCollectionOfSelectors. |
|
5017 |
Search within the classes contained in aCollectionOfClasses and their metaclasses. |
|
5018 |
This will skip over unloaded classes. |
|
5019 |
Return a collection of classes." |
|
5020 |
||
5021 |
^ Smalltalk allClasses |
|
5022 |
select:[:cls | |
|
5023 |
cls isLoaded |
|
5024 |
and:[ aCollectionOfSelectors conform:[:sel | cls canUnderstand:sel]]]. |
|
5025 |
||
5026 |
" |
|
5027 |
to find classes which respond to both indexOf: and replaceFromIndex:toIndex:, |
|
5028 |
use: |
|
5029 |
SystemBrowser |
|
5030 |
findRespondersOfAll:#( indexOf: removeFromIndex:toIndex: ) |
|
5031 |
in:nil |
|
5032 |
ignoreCase:false |
|
5033 |
" |
|
5034 |
! |
|
5035 |
||
2642 | 5036 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
5037 |
"search for all senders of aSelector in |
|
16586 | 5038 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2642 | 5039 |
Return a collection of methods" |
5040 |
||
4270 | 5041 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2642 | 5042 |
|
5043 |
" |
|
5044 |
SystemBrowser findSendersOf:#+ |
|
5045 |
in:(Array with:Number |
|
5046 |
with:Float |
|
5047 |
with:SmallInteger) |
|
5048 |
ignoreCase:false |
|
5049 |
" |
|
4270 | 5050 |
! |
5051 |
||
5052 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5053 |
"search for all senders of aSelector in |
|
16586 | 5054 |
the classes contained in aCollectionOfClasses and their metaclasses. |
4270 | 5055 |
Return a collection of methods" |
5056 |
||
5057 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5058 |
||
5059 |
" |
|
5060 |
SystemBrowser findSendersOf:#+ |
|
5061 |
in:(Array with:Number |
|
5062 |
with:Float |
|
5063 |
with:SmallInteger) |
|
5064 |
ignoreCase:false |
|
5065 |
" |
|
2675 | 5066 |
! |
5067 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5068 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5069 |
"search for all senders of aSelector in aCollectionOfMethods. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5070 |
Return a collection of methods" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5071 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5072 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5073 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5074 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase. |
9313
44795fcbf414
changed: #findSendersOf:inMethods:ignoreCase:
Claus Gittinger <cg@exept.de>
parents:
9312
diff
changeset
|
5075 |
searchBlock isNil ifTrue:[^ #() ]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5076 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5077 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5078 |
|
4350 | 5079 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5080 |
"search for all senders of aSelector in aCollectionOfMethods. |
|
5081 |
Return a collection of methods" |
|
5082 |
||
5083 |
|searchBlock| |
|
5084 |
||
5085 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
|
9312
71f84182390a
changed: #findSendersOf:inMethods:ignoreCase:match:
Claus Gittinger <cg@exept.de>
parents:
9189
diff
changeset
|
5086 |
searchBlock isNil ifTrue:[^ #() ]. |
4350 | 5087 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
5088 |
! |
|
5089 |
||
17624 | 5090 |
findSendersOfAll:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
5091 |
"search for methods which send all selectors in aCollectionOfSelectors in |
|
5092 |
the classes contained in aCollectionOfClasses and their metaclasses. |
|
5093 |
Return a collection of methods." |
|
5094 |
||
5095 |
^ (self allCallsOn:(aCollectionOfSelectors first) |
|
5096 |
in:aCollectionOfClasses |
|
5097 |
ignoreCase:ignoreCase |
|
5098 |
match:false |
|
5099 |
) select:[:mthd | |
|
5100 |
mthd messagesSent includesAll:aCollectionOfSelectors |
|
5101 |
]. |
|
5102 |
||
5103 |
" |
|
5104 |
SystemBrowser |
|
5105 |
findSendersOfAll:#(#'+' #'-') |
|
5106 |
in:(Smalltalk allClasses) |
|
5107 |
ignoreCase:false |
|
5108 |
" |
|
5109 |
||
5110 |
"Created: / 24-08-2017 / 13:10:25 / cg" |
|
5111 |
! |
|
5112 |
||
2811 | 5113 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
5114 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
16586 | 5115 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2811 | 5116 |
Return a collection of methods. |
5117 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
5118 |
||
6052 | 5119 |
^ aCollectionOfSelectors |
5120 |
collectAll:[:eachSelector | |
|
6184 | 5121 |
(self allCallsOn:eachSelector |
6052 | 5122 |
in:aCollectionOfClasses |
5123 |
ignoreCase:ignoreCase |
|
6184 | 5124 |
match:false) asSet. |
6052 | 5125 |
]. |
5126 |
||
5127 |
"/ |allSenders| |
|
5128 |
"/ |
|
5129 |
"/ allSenders := IdentitySet new. |
|
5130 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
5131 |
"/ allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true) |
|
5132 |
"/ ]. |
|
5133 |
"/ ^ allSenders |
|
2811 | 5134 |
|
5135 |
" |
|
5136 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
5137 |
in:(Array with:Number |
|
5138 |
with:Float |
|
5139 |
with:SmallInteger) |
|
5140 |
ignoreCase:false |
|
5141 |
" |
|
5142 |
! |
|
5143 |
||
3314 | 5144 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5145 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
5146 |
containing a string in their source. |
|
5147 |
This may be slow, since source-code has to be scanned." |
|
5148 |
||
8129 | 5149 |
self |
5150 |
findSpecMethodsFor:specSymbol |
|
5151 |
withString:aString |
|
5152 |
in:aCollectionOfClasses |
|
5153 |
ignoreCase:ignoreCase |
|
5154 |
match:true |
|
5155 |
! |
|
5156 |
||
5157 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5158 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
5159 |
containing a string in their source. |
|
5160 |
This may be slow, since source-code has to be scanned." |
|
5161 |
||
5162 |
|searchBlock innerSearchBlock| |
|
5163 |
||
5164 |
innerSearchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
|
5165 |
||
5166 |
searchBlock := [:c :m :sel | |
|
5167 |
|resources| |
|
3314 | 5168 |
|
5169 |
((resources := m resources) size > 0 |
|
5170 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
8129 | 5171 |
innerSearchBlock value:c value:m value:sel |
3314 | 5172 |
] |
8129 | 5173 |
]. |
5174 |
||
3314 | 5175 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
5176 |
! |
|
5177 |
||
8129 | 5178 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5243 | 5179 |
"return a collection of all methods in aCollectionOfClasses |
2675 | 5180 |
containing a string in their source. |
5181 |
This may be slow, since source-code has to be scanned." |
|
8129 | 5182 |
|
5183 |
^ self |
|
5184 |
findString:aString |
|
5185 |
in:aCollectionOfClasses |
|
5186 |
ignoreCase:ignoreCase |
|
5187 |
match:true |
|
5188 |
||
5189 |
" |
|
5190 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5191 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5192 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5193 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5194 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5243 | 5195 |
"return a collection of all methods in aCollectionOfClasses |
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5196 |
containing a string in their source. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5197 |
This may be slow, since source-code has to be scanned." |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5198 |
|
16691 | 5199 |
^ self findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
5200 |
||
5201 |
" |
|
5202 |
SystemBrowser |
|
5203 |
findString:'should' |
|
5204 |
in:(Array with:Object) |
|
5205 |
ignoreCase:false |
|
5206 |
" |
|
5207 |
! |
|
5208 |
||
5209 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5210 |
"return a collection of all methods in aCollectionOfClasses |
|
5211 |
containing a string in their source. |
|
5212 |
This may be slow, since source-code has to be scanned." |
|
5213 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5214 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5215 |
|
16691 | 5216 |
searchBlock := |
5217 |
self |
|
5218 |
searchBlockForString:aString |
|
5219 |
ignoreCase:ignoreCase |
|
5220 |
match:doMatch |
|
5221 |
fullWordsOnly:fullWordsOnly. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5222 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5223 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5224 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5225 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5226 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5227 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5228 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5229 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5243 | 5230 |
"return a collection of all methods in aCollectionOfClasses |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5231 |
containing a string in their source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5232 |
This may be slow, since source-code has to be scanned." |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5233 |
|
16691 | 5234 |
^ self findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
5235 |
! |
|
5236 |
||
5237 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5238 |
"return a collection of all methods in aCollectionOfClasses |
|
5239 |
containing a string in their source. |
|
5240 |
This may be slow, since source-code has to be scanned." |
|
5241 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5242 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5243 |
|
16691 | 5244 |
searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5245 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5246 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5247 |
|
5877 | 5248 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5249 |
"return a collection of all methods in aCollectionOfClasses |
|
5250 |
containing a string in any of their string-literals." |
|
5251 |
||
16691 | 5252 |
^ self |
5253 |
findStringLiteral:aString in:aCollectionOfClasses |
|
5254 |
ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
|
5255 |
||
5256 |
" |
|
5257 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5258 |
" |
|
5259 |
! |
|
5260 |
||
5261 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5262 |
"return a collection of all methods in aCollectionOfClasses |
|
5263 |
containing a string in any of their string-literals." |
|
5264 |
||
5877 | 5265 |
|searchBlock| |
5266 |
||
16691 | 5267 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly. |
5877 | 5268 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
5269 |
||
5270 |
" |
|
5271 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5272 |
" |
|
5273 |
! |
|
5274 |
||
5275 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
|
5276 |
"return a collection of all methods in aCollectionOfClasses |
|
5277 |
containing a string in any of their string-literals." |
|
5278 |
||
16691 | 5279 |
^ self |
5280 |
findStringLiteral:aString inMethods:aCollectionOfMethods |
|
5281 |
ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
|
5282 |
! |
|
5283 |
||
5284 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5285 |
"return a collection of all methods in aCollectionOfClasses |
|
5286 |
containing a string in any of their string-literals." |
|
5287 |
||
5877 | 5288 |
|searchBlock| |
5289 |
||
16691 | 5290 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly. |
5877 | 5291 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
5292 |
! |
|
5293 |
||
9482 | 5294 |
findUsingParseTreeSearcher:searcher in:aCollectionOfClasses |
5295 |
"return a collection of all methods in aCollectionOfClasses |
|
5296 |
containing an exception raiser. |
|
5297 |
This may be slow, since source-code has to be scanned." |
|
5298 |
||
5299 |
|searchBlock| |
|
5300 |
||
5301 |
searchBlock := self searchBlockForParseTreeSearcher:searcher isMethod:false. |
|
5302 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
5303 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
5304 |
||
5305 |
"Created: / 11-05-2010 / 16:18:36 / cg" |
|
5306 |
! |
|
5307 |
||
5308 |
findUsingParseTreeSearcher:searcher inMethods:aCollectionOfMethods |
|
5309 |
"return a collection of all methods in aCollectionOfClasses |
|
5310 |
containing an exception raiser. |
|
5311 |
This may be slow, since source-code has to be scanned." |
|
5312 |
||
5313 |
|searchBlock| |
|
5314 |
||
5315 |
searchBlock := self searchBlockForParseTreeSearcher:searcher isMethod:false. |
|
5316 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
5317 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
5318 |
||
5319 |
"Created: / 11-05-2010 / 16:20:12 / cg" |
|
5320 |
! |
|
5321 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5322 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase |
4270 | 5323 |
^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true |
5324 |
! |
|
5325 |
||
16337 | 5326 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatchArg |
5327 |
"return an optimized search block for the senders search. |
|
5328 |
Because this highly affects the speed of the senders-search in the browser, |
|
5329 |
specialized blocks are returned, depending on whether a selector-match or casesensitive |
|
5330 |
search is wanted |
|
5331 |
(these operations are executed a zillion times in an inner loop, |
|
5332 |
therefore, the speedup is noticable)" |
|
5333 |
||
16462 | 5334 |
|doMatch sel quickSearch idx| |
16337 | 5335 |
|
5336 |
doMatch := doMatchArg. |
|
5337 |
(doMatch and:[aSelectorString = '*']) ifTrue:[ |
|
5338 |
"a trivial block, which matches everything" |
|
5339 |
^ [:class :method :s | true]. |
|
5340 |
]. |
|
5341 |
||
5342 |
aSelectorString includesMatchCharacters ifFalse:[ |
|
5343 |
doMatch := false |
|
5344 |
]. |
|
5345 |
||
5346 |
(doMatch or:[ignoreCase]) ifTrue:[ |
|
8685
b39dc53c40ae
dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents:
8678
diff
changeset
|
5347 |
"/ a matchString or ignoreCase - need string matching procedure |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5348 |
|
16337 | 5349 |
quickSearch := aSelectorString. |
5350 |
(quickSearch startsWith:'*') ifTrue:[ |
|
5351 |
quickSearch := quickSearch copyButFirst |
|
5352 |
]. |
|
5353 |
(quickSearch endsWith:'*') ifTrue:[ |
|
5354 |
quickSearch := quickSearch copyButLast |
|
5355 |
]. |
|
16395 | 5356 |
|
5357 |
"/ for keyword selector searches, only look for the first KW-part in the quicksearch |
|
5358 |
"/ for matches, only look for substrings up to the first match character |
|
5359 |
(idx := quickSearch indexOfAny:'*#[:') ~~ 0 ifTrue:[ |
|
5360 |
quickSearch := quickSearch copyTo:idx-1. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5361 |
]. |
16395 | 5362 |
|
16337 | 5363 |
(ignoreCase and:[quickSearch includesMatchCharacters not]) ifTrue:[ |
5364 |
doMatch ifFalse:[ |
|
5365 |
^ [:class :methodArg :s | |
|
16462 | 5366 |
|method src inLiterals skip| |
16395 | 5367 |
|
5368 |
inLiterals := skip := false. |
|
16337 | 5369 |
method := methodArg originalMethodIfWrapped. |
5370 |
method isLazyMethod ifTrue:[ |
|
5371 |
src := method source. |
|
5372 |
(src notNil and:[src includesString:aSelectorString caseSensitive:false]) ifTrue:[ |
|
5373 |
method makeRealMethod. |
|
16395 | 5374 |
] ifFalse:[ |
5375 |
skip := true |
|
5376 |
]. |
|
5377 |
]. |
|
5378 |
skip ifFalse:[ |
|
16462 | 5379 |
inLiterals := |
5380 |
(method |
|
5381 |
literalsDetect:[:aLiteral| |
|
5382 |
(aLiteral isMemberOf:Symbol) |
|
5383 |
and:[(aLiteral sameAs:aSelectorString)]] |
|
5384 |
ifNone:nil) notNil |
|
16337 | 5385 |
]. |
5386 |
||
5387 |
inLiterals |
|
5388 |
and:[ |
|
5389 |
method messagesSent contains:[:msg | msg sameAs:aSelectorString ] |
|
5390 |
] |
|
5391 |
]. |
|
5392 |
]. |
|
5393 |
||
5394 |
^ [:class :methodArg :s | |
|
16462 | 5395 |
|method src inLiterals skip| |
16395 | 5396 |
|
5397 |
inLiterals := skip := false. |
|
16337 | 5398 |
method := methodArg originalMethodIfWrapped. |
5399 |
method isLazyMethod ifTrue:[ |
|
5400 |
src := method source. |
|
5401 |
(src notNil and:[src includesString:quickSearch caseSensitive:false]) ifTrue:[ |
|
5402 |
method makeRealMethod. |
|
16395 | 5403 |
] ifFalse:[ |
5404 |
skip := true |
|
5405 |
]. |
|
5406 |
]. |
|
5407 |
skip ifFalse:[ |
|
16462 | 5408 |
inLiterals := |
5409 |
(method |
|
5410 |
literalsDetect:[:aLiteral| |
|
5411 |
(aLiteral isMemberOf:Symbol) |
|
5412 |
and:[(aLiteral includesString:quickSearch caseSensitive:false) |
|
5413 |
and:[(aSelectorString match:aLiteral caseSensitive:false)]]] |
|
5414 |
ifNone:nil) notNil |
|
16337 | 5415 |
]. |
5416 |
||
5417 |
inLiterals |
|
5418 |
and:[ |
|
16462 | 5419 |
method messagesSent |
5420 |
contains:[:sel | aSelectorString match:aSelectorString caseSensitive:false] |
|
16337 | 5421 |
] |
5422 |
]. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5423 |
]. |
16337 | 5424 |
|
5425 |
(ignoreCase or:[quickSearch includesMatchCharacters]) ifFalse:[ |
|
5426 |
^ [:class :methodArg :s | |
|
16395 | 5427 |
|method src inLiterals skip| |
5428 |
||
5429 |
inLiterals := skip := false. |
|
16337 | 5430 |
method := methodArg originalMethodIfWrapped. |
5431 |
method isLazyMethod ifTrue:[ |
|
5432 |
src := method source. |
|
5433 |
(src notNil and:[src includesString:quickSearch]) ifTrue:[ |
|
5434 |
method makeRealMethod. |
|
16395 | 5435 |
] ifFalse:[ |
5436 |
skip := true |
|
5437 |
]. |
|
5438 |
]. |
|
5439 |
skip ifFalse:[ |
|
16462 | 5440 |
inLiterals := |
5441 |
(method |
|
5442 |
literalsDetect:[:aLiteral| |
|
5443 |
(aLiteral isMemberOf:Symbol) |
|
5444 |
and:[(aLiteral includesString:quickSearch) |
|
5445 |
and:[(aSelectorString match:aLiteral)]]] |
|
5446 |
ifNone:nil) notNil |
|
16337 | 5447 |
]. |
5448 |
inLiterals and:[ method messagesSent includes:aSelectorString] |
|
5449 |
]. |
|
5450 |
]. |
|
5451 |
^ [:class :methodArg :s | |
|
16395 | 5452 |
|method src inLiterals skip| |
16337 | 5453 |
|
5454 |
method := methodArg originalMethodIfWrapped. |
|
5455 |
"/ expensive search |
|
16395 | 5456 |
inLiterals := skip := false. |
16337 | 5457 |
method isLazyMethod ifTrue:[ |
5458 |
src := method source. |
|
5459 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
|
5460 |
method makeRealMethod. |
|
16395 | 5461 |
] ifFalse:[ |
5462 |
skip := true. |
|
5463 |
]. |
|
5464 |
]. |
|
5465 |
skip ifFalse:[ |
|
16462 | 5466 |
inLiterals := |
5467 |
(method literalsDetect:[:aLiteral| |
|
5468 |
(aLiteral isMemberOf:Symbol) |
|
5469 |
and:[ aSelectorString match:aLiteral asLowercase caseSensitive:ignoreCase not] |
|
5470 |
] ifNone:nil) notNil |
|
16337 | 5471 |
]. |
5472 |
inLiterals |
|
5473 |
and:[ |
|
5474 |
method messagesSent |
|
16395 | 5475 |
contains:[:anySelector | |
5476 |
aSelectorString match:anySelector caseSensitive:ignoreCase not |
|
5477 |
] |
|
16337 | 5478 |
] |
5479 |
]. |
|
5480 |
]. |
|
5481 |
||
5482 |
"/ no matchString and not ignoring case - can do it much faster |
|
5483 |
sel := aSelectorString asSymbolIfInterned. |
|
5484 |
sel isNil ifTrue:[ |
|
5485 |
^ nil "/ none |
|
5486 |
]. |
|
5487 |
||
5488 |
quickSearch := sel. |
|
16395 | 5489 |
"/ for keyword selector searches, only look for the first KW-part in the quicksearch |
5490 |
(idx := quickSearch indexOf:$:) ~~ 0 ifTrue:[ |
|
5491 |
quickSearch := quickSearch copyTo:idx-1. |
|
16337 | 5492 |
]. |
5493 |
||
5494 |
^ [:class :methodArg :s | |
|
5495 |
|method src| |
|
5496 |
||
5497 |
method := methodArg originalMethodIfWrapped. |
|
5498 |
method isLazyMethod ifTrue:[ |
|
5499 |
src := method source. |
|
5500 |
(src notNil and:[src includesString:quickSearch]) ifTrue:[ |
|
5501 |
method makeRealMethod. |
|
5502 |
method referencesLiteral: "sends:" sel. |
|
5503 |
] ifFalse:[ |
|
5504 |
false |
|
5505 |
] |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5506 |
] ifFalse:[ |
17328 | 5507 |
method sendsSelector:sel |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5508 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5509 |
]. |
10416
82d17ccb68ad
changed: #searchBlockForAllCallsOn:ignoreCase:match:
Claus Gittinger <cg@exept.de>
parents:
10386
diff
changeset
|
5510 |
|
17328 | 5511 |
"Modified: / 05-02-2017 / 01:25:14 / cg" |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5512 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5513 |
|
9879 | 5514 |
searchBlockForCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5515 |
"return a block to search for a piece of code. |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5516 |
intelligent search: because parsing and the parseTree-match is a relatively |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5517 |
expensive operation, we try hard to reduce the amount of searched methods by: |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5518 |
- extracting sent messages from the pattern, and limiting the search to |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5519 |
methods which also send all those messages, |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5520 |
- extracting accessed globals from the pattern, and limiting the search to |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5521 |
methods which also refer to those globals" |
5094 | 5522 |
|
11638
344d7d06f1d2
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
11506
diff
changeset
|
5523 |
|errAction searchTree searcher globalVariablesUsed usedSymbols usedStrings |
9879 | 5524 |
sentMessages searchBlock foundMatch numMethodArgs methodSelector nameSpacesForGlobals| |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5525 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5526 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5527 |
"/rule := ParseTreeLintRule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5528 |
"/ createParseTreeRule: (Array with: aCodeString) |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5529 |
"/ method: isMethod |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5530 |
"/ name: 'Search for: ' , aCodeString. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5531 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5532 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5533 |
"/ searchBlock := [:c :m :sel | |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5534 |
"/ rslt := SmalllintChecker |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5535 |
"/ runRule:rule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5536 |
"/ onEnvironment: (ClassEnvironment onEnvironment:(BrowserEnvironment new) classes:(Array with:c)). |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5537 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5538 |
"/ self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5539 |
"/ ]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5540 |
"/^ searchBlock. |
5226 | 5541 |
|
16597 | 5542 |
errAction := |
5543 |
[:errMsg :pos | |
|
5544 |
Dialog warn:('Error during pattern parse: %1 (position %2)' |
|
5545 |
bindWith:errMsg with:pos). |
|
5546 |
^ nil |
|
5547 |
]. |
|
5094 | 5548 |
|
5549 |
isMethod ifTrue:[ |
|
5550 |
searchTree := RBParser |
|
5551 |
parseRewriteMethod:aCodeString |
|
5226 | 5552 |
onError: errAction. |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
5553 |
numMethodArgs := searchTree arguments size. |
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
5554 |
methodSelector := searchTree selector. |
5094 | 5555 |
] ifFalse:[ |
5556 |
searchTree := RBParser |
|
5557 |
parseRewriteExpression:aCodeString |
|
5226 | 5558 |
onError: errAction. |
5094 | 5559 |
]. |
16529 | 5560 |
|
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5561 |
"/ extract messages sent by the pattern |
6368 | 5562 |
Error handle:[:ex | |
12837 | 5563 |
self halt:'check this, please'. |
6368 | 5564 |
] do:[ |
6549 | 5565 |
sentMessages := searchTree sentMessages. |
5135 | 5566 |
]. |
6581 | 5567 |
|
9879 | 5568 |
nameSpacesForGlobals := Set with:Smalltalk. |
5569 |
aCollectionOfClasses do:[:eachClass | |
|
5570 |
nameSpacesForGlobals add:eachClass topNameSpace |
|
5571 |
]. |
|
5572 |
||
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5573 |
"/ extract globals used by the pattern |
9879 | 5574 |
globalVariablesUsed := OrderedCollection new. |
5575 |
searchTree referencedVariables do:[:node | |
|
5576 |
|nm ns alternatives| |
|
5577 |
||
5578 |
node isPatternNode ifFalse:[ |
|
5579 |
nm := node name. |
|
5580 |
ns := nameSpacesForGlobals detect:[:ns | ns includesKey: nm asSymbol] ifNone:nil. |
|
5581 |
ns notNil ifTrue:[ |
|
5582 |
alternatives := OrderedCollection new. |
|
5583 |
nm asSymbolIfInterned notNil ifTrue:[ alternatives add: nm asSymbol ]. |
|
5584 |
('Smalltalk::',nm) asSymbolIfInterned notNil ifTrue:[ alternatives add: ('Smalltalk::',nm) asSymbol ]. |
|
5585 |
(ns name,'::',nm) asSymbolIfInterned notNil ifTrue:[ alternatives add: (ns name,'::',nm) asSymbol ]. |
|
5586 |
nm asSymbolIfInterned notNil ifTrue:[ alternatives add: nm asSymbol ]. |
|
5587 |
globalVariablesUsed add:alternatives |
|
5588 |
]. |
|
5589 |
] |
|
5590 |
]. |
|
5135 | 5591 |
|
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5592 |
"/ sorry: |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5593 |
"/ cannot use literals to speedup the search, because stc does not store |
12056 | 5594 |
"/ constants in the literal-array. However, we can do a string search on |
5595 |
"/ them, to avoid parsing. |
|
5596 |
usedSymbols := searchTree usedSymbols. |
|
5597 |
usedStrings := searchTree usedLiterals select:[:lit | lit isString]. |
|
7395 | 5598 |
|
5094 | 5599 |
searcher := ParseTreeSearcher new. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5600 |
isMethod ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5601 |
searcher |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
5602 |
matchesMethod:aCodeString |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5603 |
do:[:aNode :answer | foundMatch := true]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5604 |
] ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5605 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5606 |
matchesTree:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5607 |
do:[:aNode :answer | foundMatch := true]. |
6303 | 5608 |
]. |
16529 | 5609 |
searcher computeQuickSearchStrings. |
5094 | 5610 |
|
16597 | 5611 |
searchBlock := |
5612 |
[:c :m :sel | |
|
5613 |
|isSTCCompiled allSelectorsInLiteralArray allMessagesSent |
|
5614 |
allGlobalsReferenced allUsedSymbolsInLiteralArray allStringsInLiteralArray |
|
5615 |
allSent src rslt parseTree |
|
5616 |
literalsInMethod| |
|
5617 |
||
5618 |
foundMatch := false. |
|
5619 |
||
5620 |
"/ can speedup the search, by filtering for number of message-args first... |
|
5621 |
(isMethod not |
|
5622 |
or:[ numMethodArgs isNil |
|
5623 |
or:[ numMethodArgs == m numArgs ]]) ifTrue:[ |
|
5624 |
m isLazyMethod ifTrue:[ |
|
5625 |
src := m source. |
|
5626 |
src notNil ifTrue:[ |
|
5627 |
m makeRealMethod. |
|
5628 |
]. |
|
5629 |
]. |
|
5630 |
"/ can speedup the search, by quickly filtering for sent messages... |
|
5631 |
literalsInMethod := m literals. |
|
5632 |
allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ literalsInMethod includesAll:sentMessages ]. |
|
5633 |
allSelectorsInLiteralArray ifTrue:[ |
|
5634 |
"/ and used symbols/globals first... |
|
5635 |
allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ literalsInMethod includesAll:usedSymbols ]. |
|
5636 |
allUsedSymbolsInLiteralArray ifTrue:[ |
|
16600 | 5637 |
"/ if ANY string is in match, ANY string must be in method (not true, but I am lazy) |
16597 | 5638 |
"/ that does not work for stc compiled code, because it does not put strings into the literal array |
5639 |
isSTCCompiled := m byteCode isNil. |
|
5640 |
isSTCCompiled ifTrue:[ |
|
5641 |
allStringsInLiteralArray := true. "/ stc-compiled: don't know |
|
5642 |
] ifFalse:[ |
|
5643 |
allStringsInLiteralArray := usedStrings isEmptyOrNil |
|
5644 |
or:[ literalsInMethod includesAll:usedStrings "literalsInMethod contains:[:lit | lit isString]" ]. |
|
5645 |
]. |
|
5646 |
allStringsInLiteralArray ifTrue:[ |
|
5647 |
allGlobalsReferenced := globalVariablesUsed conform:[:varNames | varNames contains:[:varName | m referencesGlobal:varName]]. |
|
5648 |
allGlobalsReferenced ifTrue:[ |
|
16600 | 5649 |
allMessagesSent := sentMessages isEmptyOrNil |
5650 |
or:[ m messagesSent includesAll:sentMessages ]. |
|
16597 | 5651 |
allMessagesSent ifTrue:[ |
16600 | 5652 |
src := m source. |
5653 |
src isNil ifTrue:[ |
|
5654 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
5655 |
] ifFalse:[ |
|
5656 |
isSTCCompiled ifTrue:[ |
|
5657 |
usedStrings notEmptyOrNil ifTrue:[ |
|
5658 |
"/ now that we have the source, scan the source for the literal strings, |
|
5659 |
"/ before doing a slow parse |
|
5660 |
allStringsInLiteralArray := usedStrings conform:[:eachString | src includesString:eachString]. |
|
5661 |
] |
|
5662 |
]. |
|
5663 |
allStringsInLiteralArray ifTrue:[ |
|
5664 |
(searcher canQuicklyReject:src) ifTrue:[ |
|
5665 |
"/ Transcript show:'qReject: '; showCR:m whoString. |
|
5666 |
] ifFalse:[ |
|
5667 |
"/ the rest is done by the slower RB-match process... |
|
5668 |
parseTree := |
|
5669 |
RBParser |
|
5670 |
parseSearchMethod:src |
|
5671 |
onError: [:str :pos | |
|
5672 |
"/ self halt. |
|
5673 |
Transcript show:'Error during search in '; showCR:m. |
|
5674 |
Transcript showCR:str. |
|
5675 |
Transcript showCR:pos. |
|
5676 |
nil |
|
5677 |
]. |
|
5678 |
||
5679 |
parseTree notNil ifTrue:[ |
|
5680 |
searcher executeTree:parseTree. |
|
5681 |
"/ notice: searcher sets foundMatch !! |
|
16597 | 5682 |
]. |
5683 |
]. |
|
16600 | 5684 |
]. |
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
5685 |
] |
5135 | 5686 |
] |
6581 | 5687 |
] |
16597 | 5688 |
] |
5689 |
] |
|
5690 |
] |
|
5691 |
]. |
|
5692 |
foundMatch. |
|
5693 |
]. |
|
5094 | 5694 |
^ searchBlock. |
7395 | 5695 |
|
9879 | 5696 |
"Created: / 02-05-2011 / 13:25:01 / sr" |
11638
344d7d06f1d2
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
11506
diff
changeset
|
5697 |
"Modified: / 20-07-2012 / 19:07:36 / cg" |
9879 | 5698 |
! |
5699 |
||
5700 |
searchBlockForCode:aCodeString isMethod:isMethod |
|
5701 |
"return a block to search for a piece of code (intelligent search)." |
|
5702 |
||
5703 |
^ self searchBlockForCode:aCodeString in:#() isMethod:isMethod |
|
5704 |
||
5705 |
"Modified: / 02-05-2011 / 13:26:18 / sr" |
|
5094 | 5706 |
! |
5707 |
||
9482 | 5708 |
searchBlockForParseTreeSearcher:searcher isMethod:isMethod |
5709 |
"return a block to search for a piece of code (intelligent search)." |
|
5710 |
||
5711 |
|errAction searchBlock foundMatch| |
|
5712 |
||
5713 |
errAction := [:str :pos | |
|
5714 |
Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'. |
|
5715 |
^ nil |
|
5716 |
]. |
|
5717 |
||
5718 |
searchBlock := [:c :m :sel | |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5719 |
|src parseTree| |
9482 | 5720 |
|
5721 |
foundMatch := false. |
|
5722 |
||
5723 |
m isLazyMethod ifTrue:[ |
|
5724 |
src := m source. |
|
5725 |
src notNil ifTrue:[ |
|
5726 |
m makeRealMethod. |
|
5727 |
]. |
|
5728 |
]. |
|
5729 |
||
5730 |
src := m source. |
|
5731 |
src isNil ifTrue:[ |
|
5732 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
5733 |
] ifFalse:[ |
|
5734 |
parseTree := RBParser |
|
5735 |
parseSearchMethod:src |
|
5736 |
onError: [:str :pos | |
|
5737 |
Transcript show:'Error in '; showCR:m. |
|
5738 |
Transcript showCR:str. |
|
5739 |
Transcript showCR:pos. |
|
5740 |
nil]. |
|
5741 |
||
5742 |
parseTree notNil ifTrue:[ |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5743 |
foundMatch := searcher executeTree:parseTree initialAnswer:false. |
9482 | 5744 |
] |
5745 |
]. |
|
5746 |
foundMatch. |
|
5747 |
]. |
|
5748 |
||
5749 |
^ searchBlock. |
|
5750 |
||
5751 |
"Created: / 11-05-2010 / 16:14:25 / cg" |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5752 |
"Modified: / 11-05-2010 / 22:05:09 / cg" |
9482 | 5753 |
! |
5754 |
||
9002 | 5755 |
searchBlockForReferendsOf:aGlobalName |
5756 |
"return a block which searches for all methods which reference a global named aGlobalName, |
|
17967 | 5757 |
which may be a matchpattern. |
5758 |
If aGlobalName is inside a namespace (a private or namespace-global), |
|
5759 |
the name should be <namespace>::<aGlobalName>" |
|
9002 | 5760 |
|
12844 | 5761 |
|globalsPlainName idx sym1 sym2| |
9002 | 5762 |
|
5763 |
globalsPlainName := aGlobalName. |
|
5764 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
|
5765 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
|
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5766 |
(globalsPlainName size == 0 or:[globalsPlainName = '*']) ifTrue:[ |
9002 | 5767 |
globalsPlainName := aGlobalName |
5768 |
] |
|
5769 |
]. |
|
5770 |
||
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5771 |
"/ matchingGlobalNames := OrderedCollection new. |
9002 | 5772 |
|
5773 |
aGlobalName includesMatchCharacters ifFalse:[ |
|
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5774 |
sym1 := aGlobalName asSymbolIfInterned. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5775 |
sym2 := globalsPlainName asSymbolIfInterned. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5776 |
(sym1 isNil and:[ sym2 isNil ]) ifTrue:[ |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5777 |
^ [:cls :mthd :sel | false ]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5778 |
]. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5779 |
"/ if any is nil, search for the same |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5780 |
sym1 := sym1 ? sym2. |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5781 |
sym2 := sym2 ? sym1. |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5782 |
|
9002 | 5783 |
^ [:cls :mthd :sel | |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5784 |
|mSource ok m usedGlobals| |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5785 |
|
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5786 |
ok := false. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5787 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5788 |
mthd isLazyMethod ifTrue:[ |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5789 |
mSource := mthd source. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5790 |
(mSource notNil) ifTrue:[ |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5791 |
(mSource includesString:(sym2)) ifTrue:[ |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5792 |
usedGlobals := mthd usedGlobals. |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5793 |
(usedGlobals includes:sym1) ifTrue:[ |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5794 |
ok := true |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5795 |
] ifFalse:[ |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5796 |
(sym1 ~= sym2 and:[usedGlobals includes:sym2]) ifTrue:[ |
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5797 |
ok := true |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5798 |
] |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5799 |
] |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5800 |
] |
9002 | 5801 |
] |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5802 |
] ifFalse:[ |
13071 | 5803 |
m := mthd originalMethodIfWrapped. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5804 |
((m refersToLiteral:sym1) or:[ sym1 ~= sym2 and:[m refersToLiteral:sym2] ]) ifTrue:[ |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5805 |
usedGlobals := m usedGlobals. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5806 |
ok := (usedGlobals includes:sym1) or:[ sym1 ~= sym2 and:[usedGlobals includes:sym2] ] |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5807 |
]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5808 |
]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5809 |
ok |
9002 | 5810 |
]. |
5811 |
]. |
|
5812 |
||
5813 |
^ [:cls :mthd :sel | |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5814 |
|mSource usedGlobals global m| |
9002 | 5815 |
|
5816 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
5817 |
mthd isLazyMethod ifTrue:[ |
|
5818 |
mSource := mthd source. |
|
5819 |
mSource notNil ifTrue:[ |
|
5820 |
usedGlobals := mthd usedGlobals |
|
5821 |
] |
|
5822 |
] ifFalse:[ |
|
13071 | 5823 |
m := mthd originalMethodIfWrapped. |
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5824 |
(m literals contains:[:lit | (aGlobalName match:lit) or:[globalsPlainName match:lit]]) ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5825 |
usedGlobals := m usedGlobals |
9002 | 5826 |
]. |
5827 |
]. |
|
5828 |
usedGlobals notNil ifTrue:[ |
|
5829 |
global := usedGlobals detect:[:lit | aGlobalName match:lit] ifNone:nil. |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5830 |
global isNil ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5831 |
global := usedGlobals detect:[:lit | globalsPlainName match:lit] ifNone:nil. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5832 |
]. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5833 |
"/ global notNil ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5834 |
"/ matchingGlobalNames add:global. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5835 |
"/ ] |
9002 | 5836 |
]. |
5837 |
global notNil |
|
5838 |
]. |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5839 |
|
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5840 |
"Modified: / 24-07-2011 / 09:50:30 / cg" |
9002 | 5841 |
! |
5842 |
||
16451 | 5843 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatchArg |
5094 | 5844 |
"return a block to search for a string." |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5845 |
|
16691 | 5846 |
^ self |
5847 |
searchBlockForString:aString |
|
5848 |
ignoreCase:ignoreCase |
|
5849 |
match:doMatchArg |
|
5850 |
fullWordsOnly:false |
|
5851 |
||
5852 |
" |
|
5853 |
SystemBrowser |
|
5854 |
findString:'should' |
|
5855 |
in:(Array with:Object) |
|
5856 |
ignoreCase:false |
|
5857 |
" |
|
5858 |
! |
|
5859 |
||
5860 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatchArg fullWordsOnly:fullWordsOnly |
|
5861 |
"return a block to search for a string." |
|
5862 |
||
16468 | 5863 |
|checkBlock lineCheckBlock pattern doMatch |
5864 |
quickCheckString firstMatchIndex lastMatchIndex| |
|
16451 | 5865 |
|
5866 |
doMatch := doMatchArg. |
|
5867 |
aString includesMatchCharacters ifFalse:[ |
|
5868 |
doMatch := false. |
|
5869 |
]. |
|
5870 |
doMatch ifTrue:[ |
|
2675 | 5871 |
"a matchString" |
16468 | 5872 |
pattern := aString. |
5873 |
||
5874 |
firstMatchIndex := aString indexOfAny:'*#['. |
|
5875 |
lastMatchIndex := aString lastIndexOfAny:'*#['. |
|
5876 |
"/ which is longer - left or right part |
|
5877 |
firstMatchIndex-1 "nleft" > (aString size-lastMatchIndex) "nright" ifTrue:[ |
|
5878 |
"/ use left part as quickSearch |
|
5879 |
quickCheckString := aString copyTo:firstMatchIndex-1 |
|
5880 |
] ifFalse:[ |
|
5881 |
"/ use right part as quickSearch |
|
5882 |
quickCheckString := aString copyFrom:lastMatchIndex+1 |
|
5883 |
]. |
|
5884 |
||
16451 | 5885 |
aString first == $* ifFalse:[ |
5886 |
pattern := '*',pattern |
|
5887 |
]. |
|
5888 |
aString last == $* ifFalse:[ |
|
5889 |
pattern := pattern,'*' |
|
5890 |
]. |
|
16468 | 5891 |
"/ when doing a match, be careful to not match acrosss lines |
16691 | 5892 |
lineCheckBlock := [:line | pattern match:line caseSensitive:ignoreCase not]. |
16468 | 5893 |
quickCheckString size > 1 ifTrue:[ |
16691 | 5894 |
checkBlock := [:src | |
5895 |
(src includesString:quickCheckString caseSensitive:ignoreCase not) |
|
5896 |
and:[ (lineCheckBlock value:src) |
|
5897 |
and:[ src asStringCollection contains:lineCheckBlock ]]]. |
|
16468 | 5898 |
] ifFalse:[ |
5899 |
checkBlock := [:src | |
|
5900 |
(lineCheckBlock value:src) |
|
5901 |
and:[ src asStringCollection contains:lineCheckBlock ]]. |
|
5902 |
]. |
|
2675 | 5903 |
] ifFalse:[ |
16691 | 5904 |
checkBlock := [:src | src includesString:aString caseSensitive:ignoreCase not] |
2675 | 5905 |
]. |
16691 | 5906 |
|
16451 | 5907 |
^ [:cls :mthd :sel | |
16691 | 5908 |
|src found idx1 reallyFound ch1 ch2| |
5909 |
||
5910 |
found := false. |
|
16451 | 5911 |
src := mthd source. |
5912 |
src isNil ifTrue:[ |
|
5913 |
('Browser [info]: no source for ' , mthd printString) infoPrintCR. |
|
5914 |
] ifFalse:[ |
|
16691 | 5915 |
found := checkBlock value:src. |
5916 |
(fullWordsOnly and:[found]) ifTrue:[ |
|
5917 |
self halt. |
|
5918 |
doMatch ifTrue:[ |
|
5919 |
||
5920 |
] ifFalse:[ |
|
5921 |
reallyFound := false. |
|
5922 |
idx1 := 0. |
|
5923 |
[ |
|
5924 |
reallyFound not |
|
5925 |
and:[ |
|
5926 |
idx1 := src indexOfSubCollection:aString startingAt:idx1+1 ifAbsent:0 caseSensitive:ignoreCase not. |
|
5927 |
idx1 ~~ 0] |
|
5928 |
] whileTrue:[ |
|
5929 |
"/ see if it is a free-standing word |
|
5930 |
reallyFound := true. |
|
5931 |
idx1 > 1 ifTrue:[ |
|
5932 |
ch1 := src at:idx1-1. |
|
5933 |
(ch1 isLetter or:[ch1 == $_]) ifTrue:[ reallyFound := false]. |
|
5934 |
]. |
|
5935 |
(idx1+aString size-1) < src size ifTrue:[ |
|
5936 |
ch2 := src at:idx1+aString size. |
|
5937 |
(ch2 isLetter or:[ch2 == $_]) ifTrue:[ reallyFound := false]. |
|
5938 |
]. |
|
5939 |
]. |
|
5940 |
found := reallyFound |
|
5941 |
]. |
|
5942 |
]. |
|
5943 |
]. |
|
5944 |
found |
|
16451 | 5945 |
] |
2675 | 5946 |
|
5947 |
" |
|
5948 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
5949 |
" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5950 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5951 |
|
16451 | 5952 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg |
5877 | 5953 |
"return a block to search for a string-literal." |
5954 |
||
16691 | 5955 |
^ self |
5956 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg |
|
5957 |
fullWordsOnly:false |
|
5958 |
||
5959 |
" |
|
5960 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
5961 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5962 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
5963 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
5964 |
" |
|
5965 |
! |
|
5966 |
||
5967 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg fullWordsOnly:fullWordsOnly |
|
5968 |
"return a block to search for a string-literal." |
|
5969 |
||
16468 | 5970 |
|pattern doMatch checkLiteral checkSource |
5971 |
quickCheckString firstMatchIndex lastMatchIndex| |
|
16451 | 5972 |
|
5973 |
aString isEmpty ifTrue:[^ [:cls :mthd :sel | true ]]. |
|
5974 |
||
5975 |
doMatch := doMatchArg. |
|
5976 |
(aString includesMatchCharacters) ifFalse:[ |
|
5977 |
doMatch := false |
|
5978 |
]. |
|
5979 |
doMatch ifTrue:[ |
|
5877 | 5980 |
"a matchString" |
16451 | 5981 |
pattern := aString. |
5982 |
aString first == $* ifFalse:[ |
|
5983 |
pattern := '*',pattern |
|
5984 |
]. |
|
5985 |
aString last == $* ifFalse:[ |
|
5986 |
pattern := pattern,'*' |
|
5987 |
]. |
|
16462 | 5988 |
checkLiteral := [:lit | pattern match:lit caseSensitive:ignoreCase not]. |
5989 |
firstMatchIndex := aString indexOfAny:'*#['. |
|
5990 |
lastMatchIndex := aString lastIndexOfAny:'*#['. |
|
16468 | 5991 |
"/ which is longer - left or right part? |
16462 | 5992 |
firstMatchIndex-1 "nleft" > (aString size-lastMatchIndex) "nright" ifTrue:[ |
5993 |
"/ use left part as quickSearch |
|
5994 |
quickCheckString := aString copyTo:firstMatchIndex-1 |
|
5995 |
] ifFalse:[ |
|
5996 |
"/ use right part as quickSearch |
|
5997 |
quickCheckString := aString copyFrom:lastMatchIndex+1 |
|
5998 |
]. |
|
5999 |
quickCheckString size > 1 ifTrue:[ |
|
6000 |
checkSource := [:src | src includesString:quickCheckString caseSensitive:ignoreCase not] |
|
6001 |
] ifFalse:[ |
|
6002 |
checkSource := [:src | true]. "/ not worth the effort |
|
6003 |
]. |
|
5877 | 6004 |
] ifFalse:[ |
5891 | 6005 |
ignoreCase ifTrue:[ |
16462 | 6006 |
checkLiteral := [:lit | lit includesString:aString caseSensitive:true]. |
6007 |
checkSource := [:src | src includesString:aString caseSensitive:true]. |
|
5891 | 6008 |
] ifFalse:[ |
16462 | 6009 |
checkLiteral := [:lit | lit includesString:aString]. |
6010 |
checkSource := [:src | src includesString:aString]. |
|
16451 | 6011 |
]. |
5877 | 6012 |
]. |
16451 | 6013 |
|
16462 | 6014 |
^ [:cls :methodArg :sel | |
6015 |
"/ sorry: the following does not work, because stc does not place string-constants |
|
6016 |
"/ into the literals. |
|
6017 |
"/ (mthd literalsDetect:[:lit | |
|
6018 |
"/ lit isString |
|
6019 |
"/ and:[ lit isSymbol not |
|
6020 |
"/ and:[ checkLiteral value:lit ]] |
|
6021 |
"/ ] ifNone:[nil]) |
|
6022 |
"/ notNil |
|
6023 |
"/ so we must parse here (sigh) |
|
6024 |
||
6025 |
|method src skip tree found| |
|
6026 |
||
6027 |
skip := found := false. |
|
6028 |
method := methodArg originalMethodIfWrapped. |
|
6029 |
method isLazyMethod ifTrue:[ |
|
6030 |
src := method source. |
|
6031 |
(src notNil) ifTrue:[ |
|
6032 |
method makeRealMethod. |
|
6033 |
] ifFalse:[ |
|
6034 |
skip := true |
|
6035 |
]. |
|
6036 |
]. |
|
6037 |
skip ifFalse:[ |
|
6038 |
src := method source. |
|
17056 | 6039 |
src isNil ifTrue:[ |
6040 |
('SystemBrowser: [warning]: no source for method: ',methodArg printString) errorPrintCR. |
|
6041 |
]. |
|
6042 |
(src notNil and:[src includes:$']) ifTrue:[ "/ eliminates many |
|
16462 | 6043 |
(checkSource value:src) ifTrue:[ |
6044 |
tree := cls parseTreeFor:sel. |
|
6045 |
"/ walk |
|
6046 |
found := |
|
17498 | 6047 |
tree notNil |
6048 |
and:[tree usedLiterals contains:[:lit | |
|
6049 |
lit isString |
|
6050 |
and:[ lit isSymbol not |
|
6051 |
and:[ checkLiteral value:lit ]]]] |
|
16462 | 6052 |
]. |
6053 |
]. |
|
6054 |
]. |
|
6055 |
found |
|
16451 | 6056 |
] |
5877 | 6057 |
|
6058 |
" |
|
6059 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
6060 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
6061 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
6062 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
6063 |
" |
|
17498 | 6064 |
|
6065 |
"Modified: / 20-04-2017 / 11:28:05 / stefan" |
|
11452 | 6066 |
! |
6067 |
||
6068 |
searchBlockForSymbol:aSymbol |
|
12866 | 6069 |
"return a matchblock to search for all methods referencing aSymbol. |
6070 |
false if no such symbol exists" |
|
11452 | 6071 |
|
6072 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
6073 |
"a matchString" |
|
6074 |
^ [:c :m :s | |
|
6075 |
(m literalsDetect:[:aLiteral| |
|
6076 |
(aLiteral isMemberOf:Symbol) |
|
6077 |
and:[aSymbol match:aLiteral] |
|
6078 |
] |
|
6079 |
ifNone:nil |
|
6080 |
) notNil |
|
6081 |
]. |
|
6082 |
] ifFalse:[ |
|
12866 | 6083 |
aSymbol asSymbolIfInterned isNil ifTrue:[ |
6084 |
^ false |
|
6085 |
]. |
|
11452 | 6086 |
^ [:c :m :s | |
6087 |
(m literalsDetect:[:aLiteral| |
|
6088 |
(aSymbol == aLiteral) |
|
6089 |
] |
|
6090 |
ifNone:nil |
|
6091 |
) notNil |
|
6092 |
]. |
|
6093 |
]. |
|
6094 |
||
6095 |
"Created: / 22-03-2012 / 06:56:51 / cg" |
|
203 | 6096 |
! ! |
6097 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
6098 |
!SystemBrowser class methodsFor:'startup'! |
36 | 6099 |
|
203 | 6100 |
browseAllSelect:aBlock |
6101 |
"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
|
6102 |
The block is called with 3 arguments, class, method and selector." |
203 | 6103 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6104 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6105 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6106 |
title:'selected messages' |
36 | 6107 |
|
53 | 6108 |
" |
203 | 6109 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 6110 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6111 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6112 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 6113 |
! |
75 | 6114 |
|
203 | 6115 |
browseClass:aClass |
4490 | 6116 |
"launch a browser for aClass. |
6117 |
Notice: better go via Smalltalk browseClass:, which honors the tool-preferences" |
|
203 | 6118 |
|
6119 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6120 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6121 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6122 |
arg:aClass |
203 | 6123 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6124 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6125 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6126 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6127 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6128 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 6129 |
! |
6130 |
||
6131 |
browseClass:aClass methodCategory:aCategory |
|
6132 |
"launch a browser for all methods under aCategory in aClass" |
|
6133 |
||
6134 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6135 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 6136 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6137 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6138 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6139 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6140 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6141 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 6142 |
! |
6143 |
||
6144 |
browseClass:aClass selector:selector |
|
4490 | 6145 |
"launch a browser for the method at selector in aClass." |
203 | 6146 |
|
6147 |
^ self |
|
4158 | 6148 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
6149 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
203 | 6150 |
|
6151 |
" |
|
6152 |
SystemBrowser browseClass:Object selector:#printString |
|
16384 | 6153 |
Tools::NewSystemBrowser openInClass:Object selector:#printString |
203 | 6154 |
" |
36 | 6155 |
! |
6156 |
||
203 | 6157 |
browseClassCategory:aClassCategory |
6158 |
"launch a browser for all classes under aCategory" |
|
6159 |
||
6160 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6161 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6162 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6163 |
arg:aClassCategory |
203 | 6164 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6165 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6166 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6167 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6168 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6169 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 6170 |
! |
6171 |
||
6172 |
browseClassHierarchy:aClass |
|
6173 |
"launch a browser for aClass and all its superclasses. |
|
6174 |
this is different from the fullProtocol browser." |
|
36 | 6175 |
|
203 | 6176 |
^ self |
4158 | 6177 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
6178 |
setupSelector:#setupForClassHierarchy: |
|
6179 |
arg:aClass |
|
203 | 6180 |
|
6181 |
" |
|
6182 |
SystemBrowser browseClassHierarchy:Number |
|
6183 |
" |
|
6184 |
! |
|
6185 |
||
8702 | 6186 |
browseClasses:aList label:title |
203 | 6187 |
"launch a browser for all classes in aList" |
6188 |
||
6189 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6190 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6191 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 6192 |
|
6193 |
" |
|
6194 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6195 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6196 |
title:'two classes' |
203 | 6197 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6198 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6199 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6200 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6201 |
|
8702 | 6202 |
browseClasses:aList label:title sort:doSort |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6203 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6204 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6205 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6206 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6207 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6208 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6209 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6210 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6211 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6212 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6213 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6214 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6215 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 6216 |
! |
6217 |
||
8702 | 6218 |
browseClasses:aList title:title |
6219 |
<resource: #obsolete> |
|
6220 |
"launch a browser for all classes in aList" |
|
6221 |
||
6222 |
self obsoleteMethodWarning. |
|
6223 |
^ self browseClasses:aList label:title |
|
6224 |
! |
|
6225 |
||
6226 |
browseClasses:aList title:title sort:doSort |
|
6227 |
<resource: #obsolete> |
|
6228 |
"launch a browser for all classes in aList" |
|
6229 |
||
6230 |
self obsoleteMethodWarning. |
|
6231 |
^ self browseClasses:aList label:title sort:doSort |
|
6232 |
||
6233 |
"Created: 28.5.1996 / 13:52:09 / cg" |
|
6234 |
! |
|
6235 |
||
203 | 6236 |
browseFullClassProtocol:aClass |
6237 |
"launch a browser for aClasses full protocol. |
|
6238 |
This is different from hierarchy browsing." |
|
6239 |
||
6240 |
^ self |
|
4158 | 6241 |
newWithLabel:(aClass name , '-' , 'full protocol') |
6242 |
setupSelector:#setupForFullClassProtocol: |
|
6243 |
arg:aClass |
|
203 | 6244 |
|
6245 |
" |
|
6246 |
SystemBrowser browseFullClassProtocol:Number |
|
6247 |
" |
|
6248 |
! |
|
36 | 6249 |
|
203 | 6250 |
browseFullClasses |
6251 |
"launch a browser showing all methods at once" |
|
6252 |
||
6253 |
^ self |
|
4158 | 6254 |
newWithLabel:'Full Class Browser' |
6255 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 6256 |
|
203 | 6257 |
"SystemBrowser browseFullClasses" |
6258 |
! |
|
6259 |
||
6260 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
6261 |
"launch a browser for all instance methods in aClass and all subclasses |
|
6262 |
where aBlock evaluates to true" |
|
36 | 6263 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6264 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6265 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6266 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6267 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6268 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6269 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6270 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6271 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 6272 |
! |
6273 |
||
6274 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
6275 |
"launch a browser for all instance methods of all classes in |
|
6276 |
aCollectionOfClasses where aBlock evaluates to true" |
|
6277 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6278 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6279 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6280 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6281 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6282 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6283 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 6284 |
! |
36 | 6285 |
|
203 | 6286 |
browseInstMethodsOf:aClass where:aBlock title:title |
6287 |
"launch a browser for all instance methods in aClass |
|
6288 |
where aBlock evaluates to true" |
|
6289 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6290 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6291 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6292 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6293 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6294 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6295 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6296 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 6297 |
! |
6298 |
||
16384 | 6299 |
browseMethod:aMethod |
6300 |
"launch a single-method browser." |
|
6301 |
||
6302 |
^ self browseMethods:{ aMethod } |
|
6303 |
||
6304 |
" |
|
6305 |
self browseMethod:(Array compiledMethodAt:#at:) |
|
6306 |
Tools::NewSystemBrowser browseMethod:(Array compiledMethodAt:#at:) |
|
6307 |
" |
|
6308 |
! |
|
6309 |
||
203 | 6310 |
browseMethodCategory:aCategory |
6311 |
"launch a browser for all methods where category = aCategory" |
|
6312 |
||
6313 |
|searchBlock| |
|
6314 |
||
6315 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6316 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 6317 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6318 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 6319 |
]. |
6320 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6321 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 6322 |
|
6323 |
" |
|
6324 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
6325 |
SystemBrowser browseMethodCategory:'print*' |
|
6326 |
" |
|
6327 |
! |
|
6328 |
||
3666 | 6329 |
browseMethods:aListOfMethods |
6330 |
"launch a multi-method browser." |
|
6331 |
||
16384 | 6332 |
|title| |
6333 |
||
6334 |
aListOfMethods size == 1 ifTrue:[ |
|
6335 |
title := aListOfMethods first whoString |
|
6336 |
] ifFalse:[ |
|
6337 |
title := 'some methods' |
|
6338 |
]. |
|
6339 |
^ self browseMethods:aListOfMethods title:title |
|
6340 |
||
6341 |
" |
|
6342 |
self |
|
6343 |
browseMethods:(Array with:(Array compiledMethodAt:#at:)) |
|
6344 |
||
3666 | 6345 |
self |
6346 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
6347 |
with:(OrderedCollection compiledMethodAt:#at:)) |
|
6348 |
||
6349 |
self |
|
6350 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
6351 |
with:(Array compiledMethodAt:#at:put:)) |
|
6352 |
" |
|
6353 |
! |
|
6354 |
||
203 | 6355 |
browseMethods:aList title:aString |
6356 |
"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
|
6357 |
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
|
6358 |
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
|
6359 |
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
|
6360 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6361 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6362 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6363 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6364 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6365 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6366 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6367 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6368 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6369 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6370 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6371 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6372 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6373 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6374 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6375 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6376 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6377 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6378 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6379 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6380 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6381 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6382 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6383 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6384 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6385 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6386 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6387 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6388 |
"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
|
6389 |
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
|
6390 |
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
|
6391 |
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
|
6392 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6393 |
|l| |
203 | 6394 |
|
6395 |
(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
|
6396 |
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
|
6397 |
^ nil |
203 | 6398 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6399 |
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
|
6400 |
l := l collect:[:entry | |
15513 | 6401 |
|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
|
6402 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6403 |
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
|
6404 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6405 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6406 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6407 |
cls isNil ifTrue:[ |
1031 | 6408 |
'??? unbound' |
6409 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6410 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6411 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
6412 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6413 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6414 |
]. |
7915 | 6415 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
6416 |
clsName |
|
6417 |
, ' ' |
|
6418 |
, '???' |
|
6419 |
] ifFalse:[ |
|
6420 |
clsName |
|
6421 |
, ' ' |
|
6422 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry) inClass:cls) |
|
6423 |
] |
|
1031 | 6424 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6425 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6426 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6427 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6428 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
6429 |
|
203 | 6430 |
^ 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
|
6431 |
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
|
6432 |
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
|
6433 |
arg:l |
53 | 6434 |
|
203 | 6435 |
" |
6436 |
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
|
6437 |
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
|
6438 |
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
|
6439 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6440 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6441 |
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
|
6442 |
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
|
6443 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6444 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6445 |
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
|
6446 |
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
|
6447 |
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
|
6448 |
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
|
6449 |
|
203 | 6450 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6451 |
|
7711 | 6452 |
"Modified: / 17-06-1996 / 17:07:46 / stefan" |
6453 |
"Modified: / 05-03-2007 / 16:25:25 / cg" |
|
2826 | 6454 |
! |
53 | 6455 |
|
203 | 6456 |
browseMethodsFrom:aClass where:aBlock title:title |
6457 |
"launch a browser for all instance- and classmethods in aClass |
|
6458 |
and all its subclasses where aBlock evaluates to true. |
|
6459 |
The block is called with 3 arguments, class, method and seelctor." |
|
6460 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6461 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6462 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6463 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6464 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6465 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6466 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 6467 |
! |
6468 |
||
6469 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
6470 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
6471 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
6472 |
where aBlock evaluates to true. |
|
270 | 6473 |
The block is called with 3 arguments, class, method and selector." |
203 | 6474 |
|
6475 |
|list| |
|
53 | 6476 |
|
6477 |
" |
|
203 | 6478 |
since this may take a long time, lower my priority ... |
53 | 6479 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
6480 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
6481 |
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
|
6482 |
do:[ |
2675 | 6483 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 6484 |
]. |
6485 |
^ self browseMethods:list title:title |
|
53 | 6486 |
! |
6487 |
||
3780 | 6488 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock |
6489 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
6490 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
6491 |
where aBlock evaluates to true. |
|
6492 |
The block is called with 3 arguments, class, method and selector." |
|
6493 |
||
6494 |
|list| |
|
6495 |
||
6496 |
" |
|
6497 |
since this may take a long time, lower my priority ... |
|
6498 |
" |
|
6499 |
Processor activeProcess |
|
6500 |
withPriority:Processor activePriority-1 to:Processor activePriority |
|
6501 |
do:[ |
|
6502 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock. |
|
6503 |
list size == 0 ifTrue:[warnBlock value]. |
|
6504 |
]. |
|
6505 |
^ self browseMethods:list title:title |
|
6506 |
! |
|
6507 |
||
203 | 6508 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
6509 |
"launch a browser for all instance- and classmethods from |
|
6510 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
6511 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 6512 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6513 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6514 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6515 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6516 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6517 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6518 |
title:title |
75 | 6519 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6520 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 6521 |
! |
6522 |
||
3780 | 6523 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock |
6524 |
"launch a browser for all instance- and classmethods from |
|
6525 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
6526 |
The block is called with 3 arguments, class, method and seelctor." |
|
6527 |
||
6528 |
^ self |
|
6529 |
browseMethodsIn:aCollectionOfClasses |
|
6530 |
inst:true |
|
6531 |
class:true |
|
6532 |
where:aBlock |
|
6533 |
title:title |
|
6534 |
ifNone:warnBlock |
|
6535 |
||
6536 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
|
6537 |
! |
|
6538 |
||
203 | 6539 |
browseMethodsOf:aClass where:aBlock title:title |
6540 |
"launch a browser for all instance- and classmethods in aClass |
|
6541 |
where aBlock evaluates to true. |
|
6542 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 6543 |
|
203 | 6544 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 6545 |
! |
6546 |
||
203 | 6547 |
browseMethodsWhere:aBlock title:title |
6548 |
"launch a browser for all methods where aBlock returns true. |
|
6549 |
The block is called with 3 arguments, class, method and seelctor." |
|
6550 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6551 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6552 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6553 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6554 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6555 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6556 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 6557 |
! |
6558 |
||
3780 | 6559 |
browseMethodsWhere:aBlock title:title ifNone:warnBlock |
6560 |
"launch a browser for all methods where aBlock returns true. |
|
6561 |
The block is called with 3 arguments, class, method and seelctor." |
|
6562 |
||
6563 |
^ self |
|
6564 |
browseMethodsIn:(Smalltalk allClasses) |
|
6565 |
where:aBlock |
|
6566 |
title:title |
|
6567 |
ifNone:warnBlock |
|
6568 |
||
6569 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
|
6570 |
! |
|
6571 |
||
2675 | 6572 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
6573 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
6574 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
6575 |
||
16449 | 6576 |
|list checkedClasses checkBlock nClasses |
6577 |
nClassesDone oldPercentage newPercentage nClassesSinceLastPercentage bulkSize| |
|
2675 | 6578 |
|
6579 |
checkedClasses := IdentitySet new. |
|
6580 |
list := OrderedCollection new. |
|
6581 |
||
6582 |
checkBlock := [:cls | |
|
6583 |
(checkedClasses includes:cls) ifFalse:[ |
|
8554
441ea25ad1fd
Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents:
8505
diff
changeset
|
6584 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
17466 | 6585 |
Logger debug:'Browser method search: skipping obsolete class: %1' with:cls displayString |
2675 | 6586 |
] ifFalse:[ |
11941
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6587 |
aBlock numArgs == 1 ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6588 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6589 |
(aBlock value:method) ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6590 |
list add:method "/ (cls name , ' ' , sel) |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6591 |
] |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6592 |
]. |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6593 |
] ifFalse:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6594 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6595 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6596 |
list add:method "/ (cls name , ' ' , sel) |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6597 |
] |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6598 |
]. |
2675 | 6599 |
]. |
6600 |
checkedClasses add:cls. |
|
6601 |
] |
|
6602 |
] |
|
6603 |
]. |
|
6604 |
||
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6605 |
nClasses := aCollectionOfClasses size. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6606 |
nClassesDone := 0. |
16238 | 6607 |
oldPercentage := 0. |
16449 | 6608 |
nClassesSinceLastPercentage := 0. |
6609 |
bulkSize := (nClasses // 30) max:10. "/ roughly every 3%. |
|
16238 | 6610 |
|
2675 | 6611 |
aCollectionOfClasses do:[:aClass | |
3008 | 6612 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
16449 | 6613 |
nClassesSinceLastPercentage := nClassesSinceLastPercentage + 1. |
6614 |
||
2675 | 6615 |
" |
6616 |
output disabled - it slows down things too much (when searching for |
|
6617 |
implementors or senders) |
|
6618 |
" |
|
6619 |
wantInst ifTrue:[ |
|
6620 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
6621 |
checkBlock value:aClass |
|
6622 |
]. |
|
6623 |
wantClass ifTrue:[ |
|
6624 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
6625 |
checkBlock value:(aClass class) |
|
6626 |
]. |
|
16449 | 6627 |
nClassesSinceLastPercentage > bulkSize ifTrue:[ |
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6628 |
"/ Processor yield |
16238 | 6629 |
newPercentage := nClassesDone * 100 // nClasses. |
6630 |
newPercentage ~= oldPercentage ifTrue:[ |
|
17440 | 6631 |
ProgressNotification progressPercentage:newPercentage statusInfo:('%1 found' bindWith:list size). |
16238 | 6632 |
oldPercentage := newPercentage. |
6633 |
]. |
|
16449 | 6634 |
nClassesSinceLastPercentage := 0. |
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6635 |
]. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6636 |
]. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6637 |
nClassesDone := nClassesDone + 1. |
2675 | 6638 |
]. |
6639 |
^ list |
|
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6640 |
|
17466 | 6641 |
"Modified: / 14-03-2017 / 12:05:57 / cg" |
2675 | 6642 |
! |
6643 |
||
6644 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
6645 |
"return all instance- and classmethods |
|
6646 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
6647 |
||
6648 |
^ self |
|
6649 |
findMethodsIn:aCollectionOfClasses |
|
6650 |
inst:true |
|
6651 |
class:true |
|
6652 |
where:aBlock |
|
203 | 6653 |
! ! |
93 | 6654 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
6655 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 6656 |
|
6657 |
askThenBrowseClass |
|
6658 |
self getClassThenPerform:#browseClass: |
|
6659 |
||
6660 |
" |
|
6661 |
SystemBrowser askThenBrowseClass |
|
13028 | 6662 |
Tools::NewSystemBrowser askThenBrowseClass |
203 | 6663 |
" |
93 | 6664 |
! |
6665 |
||
203 | 6666 |
askThenBrowseClassHierarchy |
6667 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 6668 |
|
203 | 6669 |
" |
6670 |
SystemBrowser askThenBrowseClassHierarchy |
|
13028 | 6671 |
Tools::NewSystemBrowser askThenBrowseClassHierarchy |
203 | 6672 |
" |
36 | 6673 |
! |
6674 |
||
203 | 6675 |
askThenBrowseFullClassProtocol |
6676 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 6677 |
|
203 | 6678 |
" |
6679 |
SystemBrowser askThenBrowseFullClassProtocol |
|
13028 | 6680 |
Tools::NewSystemBrowser askThenBrowseFullClassProtocol |
6681 |
" |
|
36 | 6682 |
! ! |
6683 |
||
2813 | 6684 |
!SystemBrowser class methodsFor:'utilities'! |
6685 |
||
13028 | 6686 |
askForClass |
13032 | 6687 |
^ self askForClassWithFilter:nil |
13028 | 6688 |
|
6689 |
" |
|
6690 |
Tools::NewSystemBrowser askForClass |
|
6691 |
" |
|
6692 |
! |
|
6693 |
||
6694 |
askForClassName |
|
13032 | 6695 |
^ self askForClassNameWithFilter:nil |
6696 |
||
6697 |
" |
|
6698 |
Tools::NewSystemBrowser askForClassName |
|
6699 |
" |
|
6700 |
! |
|
6701 |
||
6702 |
askForClassNameWithFilter:filterOrNil |
|
13028 | 6703 |
self |
6704 |
askForClassToSearch:nil |
|
6705 |
single:true |
|
6706 |
msgTail:'' |
|
6707 |
resources:(self classResources) |
|
13032 | 6708 |
filter:filterOrNil |
13028 | 6709 |
forBrowser:nil |
6710 |
thenDo:[:className :single :doWhat | |
|
6711 |
^ className |
|
6712 |
]. |
|
6713 |
^ nil |
|
6714 |
||
6715 |
" |
|
6716 |
Tools::NewSystemBrowser askForClassName |
|
6717 |
" |
|
6718 |
! |
|
6719 |
||
13032 | 6720 |
askForClassToSearch:doWhatByDefault single:singleClass msgTail:msgTail resources:resourcesOrNil filter:filterOrNil forBrowser:aBrowserOrNil thenDo:aBlock |
13028 | 6721 |
"utility common code for both opening a new browser on a class and |
6722 |
to search for a class in an existing browser. |
|
6723 |
If singleClass is true, a single class will be asked for and browsed, |
|
6724 |
otherwise, a match pattern is allowed and a multi-class browser is opened. |
|
6725 |
Moved from instance protocol for better reusability." |
|
6726 |
||
6727 |
|box boxLabel title okText className canFind doWhat classNameHolder updateList |
|
6728 |
allClasses classNamesInChangeSet |
|
6729 |
allNames allFullNames initialShortNames initialFullNames |
|
6730 |
colorizedFullNames colorizedShortNames |
|
6731 |
resources check showingWhatLabel showFullNameHolder genShortNameListEntry| |
|
6732 |
||
6733 |
resources := resourcesOrNil ? self classResources. |
|
6734 |
showFullNameHolder := (LastClassSearchBoxShowedFullName ? false) asValue. |
|
6735 |
||
6736 |
doWhat := doWhatByDefault. |
|
6737 |
canFind := false. |
|
6738 |
||
6739 |
title := ''. |
|
6740 |
boxLabel := (resources string:'Select a class'). |
|
6741 |
okText := 'OK'. |
|
6742 |
||
6743 |
genShortNameListEntry := |
|
6744 |
[:cls | |
|
6745 |
|ns| |
|
13035 | 6746 |
|
13028 | 6747 |
cls isNil ifTrue:[ |
6748 |
nil |
|
6749 |
] ifFalse:[ |
|
13035 | 6750 |
(filterOrNil notNil and:[ (filterOrNil value:cls) not]) ifTrue:[ |
6751 |
nil |
|
6752 |
] ifFalse:[ |
|
6753 |
ns := cls topNameSpace name. |
|
6754 |
ns = 'Smalltalk' |
|
6755 |
ifTrue:[ ns := '' ] |
|
6756 |
ifFalse:[ns := ' (in ',ns,')']. |
|
6757 |
cls nameWithoutNameSpacePrefix,ns |
|
6758 |
] |
|
13028 | 6759 |
]. |
6760 |
]. |
|
6761 |
||
6762 |
classNamesInChangeSet := ChangeSet current changedClasses |
|
13035 | 6763 |
select: (filterOrNil ? [:cls | true]) |
6764 |
thenCollect:[:each | each theNonMetaclass name]. |
|
13028 | 6765 |
|
6766 |
initialFullNames := self visitedClassNamesHistory. |
|
13035 | 6767 |
(filterOrNil notNil) ifTrue:[ |
6768 |
initialFullNames := initialFullNames select:[:nm | filterOrNil value:(Smalltalk at:nm)]. |
|
6769 |
]. |
|
13028 | 6770 |
initialShortNames := initialFullNames collect:[:nm | genShortNameListEntry value:(Smalltalk at:nm)] thenSelect:[:nm | nm notNil]. |
6771 |
||
6772 |
colorizedFullNames := initialFullNames collect:[:clsName | |
|
6773 |
(classNamesInChangeSet includes:clsName) ifTrue:[ |
|
6774 |
clsName asText emphasisAllAdd:(UserPreferences current emphasisForChangedCode) |
|
6775 |
] ifFalse:[ |
|
6776 |
clsName |
|
6777 |
]. |
|
6778 |
]. |
|
6779 |
||
6780 |
colorizedShortNames := initialShortNames with:initialFullNames collect:[:shortName :clsName | |
|
6781 |
(classNamesInChangeSet includes:clsName) ifTrue:[ |
|
6782 |
shortName asText emphasisAllAdd:(UserPreferences current emphasisForChangedCode) |
|
6783 |
] ifFalse:[ |
|
6784 |
shortName |
|
6785 |
]. |
|
6786 |
]. |
|
6787 |
||
13046 | 6788 |
title := (resources string:title) , msgTail , '.\' , (resources string:'(TAB to complete; matchPattern allowed - "*" for all):'). |
13028 | 6789 |
|
6790 |
box := self |
|
6791 |
enterBoxForClassWithCodeSelectionTitle:title withCRs |
|
6792 |
withList:(showFullNameHolder value ifTrue:[colorizedFullNames] ifFalse:[colorizedShortNames]) |
|
6793 |
okText:okText |
|
6794 |
forBrowser:nil. |
|
6795 |
||
6796 |
box label:boxLabel. |
|
6797 |
||
6798 |
allClasses := Smalltalk allClasses copyAsOrderedCollection. |
|
13032 | 6799 |
filterOrNil notNil ifTrue:[ |
6800 |
allClasses := allClasses select: filterOrNil |
|
6801 |
]. |
|
13028 | 6802 |
|
6803 |
allNames := (allClasses |
|
6804 |
collect:[:cls | |
|
6805 |
|ns nm| |
|
6806 |
||
6807 |
ns := cls topNameSpace name. |
|
6808 |
ns = 'Smalltalk' |
|
6809 |
ifTrue:[ ns := '' ] |
|
6810 |
ifFalse:[ns := ' (in ',ns,')']. |
|
6811 |
cls isNameSpace ifTrue:[ |
|
6812 |
nm := cls nameWithoutNameSpacePrefix,ns,' (Namespace)' |
|
6813 |
] ifFalse:[ |
|
6814 |
nm := cls nameWithoutNameSpacePrefix,ns |
|
6815 |
]. |
|
6816 |
(classNamesInChangeSet includes:cls name) ifTrue:[ |
|
6817 |
nm asText emphasisAllAdd:(UserPreferences current emphasisForChangedCode) |
|
6818 |
] ifFalse:[ |
|
6819 |
nm |
|
6820 |
]. |
|
6821 |
]) sortWith:allClasses; yourself. |
|
6822 |
||
6823 |
allFullNames := (allClasses |
|
6824 |
collect:[:cls | |
|
6825 |
|nm| |
|
6826 |
||
6827 |
nm := cls name. |
|
6828 |
(classNamesInChangeSet includes:cls name) ifTrue:[ |
|
6829 |
nm asText emphasisAllAdd:(UserPreferences current emphasisForChangedCode) |
|
6830 |
] ifFalse:[ |
|
6831 |
nm |
|
6832 |
]. |
|
6833 |
]) sortWith:allClasses; yourself. |
|
6834 |
||
6835 |
updateList := [ |
|
6836 |
|nameToSearch list namesStarting namesIncluding lcName nameList| |
|
6837 |
||
6838 |
(nameToSearch := classNameHolder value withoutSeparators) isEmpty ifTrue:[ |
|
6839 |
showingWhatLabel label:(resources string:'Recently visited:'). |
|
6840 |
list := (showFullNameHolder value ifTrue:[colorizedFullNames] ifFalse:[colorizedShortNames]). |
|
6841 |
] ifFalse:[ |
|
6842 |
showingWhatLabel label:(resources string:'Matching classes:'). |
|
6843 |
nameList := showFullNameHolder value |
|
6844 |
ifTrue:[ allFullNames ] |
|
6845 |
ifFalse:[ allNames ]. |
|
6846 |
||
6847 |
lcName := nameToSearch asLowercase. |
|
6848 |
(lcName includesString:'::') ifTrue:[ |
|
6849 |
list := OrderedCollection new. |
|
6850 |
allClasses doWithIndex:[:cls :idx | |
|
6851 |
|isIncluded| |
|
6852 |
||
6853 |
(nameToSearch includesMatchCharacters) ifTrue:[ |
|
6854 |
isIncluded := (lcName match:cls name asLowercase) |
|
6855 |
] ifFalse:[ |
|
6856 |
isIncluded := (cls name includesString:lcName caseSensitive:false) |
|
6857 |
]. |
|
6858 |
isIncluded ifTrue:[ |
|
6859 |
list add:(nameList at:idx) |
|
6860 |
]. |
|
6861 |
]. |
|
6862 |
] ifFalse:[ |
|
6863 |
(nameToSearch includesMatchCharacters) ifTrue:[ |
|
6864 |
list := nameList select:[:nm | lcName match:nm asLowercase] |
|
6865 |
] ifFalse:[ |
|
6866 |
namesIncluding := nameList |
|
6867 |
select:[:nm | |
|
6868 |
"/ nm asLowercase startsWith:lcName |
|
6869 |
nm asLowercase includesString:lcName caseSensitive:false |
|
6870 |
]. |
|
6871 |
namesStarting := namesIncluding select:[:nm | nm asLowercase startsWith:lcName]. |
|
6872 |
list := namesStarting , {nil} , (namesIncluding \ namesStarting). |
|
6873 |
] |
|
6874 |
] |
|
6875 |
]. |
|
6876 |
box listView |
|
6877 |
list:list; |
|
6878 |
scrollToLine:((list findFirst:[:line | (line ? '') startsWith:lcName]) max:1) |
|
6879 |
]. |
|
6880 |
||
6881 |
classNameHolder := '' asValue. |
|
6882 |
box enterField |
|
6883 |
model:classNameHolder; |
|
6884 |
immediateAccept:true. |
|
6885 |
classNameHolder onChangeEvaluate:updateList. |
|
6886 |
||
6887 |
box entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
|
6888 |
box action:[:aString | className := aString]. |
|
6889 |
||
6890 |
box panelView |
|
6891 |
addSubView:(showingWhatLabel := (Label label:(resources string:'Recently visited:')) adjust:#left) before:nil; |
|
6892 |
addSubView:(check := CheckBox label:(resources string:'Show Full Name (do not strip off Namespace)') model:showFullNameHolder) before:nil. |
|
6893 |
showFullNameHolder onChangeEvaluate:updateList. |
|
6894 |
box enterField origin:(0 @ check corner y). |
|
6895 |
box listView origin:(0 @ check corner y). |
|
6896 |
||
6897 |
box extent:(400 @ 350). |
|
6898 |
box open. |
|
6899 |
||
6900 |
className isEmptyOrNil ifTrue:[^ nil "cancel"]. |
|
6901 |
||
6902 |
LastClassSearchBoxShowedFullName := showFullNameHolder value. |
|
6903 |
||
6904 |
(className endsWith:$) ) ifTrue:[ |
|
6905 |
(className indexOfSubCollection:'(in ') == 0 ifTrue:[ |
|
6906 |
"/ a namespace |
|
6907 |
className := (className copyTo:(className indexOfSubCollection:'(Name')-1) withoutSeparators |
|
6908 |
] ifFalse:[ |
|
6909 |
className := ((className copyFrom:(className indexOfSubCollection:'(in ')+4) |
|
6910 |
copyButLast:1) |
|
6911 |
, '::' , className asCollectionOfWords first |
|
6912 |
]. |
|
6913 |
]. |
|
6914 |
||
6915 |
aBlock notNil ifTrue:[aBlock value:className optionalArgument:singleClass and:doWhat]. |
|
6916 |
^ className |
|
6917 |
||
6918 |
"Modified: / 23-07-2012 / 11:00:22 / cg" |
|
6919 |
! |
|
6920 |
||
13032 | 6921 |
askForClassWithFilter:filterOrNil |
6922 |
|className| |
|
6923 |
||
6924 |
className := self askForClassNameWithFilter:filterOrNil. |
|
6925 |
className notEmptyOrNil ifTrue:[ |
|
6926 |
^ Smalltalk classNamed:className |
|
6927 |
]. |
|
6928 |
^ nil |
|
6929 |
||
6930 |
" |
|
6931 |
Tools::NewSystemBrowser askForClass |
|
6932 |
" |
|
6933 |
! |
|
6934 |
||
3833 | 6935 |
classWithNameSimilarTo:className |
6936 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
|
6937 |
||
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6938 |
|allMatchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6939 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6940 |
allMatchingClasses := self classesWithNameSimilarTo:className. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6941 |
^ allMatchingClasses firstIfEmpty:nil |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6942 |
! |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6943 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6944 |
classesWithNameSimilarTo:className |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6945 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6946 |
|
6944 | 6947 |
^ self classesWithNameSimilarTo:className from:nil |
6948 |
||
6949 |
"Modified: / 22-08-2006 / 13:22:41 / cg" |
|
6950 |
! |
|
6951 |
||
6952 |
classesWithNameSimilarTo:className from:aNameSpaceOrNil |
|
6953 |
"helper for class-name entry; finds classes with a name similar to the argument, className" |
|
6954 |
||
6955 |
|nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses |
|
6956 |
prefNameSpaceOrNil prefLcNameSpace| |
|
6957 |
||
6958 |
prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil]. |
|
3833 | 6959 |
|
12747 | 6960 |
nm := className withoutPrefix:'Smalltalk::'. |
3833 | 6961 |
|
6944 | 6962 |
prefNameSpaceOrNil notNil ifTrue:[ |
6963 |
class := prefNameSpaceOrNil at:nm asSymbol. |
|
6964 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
|
6965 |
prefLcNameSpace := prefNameSpaceOrNil name asLowercase. |
|
6966 |
]. |
|
3833 | 6967 |
class := Smalltalk at:nm asSymbol. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6968 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
3833 | 6969 |
|
6970 |
lcName := className asLowercase. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6971 |
|
3833 | 6972 |
allClasses := Smalltalk allClasses. |
4806 | 6973 |
|
6134 | 6974 |
triedDetectors := OrderedCollection new. |
6975 |
triedDetectors add:[:cls | cls name asLowercase = lcName]. |
|
6976 |
||
6977 |
triedDetectors do:[:eachTry | |
|
6978 |
|class| |
|
6979 |
||
6980 |
class := allClasses detect:eachTry ifNone:nil. |
|
6981 |
class notNil ifTrue:[^ Array with:class]. |
|
6982 |
]. |
|
6983 |
||
4806 | 6984 |
triedMatchers := OrderedCollection new. |
5018
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
6985 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName]. |
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
6986 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6987 |
|
4806 | 6988 |
triedMatchers add:[:cls | cls name asLowercase startsWith:lcName]. |
6989 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]. |
|
6990 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]. |
|
6991 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName]. |
|
6134 | 6992 |
triedMatchers add:[:cls | cls name asLowercase includesString:lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6993 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6994 |
allMatchingClasses := IdentitySet new. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6995 |
triedMatchers do:[:eachTry | |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6996 |
|matchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6997 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6998 |
matchingClasses := allClasses select:eachTry. |
6944 | 6999 |
"/ matchingClasses size == 1 ifTrue:[^ matchingClasses]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7000 |
allMatchingClasses addAll:matchingClasses. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7001 |
]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7002 |
allMatchingClasses isEmpty ifTrue:[^ #()]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7003 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7004 |
allMatchingClasses := allMatchingClasses asOrderedCollection. |
6944 | 7005 |
allMatchingClasses |
7006 |
sort:[:a :b | |
|
7007 |
|lcNameA lcNameB da db distA distB | |
|
7008 |
||
7009 |
lcNameA := a name asLowercase. |
|
7010 |
lcNameB := b name asLowercase. |
|
7011 |
prefNameSpaceOrNil notNil ifTrue:[ |
|
7012 |
a nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
7013 |
lcNameA := a nameWithoutNameSpacePrefix asLowercase. |
|
7014 |
]. |
|
7015 |
b nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
7016 |
lcNameB := b nameWithoutNameSpacePrefix asLowercase. |
|
7017 |
]. |
|
7018 |
]. |
|
7019 |
||
7020 |
distA := da := lcName levenshteinTo:lcNameA. |
|
7021 |
distB := db := lcName levenshteinTo:lcNameB. |
|
7022 |
"prefer prefixes (i.e. classes whose name starts with what we search for)" |
|
7023 |
||
7024 |
(lcNameA startsWith:lcName) ifTrue:[ |
|
7025 |
distB := distB * 2 |
|
7026 |
]. |
|
7027 |
(lcNameB startsWith:lcName) ifTrue:[ |
|
7028 |
distA := distA * 2 |
|
7029 |
]. |
|
7030 |
distA < distB |
|
7031 |
]. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
7032 |
^ allMatchingClasses. |
6546 | 7033 |
|
7034 |
" |
|
6678 | 7035 |
self classesWithNameSimilarTo:'NewSystemBrowser' |
7036 |
self classesWithNameSimilarTo:'Moose::MSEAbstractOperator' |
|
6546 | 7037 |
" |
6944 | 7038 |
|
7039 |
"Created: / 22-08-2006 / 13:22:48 / cg" |
|
7040 |
"Modified: / 22-08-2006 / 14:53:38 / cg" |
|
3833 | 7041 |
! |
7042 |
||
13028 | 7043 |
enterBoxForClassWithCodeSelectionTitle:title withList:listOrNil okText:okText forBrowser:aBrowserOrNil |
7044 |
"convenient method: setup an enterBox with initial text taken |
|
17605 | 7045 |
from the codeview's selection." |
13028 | 7046 |
|
7047 |
|sel box initialText superclass currentClass |
|
7048 |
methods someMethod offeredClass anyClose closeName s usedGlobals list| |
|
7049 |
||
7050 |
list := listOrNil. |
|
7051 |
||
7052 |
aBrowserOrNil notNil ifTrue:[ |
|
7053 |
currentClass := aBrowserOrNil theSingleSelectedClass. |
|
7054 |
||
7055 |
sel := aBrowserOrNil selectionInCodeView. |
|
7056 |
sel notNil ifTrue:[ |
|
7057 |
aBrowserOrNil selectedNamespacesValue doWithExit:[:eachNs :exit | |
|
7058 |
s := eachNs , '::' , sel asSymbol. |
|
7059 |
(s knownAsSymbol |
|
7060 |
and:[(Smalltalk at:s asSymbol) isBehavior]) ifTrue:[ |
|
7061 |
"/ a private class of current ... |
|
7062 |
sel := eachNs , '::' , sel asSymbol. |
|
7063 |
exit value:nil. |
|
7064 |
]. |
|
7065 |
]. |
|
7066 |
(sel knownAsSymbol and:[currentClass notNil |
|
7067 |
and:[(currentClass theNonMetaclass privateClassesAt:sel asSymbol) notNil]]) ifTrue:[ |
|
7068 |
"/ a private class of current ... |
|
7069 |
sel := (currentClass theNonMetaclass privateClassesAt:sel asSymbol) name |
|
7070 |
] ifFalse:[ |
|
7071 |
(sel knownAsSymbol and:[(Smalltalk at:sel asSymbol) isBehavior]) ifFalse:[ |
|
7072 |
"/ ignore it, if there is no class-name which comes close. |
|
7073 |
anyClose := false. |
|
7074 |
Smalltalk keysAndValuesDo:[:aGlobalName :aGlobal| |
|
7075 |
aGlobal isBehavior ifTrue:[ |
|
7076 |
aGlobal isMeta ifFalse:[ |
|
7077 |
aGlobal name == aGlobalName ifTrue:[ |
|
7078 |
((aGlobalName startsWith:sel) |
|
7079 |
or:[(sel startsWith:aGlobalName)]) ifTrue:[ |
|
7080 |
closeName isNil ifTrue:[closeName := aGlobalName]. |
|
7081 |
anyClose := true. |
|
7082 |
] |
|
7083 |
] |
|
7084 |
] |
|
7085 |
] |
|
7086 |
]. |
|
7087 |
anyClose ifFalse:[ |
|
7088 |
sel := nil |
|
7089 |
] ifTrue:[ |
|
7090 |
sel := closeName |
|
7091 |
] |
|
7092 |
] |
|
7093 |
] |
|
7094 |
]. |
|
7095 |
||
7096 |
sel notNil ifTrue:[ |
|
7097 |
initialText := sel asString withoutSeparators |
|
7098 |
] ifFalse:[ |
|
7099 |
aBrowserOrNil codeAspect == SyntaxHighlighter codeAspectMethod ifTrue:[ |
|
7100 |
methods := aBrowserOrNil selectedMethodsValue. |
|
7101 |
methods size > 0 ifTrue:[ |
|
7102 |
someMethod := methods first. |
|
7103 |
usedGlobals := someMethod usedGlobals collect:[:eachVar | eachVar asSymbol]. |
|
7104 |
usedGlobals := usedGlobals select:[:eachVar | (Smalltalk at:eachVar) isBehavior]. |
|
7105 |
usedGlobals size > 0 ifTrue:[ |
|
7106 |
list := list reject:[:each | usedGlobals includes:each ]. |
|
7107 |
list := usedGlobals asOrderedCollection sort , list. |
|
7108 |
offeredClass := Smalltalk at:usedGlobals first |
|
7109 |
] ifFalse:[ |
|
7110 |
offeredClass := someMethod mclass |
|
7111 |
] |
|
7112 |
] |
|
7113 |
] ifFalse:[ |
|
7114 |
(aBrowserOrNil navigationState isVersionDiffBrowser |
|
7115 |
or:[aBrowserOrNil navigationState isClassDocumentationBrowser]) ifTrue:[ |
|
7116 |
offeredClass := currentClass. |
|
7117 |
(offeredClass notNil and:[offeredClass isPrivate]) ifTrue:[ |
|
7118 |
offeredClass := offeredClass owningClass |
|
7119 |
] |
|
7120 |
] ifFalse:[ |
|
7121 |
(currentClass notNil |
|
7122 |
and:[(superclass := currentClass superclass) notNil]) ifTrue:[ |
|
7123 |
offeredClass := superclass |
|
7124 |
] |
|
7125 |
] |
|
7126 |
]. |
|
7127 |
offeredClass notNil ifTrue:[ |
|
7128 |
initialText := offeredClass theNonMetaclass name |
|
7129 |
] |
|
7130 |
]. |
|
7131 |
]. |
|
7132 |
||
7133 |
box := self |
|
7134 |
enterBoxTitle:(self classResources string:title) |
|
7135 |
withList:list |
|
7136 |
okText:(self classResources string:okText). |
|
7137 |
||
7138 |
initialText notNil ifTrue:[ |
|
7139 |
box initialText:initialText |
|
7140 |
]. |
|
7141 |
^ box |
|
7142 |
||
7143 |
"Created: / 13-02-2000 / 20:56:18 / cg" |
|
7144 |
"Modified: / 27-07-2012 / 22:18:34 / cg" |
|
17605 | 7145 |
"Modified (comment): / 27-07-2017 / 12:58:02 / cg" |
13028 | 7146 |
! |
7147 |
||
7148 |
enterBoxTitle:title withList:aListOrNil okText:okText |
|
7149 |
"convenient method: setup enterBox" |
|
7150 |
||
7151 |
|box rsrcs| |
|
7152 |
||
7153 |
aListOrNil notNil ifTrue:[ |
|
7154 |
box := ListSelectionBox new. |
|
7155 |
"/ box := EnterBoxWithList new. |
|
7156 |
box list:aListOrNil. |
|
7157 |
] ifFalse:[ |
|
7158 |
box := EnterBox new. |
|
7159 |
]. |
|
7160 |
rsrcs := self classResources. |
|
7161 |
box title:(rsrcs string:title) okText:(rsrcs string:okText). |
|
7162 |
^ box |
|
7163 |
||
7164 |
" |
|
7165 |
self enterBoxTitle:'bla' withList:#('a' 'b' 'c') okText:'gaga' |
|
7166 |
" |
|
7167 |
||
7168 |
"Created: / 13.2.2000 / 20:53:53 / cg" |
|
7169 |
"Modified: / 1.3.2000 / 11:15:09 / cg" |
|
7170 |
! |
|
7171 |
||
2813 | 7172 |
extractClassAndSelectorFrom:aString into:aBlock |
7173 |
"given a string which can be either 'class>>sel' or |
|
7174 |
'class sel', extract className and selector, and call aBlock with |
|
7175 |
the result. |
|
7176 |
Useful to open browser on a method as selected in some documentation." |
|
7177 |
||
7178 |
|sel clsName isMeta sep s| |
|
7179 |
||
7180 |
sel := aString. |
|
7181 |
sel notNil ifTrue:[ |
|
7182 |
sel := sel asString withoutSeparators. |
|
7183 |
('*>>*' match:sel) ifTrue:[ |
|
7184 |
sep := $> |
|
7185 |
] ifFalse:[ |
|
18157 | 7186 |
('*»*' match:sel) ifTrue:[ |
7187 |
sep := $» |
|
16529 | 7188 |
] ifFalse:[ |
7189 |
('* *' match:sel) ifTrue:[ |
|
7190 |
sep := Character space |
|
7191 |
] |
|
7192 |
]. |
|
2813 | 7193 |
]. |
7194 |
sep notNil ifTrue:[ |
|
7195 |
" |
|
7196 |
extract class/sel from selection |
|
7197 |
" |
|
7198 |
s := ReadStream on:sel. |
|
16529 | 7199 |
clsName := (s upTo:sep) withoutSeparators. |
2813 | 7200 |
[s peek == sep] whileTrue:[s next]. |
16529 | 7201 |
sel := (s upToEnd) withoutSeparators. |
2813 | 7202 |
|
7203 |
(clsName endsWith:' class') ifTrue:[ |
|
7204 |
isMeta := true. |
|
12713
7cccc4a7733c
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
12631
diff
changeset
|
7205 |
clsName := clsName copyButLast:6 "copyTo:(clsName size - 5)" |
2813 | 7206 |
] ifFalse:[ |
7207 |
isMeta := false |
|
7208 |
]. |
|
7209 |
] |
|
7210 |
]. |
|
7211 |
aBlock value:clsName value:sel value:isMeta |
|
7212 |
||
7213 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
7214 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
7215 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
7216 |
! |
|
7217 |
||
7218 |
extractSelectorFrom:aString |
|
7219 |
"given an arbitrary string, try to extract a useful selector. |
|
7220 |
Useful to open browser on a selected code fragment." |
|
7221 |
||
16529 | 7222 |
|s sel sel2 t idx| |
7223 |
||
7224 |
aString isEmptyOrNil ifTrue:[^ nil]. |
|
7225 |
||
18157 | 7226 |
(idx := aString indexOf:$») ~~ 0 ifTrue:[ |
16529 | 7227 |
s := (aString copyFrom:idx+1) withoutSeparators. |
7228 |
s isEmpty ifTrue:[^ nil]. |
|
7229 |
] ifFalse:[ |
|
7230 |
s := aString asString string withoutSeparators. |
|
7231 |
]. |
|
15976 | 7232 |
sel := s asSymbolIfInterned. |
7233 |
sel isNil ifTrue:[ |
|
7234 |
sel := s. |
|
7235 |
] ifFalse:[ |
|
7236 |
(sel endsWith:$:) ifTrue:[ |
|
7237 |
^ sel. |
|
7238 |
]. |
|
6705 | 7239 |
]. |
7240 |
||
2813 | 7241 |
t := Parser selectorInExpression:sel. |
7242 |
t notNil ifTrue:[ |
|
7243 |
sel := t |
|
7244 |
]. |
|
16529 | 7245 |
(sel = s or:[sel isNil or:[t == #'>>']]) ifTrue:[ |
16863 | 7246 |
"oops - that's probably not what we want here ..." |
2813 | 7247 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
7248 |
sel := s |
|
7249 |
] |
|
7250 |
]. |
|
15976 | 7251 |
s := sel asSymbolIfInterned. |
7252 |
s notNil ifTrue:[ |
|
7253 |
^ s. |
|
7254 |
]. |
|
7255 |
||
7256 |
(sel startsWith:$#) ifTrue:[ |
|
7257 |
sel2 := sel copyFrom:2. |
|
7258 |
((sel2 startsWith:$') and:[(sel2 endsWith:$')]) ifTrue:[ |
|
7259 |
sel2 := (sel2 copyFrom:2) copyButLast:1 |
|
7260 |
]. |
|
7261 |
(sel2 := sel2 asSymbolIfInterned) notNil ifTrue:[ |
|
7262 |
^ sel2. |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7263 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7264 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7265 |
|
2813 | 7266 |
^ sel |
7267 |
||
7268 |
" |
|
7269 |
self extractSelectorFrom:'at:put:' |
|
7270 |
self extractSelectorFrom:'#at:put:' |
|
15976 | 7271 |
self extractSelectorFrom:'#''at:put:''' |
2813 | 7272 |
self extractSelectorFrom:'at:something put:someValue' |
7273 |
self extractSelectorFrom:'self at:something put:someValue' |
|
7274 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
7275 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
18157 | 7276 |
self extractSelectorFrom:'Array » at:put:' |
2813 | 7277 |
self extractSelectorFrom:'Array>>at:put:' |
15976 | 7278 |
self extractSelectorFrom:'Array>>#at:put:' |
7279 |
self extractSelectorFrom:'Array>>#''at:put:''' |
|
2813 | 7280 |
" |
7281 |
||
7282 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
7283 |
"Modified: / 6.2.2000 / 00:57:08 / cg" |
|
6560
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7284 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7285 |
|
13028 | 7286 |
getClassThenPerform:aSelector |
7287 |
|classNameEntered classEntered enterBox resources| |
|
7288 |
||
7289 |
"/ new Code: |
|
7290 |
classNameEntered := self askForClassName. |
|
7291 |
||
7292 |
"/ old Code: |
|
7293 |
"/ resources := self classResources. |
|
7294 |
"/ |
|
7295 |
"/ enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:'). |
|
7296 |
"/ enterBox okText:(resources string:'Browse'). |
|
7297 |
"/ enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
|
7298 |
"/ enterBox action:[:className | classNameEntered := className]. |
|
7299 |
"/ enterBox showAtPointer. |
|
7300 |
"/ |
|
7301 |
classNameEntered notEmptyOrNil ifTrue:[ |
|
7302 |
classEntered := Smalltalk classNamed:classNameEntered. |
|
7303 |
classEntered isNil ifTrue:[ |
|
7304 |
self warn:(resources string:'No such class'). |
|
7305 |
] ifFalse:[ |
|
7306 |
self perform:aSelector with:classEntered |
|
7307 |
] |
|
7308 |
]. |
|
7309 |
||
7310 |
" |
|
7311 |
SystemBrowser getClassThenPerform:#browseClass: |
|
7312 |
" |
|
7313 |
||
7314 |
"Modified: / 10-08-2006 / 12:54:20 / cg" |
|
7315 |
! |
|
7316 |
||
6560
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7317 |
resourceEditorClassFor:aResource |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7318 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7319 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7320 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7321 |
(aResource == #canvas) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7322 |
^ UIPainter |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7323 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7324 |
(aResource == #menu) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7325 |
^ MenuEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7326 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7327 |
((aResource == #image) or:[aResource == #fileImage]) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7328 |
^ ImageEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7329 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7330 |
(aResource == #help) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7331 |
^ UIHelpTool |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7332 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7333 |
(aResource == #tableColumns) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7334 |
^ DataSetBuilder |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7335 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7336 |
(aResource == #tabList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7337 |
^ TabListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7338 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7339 |
(aResource == #hierarchicalList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7340 |
^ HierarchicalListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7341 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7342 |
^ nil |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7343 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7344 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7345 |
resourceEditorClassForResources:resources |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7346 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7347 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7348 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7349 |
resources keysDo:[:eachResource | |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7350 |
|editor| |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7351 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7352 |
editor := self resourceEditorClassFor:eachResource. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7353 |
editor notNil ifTrue:[ ^ editor]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7354 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7355 |
^ nil |
2813 | 7356 |
! ! |
7357 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7358 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7359 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7360 |
className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7361 |
"return the value of the instance variable 'className' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7362 |
|
13947 | 7363 |
^ className ? '*anonymous*' |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7364 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7365 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7366 |
className:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7367 |
"set the value of the instance variable 'className' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7368 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7369 |
className := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7370 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7371 |
|
3151 | 7372 |
className:classNameArg meta:metaArg selector:selectorArg |
7373 |
className := classNameArg. |
|
7374 |
meta := metaArg. |
|
7375 |
selector := selectorArg. |
|
7376 |
! |
|
7377 |
||
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7378 |
icon |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7379 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7380 |
^nil |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7381 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7382 |
"Created: / 05-05-2011 / 23:57:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7383 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7384 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7385 |
label |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7386 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7387 |
^self displayString |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7388 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7389 |
"Created: / 05-05-2011 / 23:57:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7390 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7391 |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7392 |
meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7393 |
"return the value of the instance variable 'meta' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7394 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7395 |
^ meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7396 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7397 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7398 |
meta:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7399 |
"set the value of the instance variable 'meta' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7400 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7401 |
meta := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7402 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7403 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7404 |
selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7405 |
"return the value of the instance variable 'selector' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7406 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7407 |
^ selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7408 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7409 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7410 |
selector:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7411 |
"set the value of the instance variable 'selector' (automatically generated)" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7412 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7413 |
selector := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7414 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7415 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7416 |
theClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7417 |
^ Smalltalk at:className asSymbol |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7418 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7419 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7420 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7421 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7422 |
= anEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7423 |
^ className = anEntry className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7424 |
and:[meta = anEntry meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7425 |
and:[selector = anEntry selector]] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7426 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7427 |
|
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7428 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'displaying'! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7429 |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7430 |
displayOn:aGCOrStream |
13820 | 7431 |
| cls name | |
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7432 |
|
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7433 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
17432 | 7434 |
"/ old ST80 means: draw-yourself on a GC. |
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7435 |
(aGCOrStream isStream) ifFalse:[ |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7436 |
^ super displayOn:aGCOrStream |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7437 |
]. |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7438 |
|
13820 | 7439 |
cls := self theClass. |
7440 |
name := cls notNil ifTrue:[cls nameInBrowser] ifFalse:[className]. |
|
7441 |
name printOn:aGCOrStream. |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7442 |
meta ifTrue:[ |
16037 | 7443 |
"/ aGCOrStream emphasis:#bold. |
7444 |
aGCOrStream nextPutAll:' class'. |
|
7445 |
"/ aGCOrStream emphasis:nil. |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7446 |
]. |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7447 |
selector notNil ifTrue:[ |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7448 |
aGCOrStream |
18157 | 7449 |
nextPutAll:' » '; |
17543 | 7450 |
bold; |
16037 | 7451 |
nextPutAll:selector; |
17543 | 7452 |
normal. |
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7453 |
]. |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7454 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7455 |
"Created: / 15-04-2010 / 13:47:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13820 | 7456 |
"Modified: / 14-10-2013 / 12:18:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17543 | 7457 |
"Modified: / 20-06-2017 / 08:59:26 / cg" |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7458 |
! ! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7459 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
7460 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 7461 |
|
12822 | 7462 |
version |
15831 | 7463 |
^ '$Header$' |
12822 | 7464 |
! |
7465 |
||
8851 | 7466 |
version_CVS |
15831 | 7467 |
^ '$Header$' |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7468 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7469 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7470 |
version_SVN |
15831 | 7471 |
^ '$Id$' |
36 | 7472 |
! ! |
4112 | 7473 |
|
12475 | 7474 |
|
203 | 7475 |
SystemBrowser initialize! |