author | Jan Vrany <jan.vrany@labware.com> |
Wed, 08 Mar 2023 16:40:41 +0000 | |
branch | jv |
changeset 19643 | b3148ab32c03 |
parent 19611 | a4b9d283ca40 |
permissions | -rw-r--r-- |
36 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
3 |
COPYRIGHT (c) 2021 LabWare |
4158 | 4 |
All Rights Reserved |
36 | 5 |
|
6 |
This software is furnished under a license and may be used |
|
7 |
only in accordance with the terms of that license and with the |
|
8 |
inclusion of the above copyright notice. This software may not |
|
9 |
be provided or otherwise made available to, or used by, any |
|
10 |
other person. No title to or ownership of the software is |
|
11 |
hereby transferred. |
|
12 |
" |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
13 |
"{ Package: 'stx:libtool' }" |
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
14 |
|
15206 | 15 |
"{ NameSpace: Smalltalk }" |
16 |
||
85 | 17 |
ApplicationModel subclass:#SystemBrowser |
4165 | 18 |
instanceVariableNames:'' |
19 |
classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
20 |
EmphasisForChangedCode EmphasisForDifferentPackage |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
21 |
EmphasisForModifiedBuffer EmphasisForObsoleteCode |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
22 |
EmphasisForReadVariable EmphasisForWrittenVariable |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
23 |
LastClassSearchBoxShowedFullName LastSearchPatterns' |
4165 | 24 |
poolDictionaries:'' |
25 |
category:'Interface-Browsers' |
|
36 | 26 |
! |
27 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
28 |
Object subclass:#BrowserHistoryEntry |
4165 | 29 |
instanceVariableNames:'className meta selector' |
30 |
classVariableNames:'' |
|
31 |
poolDictionaries:'' |
|
32 |
privateIn:SystemBrowser |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
33 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
34 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
35 |
!SystemBrowser class methodsFor:'documentation'! |
203 | 36 |
|
37 |
copyright |
|
38 |
" |
|
39 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
40 |
COPYRIGHT (c) 2021 LabWare |
4158 | 41 |
All Rights Reserved |
203 | 42 |
|
43 |
This software is furnished under a license and may be used |
|
44 |
only in accordance with the terms of that license and with the |
|
45 |
inclusion of the above copyright notice. This software may not |
|
46 |
be provided or otherwise made available to, or used by, any |
|
47 |
other person. No title to or ownership of the software is |
|
48 |
hereby transferred. |
|
49 |
" |
|
50 |
! |
|
51 |
||
52 |
documentation |
|
53 |
" |
|
8893 | 54 |
Notice: SystemBrowser has been completely rewritten to be an instance |
16016 | 55 |
of ApplicationModel. This rewritten version is found under Tools::NewSystemBrowser. |
8893 | 56 |
Because the class protocol here was used by many others, it is left here |
57 |
as an instance-less functionality provider only. |
|
203 | 58 |
|
59 |
written winter 89 by claus. |
|
60 |
||
508 | 61 |
[author:] |
62 |
Claus Gittinger |
|
63 |
||
203 | 64 |
" |
65 |
! ! |
|
66 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
67 |
!SystemBrowser class methodsFor:'initialization'! |
75 | 68 |
|
69 |
initialize |
|
70 |
"Browser configuration; |
|
71 |
(values can be changed from your private startup file)" |
|
45 | 72 |
|
254 | 73 |
"/ self classResources. |
85 | 74 |
|
75 | 75 |
" |
76 |
setting this to false, the removeClass function will remove |
|
77 |
classes WITHOUT checking for instances. Otherwise, |
|
78 |
it will check and let you confirm in case there are instances. |
|
79 |
Checking for instances may be a bit time consuming, though. |
|
80 |
The default is true - therefore, it will check |
|
81 |
" |
|
82 |
CheckForInstancesWhenRemovingClasses := true |
|
83 |
||
84 |
" |
|
85 |
CheckForInstancesWhenRemovingClasses := true |
|
86 |
CheckForInstancesWhenRemovingClasses := false |
|
87 |
||
85 | 88 |
SystemBrowser initialize |
75 | 89 |
" |
90 |
! ! |
|
36 | 91 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
92 |
!SystemBrowser class methodsFor:'instance creation'! |
52 | 93 |
|
75 | 94 |
open |
95 |
"launch a standard browser" |
|
96 |
||
2631 | 97 |
self == SystemBrowser ifFalse:[ |
98 |
^ super open |
|
99 |
]. |
|
100 |
||
105 | 101 |
^ self openOnDevice:(Screen current) |
75 | 102 |
|
93 | 103 |
" |
15831 | 104 |
SystemBrowser default open |
93 | 105 |
SystemBrowser open |
106 |
" |
|
194 | 107 |
! |
108 |
||
523 | 109 |
openInClass:aClass |
110 |
"launch a standard browser which immediately switches |
|
111 |
to aClass" |
|
112 |
||
113 |
^ self openInClass:aClass selector:nil |
|
114 |
||
115 |
" |
|
15831 | 116 |
SystemBrowser default openInClass:Object |
523 | 117 |
SystemBrowser openInClass:Object |
118 |
" |
|
119 |
||
120 |
"Created: 30.4.1996 / 14:43:45 / cg" |
|
121 |
! |
|
122 |
||
194 | 123 |
openInClass:aClass selector:aSelector |
124 |
"launch a standard browser which immediately switches |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
125 |
to aClass » aSelector. Returns the browser" |
194 | 126 |
|
3626 | 127 |
|brwsr classesName| |
194 | 128 |
|
129 |
brwsr := self openOnDevice:(Screen current). |
|
130 |
brwsr waitUntilVisible. |
|
1561 | 131 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
132 |
aClass notNil ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
133 |
"/ cls := aClass. |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
134 |
"/ cls isMeta ifTrue:[ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
135 |
"/ cls := aClass soleInstance |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
136 |
"/ ]. |
1561 | 137 |
aClass isMeta ifTrue:[ |
138 |
brwsr instanceProtocol:false |
|
139 |
]. |
|
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
140 |
aClass isJavaClass ifTrue:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
141 |
classesName := aClass fullName. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
142 |
] ifFalse:[ |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
143 |
classesName := aClass name. |
1931
03de5c5f4402
care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents:
1919
diff
changeset
|
144 |
]. |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
145 |
brwsr switchToClassNamed:classesName. |
1681 | 146 |
brwsr classSelectionChanged. |
1561 | 147 |
aSelector notNil ifTrue:[ |
148 |
brwsr switchToMethodNamed:aSelector. |
|
149 |
] |
|
194 | 150 |
]. |
151 |
^ brwsr |
|
152 |
||
153 |
" |
|
154 |
SystemBrowser openInClass:Object selector:#at:put: |
|
155 |
SystemBrowser openInClass:Object selector:nil |
|
156 |
SystemBrowser openInClass:nil selector:nil |
|
157 |
" |
|
158 |
||
1561 | 159 |
"Created: / 22.11.1995 / 21:04:50 / cg" |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
160 |
"Modified: / 5.11.2001 / 16:51:02 / cg" |
203 | 161 |
! |
162 |
||
3588 | 163 |
openOn:anEnvironment |
4921 | 164 |
^ self |
165 |
openOn:anEnvironment |
|
166 |
label:(self classResources string:'System Browser') |
|
3588 | 167 |
|
168 |
" |
|
15831 | 169 |
SystemBrowser default openOn:Smalltalk |
170 |
SystemBrowser default openOn:Demos |
|
171 |
||
3588 | 172 |
SystemBrowser openOn:Smalltalk |
3589 | 173 |
SystemBrowser openOn:Demos |
3588 | 174 |
" |
175 |
! |
|
176 |
||
4921 | 177 |
openOn:aClassEnvironment label:title |
178 |
^ self |
|
179 |
openOn:aClassEnvironment |
|
180 |
label:title |
|
181 |
onDevice:(Screen current) |
|
182 |
! |
|
183 |
||
184 |
openOn:aClassEnvironment label:title onDevice:aDisplayDevice |
|
185 |
|browser| |
|
186 |
||
187 |
browser := self |
|
188 |
newWithLabel:title |
|
189 |
setupBlock:[:browser | browser environment:aClassEnvironment. |
|
190 |
browser setupForAll] |
|
191 |
onDevice:aDisplayDevice. |
|
192 |
^ browser |
|
193 |
! |
|
194 |
||
203 | 195 |
openOnDevice:aDisplay |
196 |
"launch a standard browser on another display." |
|
197 |
||
2631 | 198 |
self == SystemBrowser ifFalse:[ |
199 |
^ super openOnDevice:aDisplay |
|
200 |
]. |
|
201 |
||
3519 | 202 |
^ self |
4921 | 203 |
openOn:Smalltalk |
204 |
label:(self classResources string:'System Browser') |
|
3519 | 205 |
onDevice:aDisplay |
203 | 206 |
|
207 |
"|d| |
|
208 |
||
209 |
d := XWorkstation new initializeFor:'porty:0'. |
|
210 |
d startDispatch. |
|
211 |
SystemBrowser openOnDevice:d |
|
212 |
" |
|
2818 | 213 |
! |
214 |
||
3573 | 215 |
openOnRemoteImageOnHost:aHostName port:portOrNil |
4921 | 216 |
|environment| |
3573 | 217 |
|
218 |
environment := RemoteImage onHost:aHostName port:portOrNil. |
|
4921 | 219 |
^ self |
220 |
openOn:environment |
|
221 |
label:(self classResources string:'RemoteImage Browser - %1' with:aHostName) |
|
3573 | 222 |
|
223 |
" |
|
224 |
SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil |
|
7998 | 225 |
SystemBrowser openOnRemoteImageOnHost:'192.168.8.1' port:nil |
3573 | 226 |
" |
227 |
! |
|
228 |
||
2818 | 229 |
openOnSnapShotImage:anImageFileName |
4921 | 230 |
|environment| |
2818 | 231 |
|
232 |
environment := SnapShotImage for:anImageFileName. |
|
4921 | 233 |
^ self |
234 |
openOn:environment |
|
235 |
label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName) |
|
2818 | 236 |
|
237 |
" |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
238 |
SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img') |
2824 | 239 |
" |
240 |
! ! |
|
36 | 241 |
|
4909 | 242 |
!SystemBrowser class methodsFor:'Compatibility-ST80'! |
1356 | 243 |
|
244 |
newOnClass:aClass |
|
245 |
^ self browseClass:aClass |
|
246 |
||
247 |
"Created: / 27.10.1997 / 20:10:39 / cg" |
|
248 |
! ! |
|
249 |
||
4909 | 250 |
!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
|
251 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
252 |
addToHistory:aClass selector:aSelectorOrNil |
3679 | 253 |
|newEntry oldEntry classHistory| |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
254 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
255 |
(newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self]. |
3679 | 256 |
classHistory := self classHistory. |
257 |
||
10173
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
258 |
oldEntry := classHistory detect:[:entry | (entry className = newEntry className) |
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
259 |
"and:[entry selector = newEntry selector]"] ifNone:nil. |
3679 | 260 |
oldEntry notNil ifTrue:[ |
261 |
classHistory removeIdentical:oldEntry. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
262 |
]. |
3679 | 263 |
classHistory addFirst:newEntry. |
264 |
classHistory size > self visitedHistoryMaxSize ifTrue:[ |
|
265 |
classHistory removeLast |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
266 |
]. |
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
267 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
268 |
|
10173
ed7cc5e574cb
comment/format in: #addToHistory:selector:
Claus Gittinger <cg@exept.de>
parents:
10048
diff
changeset
|
269 |
"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
|
270 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
271 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
272 |
checkClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
273 |
"checks the class history for non-existing classes" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
274 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
275 |
"/ reverse, since we might modify while enumerating |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
276 |
self classHistory reverseDo:[:histEntry| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
277 |
(Smalltalk at: (histEntry className) asSymbol) isBehavior |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
278 |
ifFalse:[ |
10346
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
279 |
self classHistory removeIdentical: histEntry |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
280 |
] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
281 |
] |
10346
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
282 |
|
560fea0fd857
changed: #checkClassHistory
Claus Gittinger <cg@exept.de>
parents:
10327
diff
changeset
|
283 |
"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
|
284 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
285 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
286 |
classHistory |
3679 | 287 |
ClassHistory isNil ifTrue:[ |
288 |
ClassHistory := List new |
|
289 |
]. |
|
290 |
^ ClassHistory |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
291 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
292 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
293 |
classHistory:newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
294 |
ClassHistory := newCollection |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
295 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
296 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
297 |
emptyClassHistory |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
298 |
"removes all class history entries" |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
299 |
|
7524
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
300 |
|classHistory| |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
301 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
302 |
classHistory := self classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
303 |
classHistory removeAll. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
304 |
SystemBrowser changed:#visitedClassHistory with:classHistory. |
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
305 |
|
0257265ae6b7
do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents:
7395
diff
changeset
|
306 |
"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
|
307 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
308 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
309 |
historyEntryForClass:aClass selector:aSelectorOrNil |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
310 |
|newEntry meta cls| |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
311 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
312 |
aClass isBehavior ifFalse:[^ nil]. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
313 |
|
3151 | 314 |
(meta := aClass isMeta) ifTrue:[ |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
315 |
cls := aClass theNonMetaclass. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
316 |
] ifFalse:[ |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
317 |
cls := aClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
318 |
]. |
3151 | 319 |
newEntry := BrowserHistoryEntry new. |
320 |
newEntry |
|
321 |
className:cls name |
|
322 |
meta:meta |
|
323 |
selector:aSelectorOrNil. |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
324 |
^ newEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
325 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
326 |
"Modified: / 24.2.2000 / 18:03:52 / cg" |
9189
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
327 |
! |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
328 |
|
11271 | 329 |
lastSearchPatterns |
330 |
^ LastSearchPatterns |
|
331 |
! |
|
332 |
||
333 |
rememberSearchPattern:aString |
|
334 |
LastSearchPatterns isNil ifTrue:[ |
|
335 |
LastSearchPatterns := OrderedCollection new. |
|
336 |
]. |
|
337 |
(LastSearchPatterns includes:aString) ifTrue:[ |
|
338 |
LastSearchPatterns remove:aString. |
|
339 |
] ifFalse:[ |
|
340 |
LastSearchPatterns size > 20 ifTrue:[ |
|
341 |
LastSearchPatterns removeFirst |
|
342 |
] |
|
343 |
]. |
|
344 |
LastSearchPatterns addFirst:aString. |
|
345 |
||
346 |
"Modified: / 24-11-2010 / 12:51:31 / cg" |
|
347 |
"Created: / 14-02-2012 / 14:00:24 / cg" |
|
348 |
! |
|
349 |
||
9189
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
350 |
visitedClassNamesHistory |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
351 |
^ self classHistory |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
352 |
collect:[:e | e className] |
9f57319e21ca
added: #visitedClassNamesHistory
Claus Gittinger <cg@exept.de>
parents:
9157
diff
changeset
|
353 |
thenSelect:[:nm | nm notEmptyOrNil] |
13028 | 354 |
|
355 |
" |
|
356 |
Tools::NewSystemBrowser visitedClassNamesHistory |
|
357 |
" |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
358 |
! ! |
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 |
!SystemBrowser class methodsFor:'defaults'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
361 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
362 |
classHistoryMaxLevels |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
363 |
^ 3 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
364 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
365 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
366 |
classHistoryMaxSize |
12954 | 367 |
"returns maximum size of the visited class history" |
368 |
||
369 |
Screen current height < 768 ifTrue:[ |
|
370 |
^ 15 |
|
371 |
]. |
|
372 |
^ 20 "/ 15 |
|
373 |
||
374 |
"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
|
375 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
376 |
|
15831 | 377 |
default |
378 |
"convenient getter for the user's preference. |
|
379 |
Returns his choice of browser class" |
|
380 |
||
15940 | 381 |
^ UserPreferences systemBrowserClass |
15831 | 382 |
|
383 |
" |
|
384 |
SystemBrowser default open |
|
385 |
" |
|
386 |
! |
|
387 |
||
16847 | 388 |
largeLabelFont |
389 |
^ Label defaultFont scaled:1.2. |
|
390 |
! |
|
391 |
||
3549 | 392 |
methodTemplate |
8877 | 393 |
"return a method definition template string or nil" |
394 |
||
395 |
^ SmalltalkLanguage instance methodTemplate |
|
3549 | 396 |
! |
397 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
398 |
visitedHistoryMaxSize |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
399 |
"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
|
400 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
401 |
^ 15 |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
402 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
403 |
|
4909 | 404 |
!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
|
405 |
|
3352 | 406 |
emphasisForChangedCode |
19611
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
407 |
<resource: #style (#'emphasisForChangedCode')> |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
408 |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
409 |
EmphasisForChangedCode isNil ifTrue:[ |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
410 |
EmphasisForChangedCode := |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
411 |
self defaultStyleSheet |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
412 |
at: 'emphasisForChangedCode' |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
413 |
default: [UserPreferences current emphasisForChangedCode]. |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
414 |
]. |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
415 |
^ EmphasisForChangedCode |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
416 |
|
3352 | 417 |
|
418 |
" |
|
419 |
EmphasisForChangedCode := #underwave |
|
4112 | 420 |
EmphasisForChangedCode := #color->Color blue |
3352 | 421 |
EmphasisForChangedCode := #color->Color red lightened lightened lightened |
422 |
" |
|
423 |
||
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
424 |
"Created: / 31-10-2001 / 10:15:33 / cg" |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
425 |
"Modified: / 15-09-2021 / 13:29:19 / Jan Vrany <jan.vrany@labware.com>" |
3352 | 426 |
! |
427 |
||
428 |
emphasisForChangedCode:anEmphasis |
|
429 |
EmphasisForChangedCode := anEmphasis |
|
430 |
||
431 |
" |
|
432 |
self emphasisForChangedCode:#underwave |
|
433 |
self emphasisForChangedCode:(#color->Color red lightened lightened lightened) |
|
434 |
" |
|
435 |
||
436 |
"Created: / 31.10.2001 / 10:15:44 / cg" |
|
437 |
! |
|
438 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
439 |
emphasisForDifferentPackage |
4499 | 440 |
^ 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
|
441 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
442 |
" |
3352 | 443 |
EmphasisForDifferentPackage := nil. |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
444 |
EmphasisForDifferentPackage := #underwave |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
445 |
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
|
446 |
" |
3352 | 447 |
|
448 |
"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
|
449 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
450 |
|
3241 | 451 |
emphasisForDifferentPackage:anEmphasis |
452 |
EmphasisForDifferentPackage := anEmphasis |
|
453 |
||
454 |
" |
|
455 |
self emphasisForDifferentPackage:#underwave |
|
456 |
self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened) |
|
457 |
" |
|
458 |
! |
|
459 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
460 |
emphasisForModifiedBuffer |
19611
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
461 |
<resource: #style (#'emphasisForModifiedBuffer')> |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
462 |
|
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
463 |
EmphasisForModifiedBuffer isNil ifTrue:[ |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
464 |
EmphasisForModifiedBuffer := |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
465 |
self defaultStyleSheet |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
466 |
at: 'emphasisForModifiedBuffer' |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
467 |
default: [UserPreferences current emphasisForModifiedBuffer]. |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
468 |
]. |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
469 |
^ EmphasisForModifiedBuffer |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
470 |
|
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
471 |
"Modified: / 17-09-2021 / 15:00:46 / Jan Vrany <jan.vrany@labware.com>" |
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
472 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
473 |
|
3241 | 474 |
emphasisForModifiedBuffer:anEmphasis |
475 |
EmphasisForModifiedBuffer := anEmphasis |
|
476 |
! |
|
477 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
478 |
emphasisForObsoleteCode |
4499 | 479 |
^ 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
|
480 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
481 |
|
3241 | 482 |
emphasisForObsoleteCode:anEmphasis |
483 |
EmphasisForObsoleteCode := anEmphasis |
|
484 |
! |
|
485 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
486 |
emphasisForReadVariable |
4499 | 487 |
^ 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
|
488 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
489 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
490 |
EmphasisForReadVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
491 |
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
|
492 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
493 |
! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
494 |
|
3241 | 495 |
emphasisForReadVariable:anEmphasis |
496 |
EmphasisForReadVariable := anEmphasis |
|
497 |
||
498 |
" |
|
499 |
self emphasisForReadVariable:#underline |
|
500 |
self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow) |
|
501 |
" |
|
502 |
! |
|
503 |
||
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
504 |
emphasisForWrittenVariable |
4499 | 505 |
^ 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
|
506 |
|
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
507 |
" |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
508 |
EmphasisForWrittenVariable := #underline |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
509 |
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
|
510 |
" |
3241 | 511 |
! |
512 |
||
513 |
emphasisForWrittenVariable:anEmphasis |
|
514 |
EmphasisForWrittenVariable := anEmphasis |
|
515 |
||
516 |
" |
|
517 |
self emphasisForWrittenVariable:#underline |
|
518 |
self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened) |
|
519 |
" |
|
6901 | 520 |
! |
521 |
||
522 |
iconForClass:aClass |
|
14103 | 523 |
"ask the class for its browser symbol; |
524 |
that's a key/selector in the ToolbarIconLibrary" |
|
6901 | 525 |
|
7827 | 526 |
aClass withAllSuperclassesDo:[:eachCls | |
15540 | 527 |
|icon iconSymbol | |
528 |
||
15565 | 529 |
icon := [ eachCls toolListIcon ] on:Error do:[]. |
15540 | 530 |
icon notNil ifTrue:[^ icon ]. |
7827 | 531 |
|
532 |
iconSymbol := eachCls iconInBrowserSymbol. |
|
533 |
iconSymbol notNil ifTrue:[ |
|
534 |
^ ToolbarIconLibrary perform:iconSymbol |
|
535 |
]. |
|
536 |
]. |
|
15944 | 537 |
(aClass isUtilityClass) ifTrue:[ |
538 |
^ ToolbarIconLibrary utilityClassIcon |
|
539 |
]. |
|
540 |
(aClass isAbstract) ifTrue:[ |
|
541 |
^ ToolbarIconLibrary abstractClassIcon |
|
542 |
]. |
|
7827 | 543 |
|
6901 | 544 |
^ nil |
545 |
||
546 |
"Created: / 17-08-2006 / 09:11:27 / cg" |
|
7827 | 547 |
"Modified: / 20-07-2007 / 09:01:43 / cg" |
6901 | 548 |
! |
549 |
||
550 |
resourceIconForMethod:aMethod |
|
551 |
|resources| |
|
552 |
||
553 |
(resources := aMethod resources) isNil ifTrue:[^ nil]. |
|
554 |
||
555 |
(resources includesKey:#obsolete) ifTrue:[ |
|
556 |
^ self deprecatedMethodIcon |
|
557 |
]. |
|
558 |
(resources includesKey:#canvas) ifTrue:[ |
|
559 |
^ self canvasIcon |
|
560 |
]. |
|
561 |
(resources includesKey:#menu) ifTrue:[ |
|
562 |
^ self menuIcon |
|
563 |
]. |
|
564 |
(resources includesKey:#image) ifTrue:[ |
|
565 |
^ self imageIcon |
|
566 |
]. |
|
567 |
(resources includesKey:#fileImage) ifTrue:[ |
|
568 |
^ self fileImageIcon |
|
569 |
]. |
|
570 |
(resources includesKey:#programImage) ifTrue:[ |
|
571 |
^ self programImageIcon |
|
572 |
]. |
|
573 |
(resources includesKey:#help) ifTrue:[ |
|
574 |
^ self helpIcon |
|
575 |
]. |
|
576 |
(resources includesKey:#programMenu) ifTrue:[ |
|
577 |
^ self programMenuIcon |
|
578 |
]. |
|
579 |
(resources includesKey:#tableColumns) ifTrue:[ |
|
580 |
^ self tableColumnsIcon |
|
581 |
]. |
|
582 |
(resources includesKey:#tabList) ifTrue:[ |
|
583 |
^ self tabListIcon |
|
584 |
]. |
|
585 |
(resources includesKey:#hierarchicalList) ifTrue:[ |
|
586 |
^ self hierarchicalListIcon |
|
587 |
]. |
|
588 |
(resources includesKey:#programImage) ifTrue:[ |
|
589 |
^ self programImageIcon |
|
590 |
]. |
|
591 |
^ nil |
|
592 |
||
593 |
"Created: / 17-08-2006 / 09:08:11 / cg" |
|
3240
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
594 |
! ! |
34f017469465
allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents:
3221
diff
changeset
|
595 |
|
8702 | 596 |
!SystemBrowser class methodsFor:'dialogs'! |
597 |
||
598 |
askForClassNameMatching:matchStringArg inEnvironment:anEnvironmentOrClassOrNil for:aBrowserOrNil |
|
599 |
"open a dialog to ask for a class name. |
|
600 |
env is either a nameSpace or a class (to ask for a private class)" |
|
601 |
||
602 |
|classNames caselessMatchingNames |
|
603 |
substringMatchingNames caselessSubstringMatchingNames |
|
604 |
caselessWithoutPrefixSubstringMatchingNames |
|
605 |
lcMatchString subMatch lcSubMatch box className |
|
606 |
needSearch cls env searchBlock searchBlock2 |
|
607 |
idx pref aMatchString allNames sortedBySpellingDistance msg resources| |
|
608 |
||
609 |
resources := self classResources. |
|
610 |
env := anEnvironmentOrClassOrNil ? Smalltalk. |
|
611 |
||
612 |
aMatchString := matchStringArg. |
|
613 |
||
614 |
"/ try to limit search to a namespace (but only if nameSpace is not a matchCharacter) |
|
615 |
||
616 |
(aMatchString includesString:'::') ifTrue:[ |
|
617 |
"/ pref := aMatchString upTo:$:. |
|
618 |
idx := aMatchString lastIndexOf:$:. |
|
619 |
pref := aMatchString copyTo:idx-2. |
|
620 |
pref includesMatchCharacters ifTrue:[ |
|
621 |
"/ search all in Smalltalk |
|
622 |
] ifFalse:[ |
|
623 |
cls := Smalltalk at:pref asSymbol ifAbsent:nil. |
|
624 |
(cls notNil and:[cls isBehavior]) ifTrue:[ |
|
625 |
env := cls. |
|
626 |
aMatchString := aMatchString copyFrom:pref size + 1 + 2. |
|
627 |
]. |
|
628 |
]. |
|
629 |
]. |
|
630 |
||
631 |
classNames := Set new. |
|
632 |
caselessMatchingNames := Set new. |
|
633 |
substringMatchingNames := Set new. |
|
634 |
caselessSubstringMatchingNames := Set new. |
|
635 |
caselessWithoutPrefixSubstringMatchingNames := Set new. |
|
636 |
||
637 |
lcMatchString := aMatchString asLowercase. |
|
638 |
needSearch := true. |
|
639 |
aMatchString includesMatchCharacters ifFalse:[ |
|
640 |
subMatch := '*' , aMatchString , '*'. |
|
641 |
lcSubMatch := subMatch asLowercase. |
|
642 |
||
643 |
"/ if the name is already a good one, avoid the expensive search |
|
644 |
className := aMatchString asSymbolIfInterned. |
|
645 |
className notNil ifTrue:[ |
|
646 |
env isNameSpace ifTrue:[ |
|
647 |
cls := env at:className ifAbsent:nil. |
|
648 |
] ifFalse:[ |
|
649 |
cls := env privateClassesAt:className. |
|
650 |
]. |
|
651 |
(cls notNil and:[cls isBehavior]) ifTrue:[ |
|
652 |
needSearch := false. |
|
653 |
] |
|
654 |
] |
|
655 |
]. |
|
656 |
||
657 |
needSearch ifTrue:[ |
|
658 |
searchBlock := [:aClass | |
|
659 |
|thisName| |
|
660 |
||
661 |
"/ use dotted names for java |
|
662 |
aClass isJavaClass ifTrue:[ |
|
663 |
thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$. |
|
664 |
] ifFalse:[ |
|
665 |
thisName := aClass name |
|
666 |
]. |
|
667 |
(lcMatchString match:aClass name asLowercase) ifTrue:[ |
|
668 |
caselessWithoutPrefixSubstringMatchingNames add:thisName |
|
669 |
]. |
|
670 |
aClass nameWithoutPrefix ~= aClass name ifTrue:[ |
|
671 |
(lcMatchString match:aClass nameWithoutPrefix asLowercase) ifTrue:[ |
|
672 |
caselessWithoutPrefixSubstringMatchingNames add:thisName |
|
673 |
]. |
|
674 |
]. |
|
675 |
||
676 |
(aMatchString match:thisName) ifTrue:[ |
|
677 |
classNames add:thisName |
|
678 |
] ifFalse:[ |
|
679 |
(lcMatchString match:thisName asLowercase) ifTrue:[ |
|
680 |
caselessMatchingNames add:thisName |
|
681 |
] ifFalse:[ |
|
682 |
subMatch notNil ifTrue:[ |
|
683 |
(subMatch match:thisName) ifTrue:[ |
|
684 |
substringMatchingNames add:thisName |
|
685 |
] ifFalse:[ |
|
686 |
(lcSubMatch match:thisName asLowercase) ifTrue:[ |
|
687 |
caselessSubstringMatchingNames add:thisName |
|
688 |
] |
|
689 |
] |
|
690 |
] |
|
691 |
] |
|
692 |
] |
|
693 |
]. |
|
694 |
||
695 |
(env == Smalltalk or:[env isNameSpace]) ifTrue:[ |
|
696 |
env allClassesDo:searchBlock |
|
697 |
] ifFalse:[ |
|
698 |
env allPrivateClasses do:searchBlock |
|
699 |
]. |
|
700 |
||
701 |
sortedBySpellingDistance := false. |
|
702 |
"/ if nothing matched - try caseless matches |
|
703 |
classNames size == 0 ifTrue:[ |
|
704 |
classNames := caselessMatchingNames. |
|
705 |
||
706 |
"/ if nothing matched - try substring matches |
|
707 |
classNames size == 0 ifTrue:[ |
|
8704 | 708 |
aMatchString isUppercaseFirst ifTrue:[ |
8702 | 709 |
classNames := substringMatchingNames. |
710 |
]. |
|
711 |
"/ if nothing matched - try caseless substring matches |
|
712 |
classNames size == 0 ifTrue:[ |
|
713 |
classNames := caselessSubstringMatchingNames. |
|
714 |
||
715 |
"/ if nothing matched - try best fitting |
|
716 |
classNames size == 0 ifTrue:[ |
|
717 |
aMatchString includesMatchCharacters ifFalse:[ |
|
718 |
allNames := SortedCollection sortBlock:[:a :b | a value > b value]. |
|
719 |
searchBlock2 := |
|
720 |
[:aClass | |
|
721 |
|thisName dist| |
|
722 |
||
723 |
aClass isJavaClass ifTrue:[ |
|
724 |
thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$. |
|
725 |
] ifFalse:[ |
|
726 |
thisName := aClass name |
|
727 |
]. |
|
728 |
dist := thisName asLowercase spellAgainst:lcMatchString. |
|
729 |
(thisName asLowercase startsWith:lcMatchString) ifTrue:[ |
|
730 |
dist := dist + (thisName size * 10). |
|
731 |
]. |
|
732 |
allNames add:(thisName -> dist). |
|
733 |
]. |
|
734 |
(env == Smalltalk or:[env isNameSpace]) ifTrue:[ |
|
735 |
env allClassesDo:searchBlock2 |
|
736 |
] ifFalse:[ |
|
737 |
env allPrivateClasses do:searchBlock2 |
|
738 |
]. |
|
739 |
classNames := (allNames copyTo:(allNames size min:40)) collect:[:each | each key]. |
|
740 |
sortedBySpellingDistance := true. |
|
741 |
] |
|
742 |
] |
|
743 |
] |
|
744 |
] |
|
745 |
]. |
|
746 |
||
747 |
(classNames size == 0) ifTrue:[^ nil]. |
|
748 |
(classNames size == 1) ifTrue:[ |
|
749 |
className := classNames first |
|
750 |
] ifFalse:[ |
|
751 |
|browseButton| |
|
752 |
||
753 |
sortedBySpellingDistance ifFalse:[ |
|
754 |
classNames := classNames asArray sort. |
|
755 |
]. |
|
756 |
||
757 |
aMatchString includesMatchCharacters ifTrue:[ |
|
9065
efb483eb10a8
changed: #askForClassNameMatching:inEnvironment:for:
Claus Gittinger <cg@exept.de>
parents:
9010
diff
changeset
|
758 |
msg := 'Classes matching or similar to "%1"\\Select or enter name of class to switch to:' |
8702 | 759 |
] ifFalse:[ |
9065
efb483eb10a8
changed: #askForClassNameMatching:inEnvironment:for:
Claus Gittinger <cg@exept.de>
parents:
9010
diff
changeset
|
760 |
msg := 'Classes containing or similar to "%1"\\Select or enter name of class to switch to:' |
8702 | 761 |
]. |
762 |
||
763 |
box := self listBoxTitle:(resources string:msg with:matchStringArg) withCRs |
|
764 |
okText:'OK' |
|
765 |
list:classNames. |
|
766 |
caselessWithoutPrefixSubstringMatchingNames notEmpty ifTrue:[ |
|
767 |
box initialText:(caselessWithoutPrefixSubstringMatchingNames first). |
|
768 |
]. |
|
769 |
box action:[:aString | className := aString]. |
|
770 |
||
771 |
browseButton := Button label:(resources string:'Browse All'). |
|
772 |
browseButton action:[ |
|
773 |
|classes title| |
|
774 |
||
9065
efb483eb10a8
changed: #askForClassNameMatching:inEnvironment:for:
Claus Gittinger <cg@exept.de>
parents:
9010
diff
changeset
|
775 |
title := resources string:'Classes Matching or Similar to "%1"' with:matchStringArg. |
8702 | 776 |
classes := classNames collect:[:nm | Smalltalk classNamed:nm]. |
777 |
aBrowserOrNil isNil ifTrue:[ |
|
778 |
SystemBrowser |
|
779 |
browseClasses:classes |
|
780 |
label:title. |
|
781 |
] ifFalse:[ |
|
782 |
aBrowserOrNil |
|
783 |
spawnClassBrowserFor:classes |
|
784 |
label:title |
|
785 |
in:#newBrowser |
|
786 |
select:false. |
|
787 |
]. |
|
13365 | 788 |
box hide. |
789 |
box closeRequest |
|
8702 | 790 |
]. |
791 |
box addButton:browseButton before:box okButton. |
|
14502 | 792 |
|
793 |
aMatchString isLowercaseFirst ifTrue:[ |
|
794 |
|browseImplementorsButton| |
|
795 |
||
796 |
browseImplementorsButton := Button label:(resources string:'Implementors'). |
|
797 |
browseImplementorsButton |
|
798 |
action:[ |
|
799 |
aBrowserOrNil isNil ifTrue:[ |
|
800 |
SystemBrowser browseImplementorsMatching:aMatchString |
|
801 |
] ifFalse:[ |
|
802 |
aBrowserOrNil |
|
803 |
spawnMethodImplementorsBrowserFor:{ aMatchString } match:true in:#newBrowser. |
|
804 |
]. |
|
805 |
box hide. |
|
806 |
box closeRequest |
|
807 |
]. |
|
808 |
box addButton:browseImplementorsButton before:box okButton. |
|
809 |
]. |
|
810 |
||
9157
c8166dbf5a5a
changed: #askForClassNameMatching:inEnvironment:for:
Claus Gittinger <cg@exept.de>
parents:
9065
diff
changeset
|
811 |
box minExtent:300@250. |
8702 | 812 |
|
813 |
box open. |
|
814 |
(box accepted not or:[className isNil]) ifTrue:[ "/ cancel |
|
815 |
^ nil |
|
816 |
] |
|
817 |
]. |
|
818 |
]. |
|
819 |
||
820 |
className notNil ifTrue:[ |
|
821 |
"/ use slashed javaName for search. |
|
14653 | 822 |
className := className copyReplaceAll:$. with:$/ ifNone:className. |
8702 | 823 |
]. |
824 |
||
825 |
"/ pref notNil ifTrue:[ |
|
826 |
"/ ^ pref , '::' , className |
|
827 |
"/ ]. |
|
828 |
^ className |
|
829 |
||
830 |
"Modified: / 16-10-2006 / 11:36:20 / cg" |
|
831 |
! |
|
832 |
||
833 |
listBoxTitle:title okText:okText list:aList |
|
834 |
"convenient method: setup a listBox & return it" |
|
835 |
||
836 |
|box resources| |
|
837 |
||
838 |
resources := self classResources. |
|
839 |
||
840 |
box := ListSelectionBox |
|
841 |
title:(resources string:title) |
|
842 |
okText:(resources string:okText) |
|
843 |
action:nil. |
|
844 |
box list:aList. |
|
845 |
^ box |
|
13365 | 846 |
|
847 |
" |
|
848 |
(self listBoxTitle:'hello world' okText:'aaa' list:#(1 2 3 4)) open |
|
849 |
" |
|
8702 | 850 |
! ! |
851 |
||
2692 | 852 |
!SystemBrowser class methodsFor:'image specs'! |
853 |
||
2748 | 854 |
abstractMethodIcon |
855 |
<resource: #programImage> |
|
856 |
||
857 |
^ self padLockGrayMiniIcon |
|
858 |
! |
|
859 |
||
3813 | 860 |
addBreakPointIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
861 |
<resource: #image> |
3813 | 862 |
"This resource specification was automatically generated |
863 |
by the ImageEditor of ST/X." |
|
864 |
"Do not manually edit this!! If it is corrupted, |
|
865 |
the ImageEditor may not be able to read the specification." |
|
866 |
" |
|
867 |
self addBreakPointIcon inspect |
|
868 |
ImageEditor openOnClass:self andSelector:#addBreakPointIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
869 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
870 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
871 |
^ Icon constantNamed:'SystemBrowser class addBreakPointIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
872 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
873 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
874 |
width:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
875 |
height:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
876 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
877 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
878 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
879 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
880 |
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
|
881 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
882 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
883 |
width:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
884 |
height:16; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
885 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
886 |
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
|
887 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
888 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
889 |
] |
3813 | 890 |
! |
891 |
||
892 |
addBreakPointIcon2 |
|
6115 | 893 |
^ XPToolbarIconLibrary addBreakPointIcon2 |
3813 | 894 |
! |
895 |
||
4341 | 896 |
autoloadedClassIcon |
7827 | 897 |
<resource: #programImage> |
898 |
||
899 |
^ ToolbarIconLibrary autoloadedClassBrowserIcon |
|
900 |
||
901 |
"Modified: / 20-07-2007 / 09:15:37 / cg" |
|
4341 | 902 |
! |
903 |
||
12040 | 904 |
breakPointedIcon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
905 |
<resource: #obsolete> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
906 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
907 |
^ self lineBreakPointedIcon |
12504 | 908 |
"/ ^ self breakPointedIcon2 |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
909 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
910 |
"Modified: / 05-03-2014 / 10:26:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12504 | 911 |
! |
912 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
913 |
canvasIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
914 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
915 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
916 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
917 |
"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
|
918 |
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
|
919 |
" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
920 |
ImageEditor openOnClass:self andSelector:#canvasIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
921 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
922 |
^ Icon constantNamed:'SystemBrowser class canvasIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
923 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
924 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
925 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
926 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
927 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
928 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
929 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
930 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
931 |
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
|
932 |
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
|
933 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
934 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
935 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
936 |
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
|
937 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
938 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
939 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
940 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
941 |
|
4143 | 942 |
containerClassIcon |
7827 | 943 |
<resource: #programImage> |
944 |
||
945 |
^ ToolbarIconLibrary containerClassBrowserIcon |
|
946 |
||
947 |
"Modified: / 20-07-2007 / 09:14:54 / cg" |
|
4143 | 948 |
! |
949 |
||
2692 | 950 |
defaultIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
951 |
<resource: #image> |
2692 | 952 |
"This resource specification was automatically generated |
953 |
by the ImageEditor of ST/X." |
|
954 |
"Do not manually edit this!! If it is corrupted, |
|
955 |
the ImageEditor may not be able to read the specification." |
|
956 |
" |
|
957 |
self defaultIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
958 |
ImageEditor openOnClass:self andSelector:#defaultIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
959 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
960 |
^ Icon constantNamed:'SystemBrowser class defaultIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
961 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
962 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
963 |
width:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
964 |
height:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
965 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
966 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
967 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
968 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
969 |
fromPackedString:' |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
970 |
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@ |
3794 | 971 |
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H" |
972 |
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
|
973 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
974 |
@@@@@@@@@@@@@@@@@@@@@@@@H@@@@@@@@@H@@ @@@@Hb'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
975 |
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
|
976 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
977 |
width:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
978 |
height:28; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
979 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
980 |
fromPackedString:' |
3794 | 981 |
??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
|
982 |
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
983 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
984 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
985 |
] |
2846 | 986 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
987 |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
988 |
deprecatedMethodIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
989 |
^ self doNotEnterIcon |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
990 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
991 |
|
16893 | 992 |
disabledBreakpointIcon |
993 |
<resource: #programImage> |
|
994 |
||
995 |
^ ToolbarIconLibrary breakpointDisabled9x9 |
|
996 |
! |
|
997 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
998 |
doNotEnterIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
999 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1000 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1001 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1002 |
"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
|
1003 |
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
|
1004 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1005 |
self doNotEnterIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1006 |
ImageEditor openOnClass:self andSelector:#doNotEnterIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1007 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1008 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1009 |
^ Icon constantNamed:'SystemBrowser class doNotEnterIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1010 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1011 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1012 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1013 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1014 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1015 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1016 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1017 |
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
|
1018 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1019 |
mask:((ImageMask 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 |
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
|
1023 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1024 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1025 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1026 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1027 |
|
3354 | 1028 |
emptyIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1029 |
<resource: #image> |
3354 | 1030 |
"This resource specification was automatically generated |
1031 |
by the ImageEditor of ST/X." |
|
1032 |
"Do not manually edit this!! If it is corrupted, |
|
1033 |
the ImageEditor may not be able to read the specification." |
|
1034 |
" |
|
1035 |
self emptyIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1036 |
ImageEditor openOnClass:self andSelector:#emptyIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1037 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1038 |
^ Icon constantNamed:'SystemBrowser class emptyIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1039 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1040 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1041 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1042 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1043 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1044 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1045 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1046 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1047 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1048 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1049 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1050 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1051 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1052 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1053 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1054 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1055 |
] |
3354 | 1056 |
|
1057 |
"Created: / 5.11.2001 / 09:39:54 / cg" |
|
1058 |
! |
|
1059 |
||
4143 | 1060 |
errorClassIcon |
7827 | 1061 |
<resource: #programImage> |
1062 |
||
1063 |
^ ToolbarIconLibrary errorClassBrowserIcon |
|
1064 |
||
1065 |
"Modified: / 20-07-2007 / 09:14:06 / cg" |
|
4143 | 1066 |
! |
1067 |
||
1068 |
exceptionClassIcon |
|
1069 |
"This resource specification was automatically generated |
|
1070 |
by the ImageEditor of ST/X." |
|
1071 |
||
1072 |
"Do not manually edit this!! If it is corrupted, |
|
1073 |
the ImageEditor may not be able to read the specification." |
|
1074 |
||
1075 |
" |
|
1076 |
self exceptionClassIcon inspect |
|
1077 |
ImageEditor openOnClass:self andSelector:#exceptionClassIcon |
|
1078 |
Icon flushCachedIcons |
|
1079 |
" |
|
1080 |
||
7827 | 1081 |
<resource: #programImage> |
1082 |
||
1083 |
^ ToolbarIconLibrary exceptionClassBrowserIcon |
|
1084 |
||
1085 |
"Modified: / 20-07-2007 / 09:13:18 / cg" |
|
4143 | 1086 |
! |
1087 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1088 |
fileImageIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1089 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1090 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1091 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1092 |
"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
|
1093 |
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
|
1094 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1095 |
self fileImageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1096 |
ImageEditor openOnClass:self andSelector:#fileImageIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1097 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1098 |
^ Icon constantNamed:'SystemBrowser class fileImageIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1099 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1100 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1101 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1102 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1103 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1104 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1105 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1106 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1107 |
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
|
1108 |
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
|
1109 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1110 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1111 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1112 |
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
|
1113 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1114 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1115 |
] |
2846 | 1116 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1117 |
|
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1118 |
fullBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1119 |
<resource: #programImage> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1120 |
|
15305 | 1121 |
^ ToolbarIconLibrary fullBreakPoint9x9Icon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1122 |
"/ ^ self fullBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1123 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1124 |
"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
|
1125 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1126 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1127 |
fullBreakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1128 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1129 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1130 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1131 |
"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
|
1132 |
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
|
1133 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1134 |
self stopIcon1 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1135 |
ImageEditor openOnClass:self andSelector:#stopIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1136 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1137 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1138 |
^ Icon constantNamed:'SystemBrowser stopIcon1' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1139 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1140 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1141 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1142 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1143 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1144 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1145 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1146 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1147 |
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
|
1148 |
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
|
1149 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1150 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1151 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1152 |
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
|
1153 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1154 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1155 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1156 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1157 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1158 |
fullBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1159 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1160 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1161 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1162 |
"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
|
1163 |
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
|
1164 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1165 |
self stopIcon2 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1166 |
ImageEditor openOnClass:self andSelector:#stopIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1167 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1168 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1169 |
^ Icon constantNamed:'SystemBrowser stopIcon2' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1170 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1171 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1172 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1173 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1174 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1175 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1176 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1177 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1178 |
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
|
1179 |
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
|
1180 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1181 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1182 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1183 |
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
|
1184 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1185 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1186 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1187 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1188 |
|
4166 | 1189 |
greenCheckIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1190 |
<resource: #image> |
4166 | 1191 |
"This resource specification was automatically generated |
1192 |
by the ImageEditor of ST/X." |
|
1193 |
"Do not manually edit this!! If it is corrupted, |
|
1194 |
the ImageEditor may not be able to read the specification." |
|
1195 |
" |
|
1196 |
self greenCheckIcon inspect |
|
1197 |
ImageEditor openOnClass:self andSelector:#greenCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1198 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1199 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1200 |
^ Icon constantNamed:'SystemBrowser class greenCheckIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1201 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1202 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1203 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1204 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1205 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1206 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1207 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1208 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1209 |
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
|
1210 |
colorMapFromArray:#[ 0 0 0 255 255 255 0 127 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1211 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1212 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1213 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1214 |
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
|
1215 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1216 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1217 |
] |
4166 | 1218 |
! |
1219 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1220 |
greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1221 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1222 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1223 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1224 |
"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
|
1225 |
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
|
1226 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1227 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1228 |
self greenLockIcon inspect |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1229 |
ImageEditor openOnClass:self andSelector:#greenLockIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1230 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1231 |
|
3354 | 1232 |
<resource: #programImage> |
1233 |
||
2892 | 1234 |
^ self padLockGreenMiniIcon |
3354 | 1235 |
|
1236 |
"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
|
1237 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1238 |
|
4165 | 1239 |
greenThumbUpIcon |
10327 | 1240 |
^ ToolbarIconLibrary greenThumbUpIcon |
1241 |
||
1242 |
"Modified: / 17-07-2011 / 10:03:34 / cg" |
|
4165 | 1243 |
! |
1244 |
||
4166 | 1245 |
greenThumbUpSmallIcon |
10327 | 1246 |
^ ToolbarIconLibrary greenThumbUpSmallIcon |
1247 |
||
1248 |
"Modified: / 17-07-2011 / 10:03:43 / cg" |
|
4166 | 1249 |
! |
1250 |
||
1251 |
greyCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1252 |
<resource: #image> |
4166 | 1253 |
"This resource specification was automatically generated |
1254 |
by the ImageEditor of ST/X." |
|
1255 |
"Do not manually edit this!! If it is corrupted, |
|
1256 |
the ImageEditor may not be able to read the specification." |
|
1257 |
" |
|
1258 |
self greyCheckIcon inspect |
|
1259 |
ImageEditor openOnClass:self andSelector:#greyCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1260 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1261 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1262 |
^ Icon constantNamed:'SystemBrowser class greyCheckIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1263 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1264 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1265 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1266 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1267 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1268 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1269 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1270 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1271 |
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
|
1272 |
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
|
1273 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1274 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1275 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1276 |
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
|
1277 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1278 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1279 |
] |
4166 | 1280 |
! |
1281 |
||
4165 | 1282 |
greyThumbUpIcon |
10327 | 1283 |
^ ToolbarIconLibrary greyThumbUpIcon |
1284 |
||
1285 |
"Modified: / 17-07-2011 / 10:04:06 / cg" |
|
4165 | 1286 |
! |
1287 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1288 |
helpIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1289 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1290 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1291 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1292 |
"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
|
1293 |
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
|
1294 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1295 |
self helpIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1296 |
ImageEditor openOnClass:self andSelector:#helpIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1297 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1298 |
^ Icon constantNamed:'SystemBrowser class helpIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1299 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1300 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1301 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1302 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1303 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1304 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1305 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1306 |
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
|
1307 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1308 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1309 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1310 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1311 |
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
|
1312 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1313 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1314 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1315 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1316 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1317 |
hierarchicalListIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1318 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1319 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1320 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1321 |
"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
|
1322 |
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
|
1323 |
" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1324 |
ImageEditor openOnClass:self andSelector:#hierarchicalListIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1325 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1326 |
^ Icon constantNamed:'SystemBrowser class hierarchicalListIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1327 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1328 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1329 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1330 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1331 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1332 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1333 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1334 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1335 |
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
|
1336 |
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
|
1337 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1338 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1339 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1340 |
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
|
1341 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1342 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1343 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1344 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1345 |
|
5997 | 1346 |
ignoredMethodIcon |
1347 |
<resource: #programImage> |
|
1348 |
||
1349 |
^ self padLockBlackMiniIcon |
|
1350 |
! |
|
1351 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1352 |
imageIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1353 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1354 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1355 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1356 |
"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
|
1357 |
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
|
1358 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1359 |
self imageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1360 |
ImageEditor openOnClass:self andSelector:#imageIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1361 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1362 |
^ Icon constantNamed:'SystemBrowser class imageIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1363 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1364 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1365 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1366 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1367 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1368 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1369 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1370 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1371 |
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
|
1372 |
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
|
1373 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1374 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1375 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1376 |
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
|
1377 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1378 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1379 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1380 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1381 |
|
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1382 |
instVarOverlayXmlSpec |
14390
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1383 |
<resource: #image> |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1384 |
"This resource specification was automatically generated |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1385 |
by the ImageEditor of ST/X." |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1386 |
"Do not manually edit this!! If it is corrupted, |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1387 |
the ImageEditor may not be able to read the specification." |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1388 |
" |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1389 |
self instVarOverlayXmlSpec inspect |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1390 |
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
|
1391 |
Icon flushCachedIcons" |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1392 |
|
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1393 |
^ 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
|
1394 |
ifAbsentPut:[ |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1395 |
(Depth2Image new) |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1396 |
width:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1397 |
height:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1398 |
photometric:(#palette); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1399 |
bitsPerSample:(#[ 2 ]); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1400 |
samplesPerPixel:(1); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1401 |
bits:(ByteArray |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1402 |
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
|
1403 |
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
|
1404 |
mask:((ImageMask new) |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1405 |
width:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1406 |
height:16; |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1407 |
bits:(ByteArray |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1408 |
fromPackedString:' |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1409 |
@@@@@@@@@@@@@@@@BA@XFC@L[>[O8<=#[7X0CA XBA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1410 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
14390
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1411 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1412 |
yourself); |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1413 |
yourself |
05d5e002f60d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
14355
diff
changeset
|
1414 |
] |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1415 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
1416 |
|
7992 | 1417 |
instrumentationIcon |
1418 |
<resource: #programImage> |
|
1419 |
||
1420 |
^ ToolbarIconLibrary pipette16x16Icon |
|
1421 |
! |
|
1422 |
||
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1423 |
lineBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1424 |
<resource: #programImage> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1425 |
|
15305 | 1426 |
^ ToolbarIconLibrary lineBreakPoint9x9Icon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1427 |
"/ ^ self lineBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1428 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1429 |
"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
|
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 |
lineBreakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1433 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1434 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1435 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1436 |
"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
|
1437 |
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
|
1438 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1439 |
self breakPointedIcon1 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1440 |
ImageEditor openOnClass:self andSelector:#breakPointedIcon1 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1441 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1442 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1443 |
^ Icon constantNamed:'SystemBrowser breakPointedIcon1' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1444 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1445 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1446 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1447 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1448 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1449 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1450 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1451 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1452 |
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
|
1453 |
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
|
1454 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1455 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1456 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1457 |
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
|
1458 |
yourself); |
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 |
] |
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 |
lineBreakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1464 |
<resource: #image> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1465 |
"This resource specification was automatically generated |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1466 |
by the ImageEditor of ST/X." |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1467 |
"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
|
1468 |
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
|
1469 |
" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1470 |
self breakPointedIcon2 inspect |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1471 |
ImageEditor openOnClass:self andSelector:#breakPointedIcon2 |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1472 |
Icon flushCachedIcons" |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1473 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1474 |
^ Icon constantNamed:'SystemBrowser breakPointedIcon2' |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1475 |
ifAbsentPut:[ |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1476 |
(Depth4Image new) |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1477 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1478 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1479 |
photometric:(#palette); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1480 |
bitsPerSample:(#[ 4 ]); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1481 |
samplesPerPixel:(1); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1482 |
bits:(ByteArray |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1483 |
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
|
1484 |
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
|
1485 |
mask:((ImageMask new) |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1486 |
width:13; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1487 |
height:11; |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1488 |
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
|
1489 |
yourself); |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1490 |
yourself |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1491 |
] |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1492 |
! |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
1493 |
|
16027 | 1494 |
lineTracePointedIcon |
1495 |
<resource: #programImage> |
|
1496 |
||
1497 |
^ ToolbarIconLibrary lineTracePoint9x9Icon |
|
1498 |
! |
|
1499 |
||
3675 | 1500 |
medium_methodEmptyInheritedIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1501 |
<resource: #image> |
3675 | 1502 |
"This resource specification was automatically generated |
1503 |
by the ImageEditor of ST/X." |
|
1504 |
"Do not manually edit this!! If it is corrupted, |
|
1505 |
the ImageEditor may not be able to read the specification." |
|
1506 |
" |
|
1507 |
self medium_methodEmptyInheritedIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1508 |
ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1509 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1510 |
^ Icon |
7968 | 1511 |
constantNamed:'SystemBrowser class medium_methodEmptyInheritedIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1512 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1513 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1514 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1515 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1516 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1517 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1518 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1519 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1520 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1521 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1522 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1523 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1524 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1525 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1526 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1527 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1528 |
] |
3675 | 1529 |
! |
1530 |
||
1531 |
medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1532 |
<resource: #image> |
3675 | 1533 |
"This resource specification was automatically generated |
1534 |
by the ImageEditor of ST/X." |
|
1535 |
"Do not manually edit this!! If it is corrupted, |
|
1536 |
the ImageEditor may not be able to read the specification." |
|
1537 |
" |
|
1538 |
self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
1539 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1540 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1541 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1542 |
^ Icon |
7968 | 1543 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1544 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1545 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1546 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1547 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1548 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1549 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1550 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1551 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1552 |
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
|
1553 |
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
|
1554 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1555 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1556 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1557 |
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
|
1558 |
yourself); |
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 |
] |
3675 | 1561 |
! |
1562 |
||
1563 |
medium_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1564 |
<resource: #image> |
3675 | 1565 |
"This resource specification was automatically generated |
1566 |
by the ImageEditor of ST/X." |
|
1567 |
"Do not manually edit this!! If it is corrupted, |
|
1568 |
the ImageEditor may not be able to read the specification." |
|
1569 |
" |
|
1570 |
self medium_methodInheritedFromAboveIcon inspect |
|
1571 |
ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1572 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1573 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1574 |
^ Icon |
7968 | 1575 |
constantNamed:'SystemBrowser class medium_methodInheritedFromAboveIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1576 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1577 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1578 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1579 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1580 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1581 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1582 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1583 |
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
|
1584 |
colorMapFromArray:#[ 0 0 0 255 255 127 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1585 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1586 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1587 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1588 |
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
|
1589 |
yourself); |
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 |
] |
3675 | 1592 |
! |
1593 |
||
1594 |
medium_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1595 |
<resource: #image> |
3675 | 1596 |
"This resource specification was automatically generated |
1597 |
by the ImageEditor of ST/X." |
|
1598 |
"Do not manually edit this!! If it is corrupted, |
|
1599 |
the ImageEditor may not be able to read the specification." |
|
1600 |
" |
|
1601 |
self medium_methodRedefinedBelowIcon inspect |
|
1602 |
ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1603 |
Icon flushCachedIcons" |
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 |
7968 | 1606 |
constantNamed:'SystemBrowser class medium_methodRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1607 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1608 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1609 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1610 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1611 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1612 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1613 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1614 |
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
|
1615 |
colorMapFromArray:#[ 0 0 0 255 127 127 ]; |
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:9; |
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 @>@C8@G@@\@A0@B@@H@@ @@@@@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 |
] |
3675 | 1623 |
! |
1624 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1625 |
menuIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1626 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1627 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1628 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1629 |
"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
|
1630 |
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
|
1631 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1632 |
self menuIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1633 |
ImageEditor openOnClass:self andSelector:#menuIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1634 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1635 |
^ Icon constantNamed:'SystemBrowser class menuIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1636 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1637 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1638 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1639 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1640 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1641 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1642 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1643 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1644 |
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
|
1645 |
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
|
1646 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1647 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1648 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1649 |
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
|
1650 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1651 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1652 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1653 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1654 |
|
3675 | 1655 |
methodEmptyInheritedIcon |
1656 |
^ self small_methodEmptyInheritedIcon |
|
1657 |
! |
|
1658 |
||
1659 |
methodInheritedFromAboveAndRedefinedBelowIcon |
|
1660 |
^ self small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
1661 |
! |
|
1662 |
||
1663 |
methodInheritedFromAboveIcon |
|
1664 |
^ self small_methodInheritedFromAboveIcon |
|
1665 |
! |
|
1666 |
||
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1667 |
methodIsSubclassResponsibilityAndRedefinedBelowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1668 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1669 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1670 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1671 |
"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
|
1672 |
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
|
1673 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1674 |
self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1675 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1676 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1677 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1678 |
^ Icon |
7968 | 1679 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1680 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1681 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1682 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1683 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1684 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1685 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1686 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1687 |
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
|
1688 |
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
|
1689 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1690 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1691 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1692 |
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
|
1693 |
yourself); |
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 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1696 |
! |
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 |
methodIsSubclassResponsibilityIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1699 |
<resource: #image> |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1700 |
"This resource specification was automatically generated |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1701 |
by the ImageEditor of ST/X." |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1702 |
"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
|
1703 |
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
|
1704 |
" |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1705 |
self methodIsSubclassResponsibilityIcon inspect |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1706 |
ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1707 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1708 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1709 |
^ Icon |
7968 | 1710 |
constantNamed:'SystemBrowser class methodIsSubclassResponsibilityIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1711 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1712 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1713 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1714 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1715 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1716 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1717 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1718 |
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
|
1719 |
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
|
1720 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1721 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1722 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1723 |
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
|
1724 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1725 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1726 |
] |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1727 |
! |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5546
diff
changeset
|
1728 |
|
3675 | 1729 |
methodRedefinedBelowIcon |
1730 |
^ self small_methodRedefinedBelowIcon |
|
1731 |
! |
|
1732 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1733 |
nameSpaceIcon |
7827 | 1734 |
<resource: #programImage> |
1735 |
||
1736 |
^ ToolbarIconLibrary nameSpaceBrowserIcon |
|
1737 |
||
1738 |
"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
|
1739 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1740 |
|
4308 | 1741 |
notificationClassIcon |
7827 | 1742 |
<resource: #programImage> |
1743 |
||
1744 |
^ ToolbarIconLibrary notificationClassBrowserIcon |
|
1745 |
||
1746 |
"Modified: / 20-07-2007 / 09:11:21 / cg" |
|
4308 | 1747 |
! |
1748 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1749 |
packageIcon |
8853 | 1750 |
<resource: #programImage> |
1751 |
||
1752 |
^ ToolbarIconLibrary smallYellowPackageIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1753 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1754 |
|
6954 | 1755 |
packageIconGraySmall |
8853 | 1756 |
<resource: #programImage> |
1757 |
||
1758 |
^ ToolbarIconLibrary smallGrayPackageIcon |
|
6954 | 1759 |
! |
1760 |
||
6925 | 1761 |
packageIconGreenSmall |
8853 | 1762 |
<resource: #programImage> |
1763 |
||
1764 |
^ ToolbarIconLibrary smallGreenPackageIcon |
|
6925 | 1765 |
! |
1766 |
||
1767 |
packageIconOrangeSmall |
|
8853 | 1768 |
<resource: #programImage> |
1769 |
||
1770 |
^ ToolbarIconLibrary smallOrangePackageIcon |
|
6925 | 1771 |
! |
1772 |
||
6901 | 1773 |
packageIconSmall |
8853 | 1774 |
<resource: #programImage> |
1775 |
||
1776 |
^ ToolbarIconLibrary smallYellowPackageIcon |
|
6901 | 1777 |
! |
1778 |
||
5997 | 1779 |
padLockBlackMiniIcon |
6333 | 1780 |
<resource: #programImage> |
1781 |
||
1782 |
^ XPToolbarIconLibrary padLockBlackMiniIcon |
|
5997 | 1783 |
! |
1784 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1785 |
padLockBlueMiniIcon |
6333 | 1786 |
<resource: #programImage> |
1787 |
||
1788 |
^ XPToolbarIconLibrary padLockBlueMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1789 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1790 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1791 |
padLockGrayMiniIcon |
6333 | 1792 |
<resource: #programImage> |
1793 |
||
1794 |
^ GenericToolbarIconLibrary padLockGrayMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1795 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1796 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1797 |
padLockGreenMiniIcon |
6333 | 1798 |
<resource: #programImage> |
1799 |
||
1800 |
^ GenericToolbarIconLibrary padLockGreenMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1801 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1802 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1803 |
padLockRedMiniIcon |
6333 | 1804 |
<resource: #programImage> |
1805 |
||
1806 |
^ GenericToolbarIconLibrary padLockRedMiniIcon |
|
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1807 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1808 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1809 |
privateMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1810 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1811 |
|
2748 | 1812 |
^ self padLockRedMiniIcon |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1813 |
! |
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 |
programImageIcon |
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 programImageIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1823 |
ImageEditor openOnClass:self andSelector:#programImageIcon" |
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 programImageIcon' |
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 |
(Depth4Image 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:(#( 4 )); |
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 |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1834 |
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
|
1835 |
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
|
1836 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1837 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1838 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1839 |
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
|
1840 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1841 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1842 |
] |
2846 | 1843 |
! |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1844 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1845 |
programMenuIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1846 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1847 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1848 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1849 |
"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
|
1850 |
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
|
1851 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1852 |
self programMenuIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1853 |
ImageEditor openOnClass:self andSelector:#programMenuIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1854 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1855 |
^ Icon constantNamed:#'SystemBrowser class programMenuIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1856 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1857 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1858 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1859 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1860 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1861 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1862 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1863 |
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
|
1864 |
colorMapFromArray:#[ 0 0 0 170 170 170 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1865 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1866 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1867 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1868 |
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
|
1869 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1870 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1871 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1872 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1873 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1874 |
protectedMethodIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1875 |
<resource: #programImage> |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1876 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1877 |
^ self padLockGreenMiniIcon |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1878 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1879 |
|
4308 | 1880 |
queryClassIcon |
7827 | 1881 |
<resource: #programImage> |
1882 |
||
1883 |
^ ToolbarIconLibrary queryClassBrowserIcon |
|
1884 |
||
1885 |
"Modified: / 20-07-2007 / 09:10:32 / cg" |
|
4308 | 1886 |
! |
1887 |
||
4166 | 1888 |
redCheckIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1889 |
<resource: #image> |
4166 | 1890 |
"This resource specification was automatically generated |
1891 |
by the ImageEditor of ST/X." |
|
1892 |
"Do not manually edit this!! If it is corrupted, |
|
1893 |
the ImageEditor may not be able to read the specification." |
|
1894 |
" |
|
1895 |
self redCheckIcon inspect |
|
1896 |
ImageEditor openOnClass:self andSelector:#redCheckIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1897 |
Icon flushCachedIcons" |
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 redCheckIcon' |
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 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1902 |
width:13; |
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:(#( 4 )); |
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:'@@@@@@@@@@@@@@@@@@@@@@@@@"@@@@@@@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
|
1909 |
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
|
1910 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1911 |
width:13; |
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:'@@@@@@A @L@!! GL@O0@^@@8@A@@@@@@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 |
] |
4166 | 1917 |
! |
1918 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1919 |
redLockIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1920 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1921 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1922 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1923 |
"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
|
1924 |
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
|
1925 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1926 |
self redLockIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1927 |
ImageEditor openOnClass:self andSelector:#redLockIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1928 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1929 |
^ Icon constantNamed:#'SystemBrowser class redLockIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1930 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1931 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1932 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1933 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1934 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1935 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1936 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1937 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1938 |
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
|
1939 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1940 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1941 |
width:9; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1942 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1943 |
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
|
1944 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1945 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1946 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1947 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
1948 |
|
4165 | 1949 |
redThumbDownIcon |
10327 | 1950 |
^ ToolbarIconLibrary redThumbDownIcon |
1951 |
||
1952 |
"Modified: / 17-07-2011 / 10:04:37 / cg" |
|
4165 | 1953 |
! |
1954 |
||
4166 | 1955 |
redThumbDownSmallIcon |
10327 | 1956 |
^ ToolbarIconLibrary redThumbDownSmallIcon |
1957 |
||
1958 |
"Modified: / 17-07-2011 / 10:05:09 / cg" |
|
4166 | 1959 |
! |
1960 |
||
3813 | 1961 |
removeBreakPointIcon2 |
15362 | 1962 |
UserPreferences current useColorsForColorBlindness ifTrue:[ |
1963 |
^ ToolbarIconLibrary removeBreakPointBlueIcon2 |
|
1964 |
]. |
|
1965 |
^ ToolbarIconLibrary removeBreakPointIcon2 |
|
3813 | 1966 |
! |
1967 |
||
3675 | 1968 |
small_methodEmptyInheritedIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1969 |
<resource: #image> |
3675 | 1970 |
"This resource specification was automatically generated |
1971 |
by the ImageEditor of ST/X." |
|
1972 |
"Do not manually edit this!! If it is corrupted, |
|
1973 |
the ImageEditor may not be able to read the specification." |
|
1974 |
" |
|
1975 |
self small_methodEmptyInheritedIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1976 |
ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1977 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1978 |
^ Icon |
3675 | 1979 |
constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1980 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1981 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1982 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1983 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1984 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1985 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1986 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1987 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1988 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1989 |
colorMapFromArray:#[ 0 0 0 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1990 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1991 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1992 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1993 |
bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
1994 |
yourself); |
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 |
] |
3675 | 1997 |
! |
1998 |
||
1999 |
small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2000 |
<resource: #image> |
3675 | 2001 |
"This resource specification was automatically generated |
2002 |
by the ImageEditor of ST/X." |
|
2003 |
"Do not manually edit this!! If it is corrupted, |
|
2004 |
the ImageEditor may not be able to read the specification." |
|
2005 |
" |
|
2006 |
self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect |
|
2007 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2008 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2009 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2010 |
^ Icon |
3675 | 2011 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2012 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2013 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2014 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2015 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2016 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2017 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2018 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2019 |
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
|
2020 |
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
|
2021 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2022 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2023 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2024 |
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
|
2025 |
yourself); |
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 |
] |
3675 | 2028 |
! |
2029 |
||
2030 |
small_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2031 |
<resource: #image> |
3675 | 2032 |
"This resource specification was automatically generated |
2033 |
by the ImageEditor of ST/X." |
|
2034 |
"Do not manually edit this!! If it is corrupted, |
|
2035 |
the ImageEditor may not be able to read the specification." |
|
2036 |
" |
|
2037 |
self small_methodInheritedFromAboveIcon inspect |
|
2038 |
ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2039 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2040 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2041 |
^ Icon |
3675 | 2042 |
constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2043 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2044 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2045 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2046 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2047 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2048 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2049 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2050 |
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
|
2051 |
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
|
2052 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2053 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2054 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2055 |
bits:(ByteArray fromPackedString:'\GC8>O @@@@@@@@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2056 |
yourself); |
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 |
] |
3675 | 2059 |
! |
2060 |
||
2061 |
small_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2062 |
<resource: #image> |
3675 | 2063 |
"This resource specification was automatically generated |
2064 |
by the ImageEditor of ST/X." |
|
2065 |
"Do not manually edit this!! If it is corrupted, |
|
2066 |
the ImageEditor may not be able to read the specification." |
|
2067 |
" |
|
2068 |
self small_methodRedefinedBelowIcon inspect |
|
2069 |
ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2070 |
Icon flushCachedIcons" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2071 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2072 |
^ Icon |
3675 | 2073 |
constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon' |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2074 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2075 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2076 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2077 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2078 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2079 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2080 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2081 |
bits:(ByteArray fromPackedString:'@@D@@@@@@@@@@@@@@@4UBHR@A@@"@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2082 |
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
|
2083 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2084 |
width:5; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2085 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2086 |
bits:(ByteArray fromPackedString:'@@@@@@@@>O#8\G@b'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2087 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2088 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2089 |
] |
3675 | 2090 |
! |
2091 |
||
3354 | 2092 |
startableClassIcon |
7827 | 2093 |
<resource: #programImage> |
2094 |
||
2095 |
^ ToolbarIconLibrary startableClassBrowserIcon |
|
2096 |
||
2097 |
"Created: / 05-11-2001 / 09:50:16 / cg" |
|
2098 |
"Modified: / 20-07-2007 / 09:09:40 / cg" |
|
3354 | 2099 |
! |
2100 |
||
2101 |
startableVisualAppIcon |
|
7827 | 2102 |
<resource: #programImage> |
2103 |
||
2104 |
^ ToolbarIconLibrary visualStartableClassBrowserIcon |
|
2105 |
||
2106 |
"Created: / 05-11-2001 / 09:49:00 / cg" |
|
2107 |
"Modified: / 20-07-2007 / 09:08:34 / cg" |
|
3354 | 2108 |
! |
2109 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2110 |
stopIcon |
14106
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2111 |
<resource: #obsolete> |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2112 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2113 |
^ self fullBreakPointedIcon |
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2114 |
|
c042bb7e4cee
Added icons fullBreakPointedIcon and lineBreakPointedIcon.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14103
diff
changeset
|
2115 |
"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
|
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 |
tabListIcon |
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 tabListIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2126 |
ImageEditor openOnClass:self andSelector:#tabListIcon" |
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 tabListIcon' |
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:'@@@@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
|
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:'?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
|
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 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2148 |
tableColumnsIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2149 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2150 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2151 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2152 |
"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
|
2153 |
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
|
2154 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2155 |
self tableColumnsIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2156 |
ImageEditor openOnClass:self andSelector:#tableColumnsIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2157 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2158 |
^ Icon constantNamed:#'SystemBrowser class tableColumnsIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2159 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2160 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2161 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2162 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2163 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2164 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2165 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2166 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2167 |
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
|
2168 |
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
|
2169 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2170 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2171 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2172 |
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
|
2173 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2174 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2175 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2176 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2177 |
|
4150 | 2178 |
testCaseClassIcon |
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2179 |
<resource: #programImage> |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2180 |
|
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2181 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2182 |
^ ToolbarIconLibrary testCaseClassIcon |
4150 | 2183 |
! |
2184 |
||
2185 |
testCaseClassIconFor:cls |
|
4167 | 2186 |
<resource: #programImage> |
2187 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2188 |
"/ decision moved to TestCase - see there. |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2189 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2190 |
|
4150 | 2191 |
|lastResult| |
2192 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2193 |
lastResult := cls lastTestRunResultOrNil. |
12729 | 2194 |
lastResult notNil ifTrue:[ |
2195 |
lastResult == TestResult statePass ifTrue:[ |
|
2196 |
^ self testCasePassedIcon |
|
2197 |
]. |
|
2198 |
lastResult == TestResult stateFail ifTrue:[ |
|
2199 |
^ self testCaseFailedIcon |
|
2200 |
]. |
|
2201 |
lastResult == TestResult stateError ifTrue:[ |
|
2202 |
^ self testCaseErrorIcon |
|
2203 |
]. |
|
4150 | 2204 |
]. |
2205 |
^ self testCaseUnknownResultIcon |
|
6848 | 2206 |
|
2207 |
"Modified: / 06-08-2006 / 11:14:12 / cg" |
|
4150 | 2208 |
! |
2209 |
||
12729 | 2210 |
testCaseErrorIcon |
2211 |
<resource: #programImage> |
|
2212 |
||
2213 |
"/ only left here for backward compatibility... |
|
2214 |
^ ToolbarIconLibrary testCaseErrorIcon |
|
2215 |
! |
|
2216 |
||
4150 | 2217 |
testCaseFailedIcon |
4166 | 2218 |
<resource: #programImage> |
2219 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2220 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2221 |
^ ToolbarIconLibrary testCaseFailedIcon |
4150 | 2222 |
! |
2223 |
||
2224 |
testCasePassedIcon |
|
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2225 |
<resource: #programImage> |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2226 |
|
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2227 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2228 |
^ ToolbarIconLibrary testCasePassedIcon |
4150 | 2229 |
! |
2230 |
||
12631 | 2231 |
testCaseSkippedIcon |
2232 |
<resource: #programImage> |
|
2233 |
||
2234 |
"/ only left here for backward compatibility... |
|
2235 |
^ ToolbarIconLibrary testCaseSkippedIcon |
|
2236 |
! |
|
2237 |
||
4150 | 2238 |
testCaseUnknownResultIcon |
4166 | 2239 |
<resource: #programImage> |
2240 |
||
8862
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2241 |
"/ only left here for backward compatibility... |
dece7957557d
comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents:
8853
diff
changeset
|
2242 |
^ ToolbarIconLibrary testCaseClassIcon |
4150 | 2243 |
! |
2244 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2245 |
timeIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2246 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2247 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2248 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2249 |
"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
|
2250 |
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
|
2251 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2252 |
self timeIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2253 |
ImageEditor openOnClass:self andSelector:#timeIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2254 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2255 |
^ Icon constantNamed:#'SystemBrowser class timeIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2256 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2257 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2258 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2259 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2260 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2261 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2262 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2263 |
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
|
2264 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2265 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2266 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2267 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2268 |
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
|
2269 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2270 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2271 |
] |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2272 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2273 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2274 |
traceIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2275 |
<resource: #image> |
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2276 |
"This resource specification was automatically generated |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2277 |
by the ImageEditor of ST/X." |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2278 |
"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
|
2279 |
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
|
2280 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
2281 |
self traceIcon inspect |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2282 |
ImageEditor openOnClass:self andSelector:#traceIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2283 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2284 |
^ Icon constantNamed:#'SystemBrowser class traceIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2285 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2286 |
(Depth1Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2287 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2288 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2289 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2290 |
bitsPerSample:(#( 1 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2291 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2292 |
bits:(ByteArray fromPackedString:'@@@@@@>@C8@G@@\@@ @B@@@@@@@@@@@a'); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2293 |
colorMapFromArray:#[ 255 0 0 255 255 255 ]; |
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:'_?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
|
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 |
] |
2830 | 2301 |
! |
2302 |
||
2303 |
visualStartableClassIcon |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2304 |
<resource: #image> |
2830 | 2305 |
"This resource specification was automatically generated |
2306 |
by the ImageEditor of ST/X." |
|
2307 |
"Do not manually edit this!! If it is corrupted, |
|
2308 |
the ImageEditor may not be able to read the specification." |
|
2309 |
" |
|
2310 |
self visualStartableClassIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2311 |
ImageEditor openOnClass:self andSelector:#visualStartableClassIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2312 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2313 |
^ Icon constantNamed:#'SystemBrowser class visualStartableClassIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2314 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2315 |
(Depth2Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2316 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2317 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2318 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2319 |
bitsPerSample:(#( 2 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2320 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2321 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2322 |
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
|
2323 |
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
|
2324 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2325 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2326 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2327 |
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
|
2328 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2329 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2330 |
] |
3354 | 2331 |
|
2332 |
"Modified: / 5.11.2001 / 09:49:30 / cg" |
|
2892 | 2333 |
! |
2334 |
||
4275 | 2335 |
warningClassIcon |
7827 | 2336 |
<resource: #programImage> |
2337 |
||
2338 |
^ ToolbarIconLibrary warningClassBrowserIcon |
|
2339 |
||
2340 |
"Modified: / 20-07-2007 / 09:04:39 / cg" |
|
4275 | 2341 |
! |
2342 |
||
2892 | 2343 |
watchIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2344 |
<resource: #image> |
2892 | 2345 |
"This resource specification was automatically generated |
2346 |
by the ImageEditor of ST/X." |
|
2347 |
"Do not manually edit this!! If it is corrupted, |
|
2348 |
the ImageEditor may not be able to read the specification." |
|
2349 |
" |
|
2350 |
self watchIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2351 |
ImageEditor openOnClass:self andSelector:#watchIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2352 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2353 |
^ Icon constantNamed:#'SystemBrowser class watchIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2354 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2355 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2356 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2357 |
height:12; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2358 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2359 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2360 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2361 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2362 |
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
|
2363 |
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
|
2364 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2365 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2366 |
height:12; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2367 |
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
|
2368 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2369 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2370 |
] |
3354 | 2371 |
! |
2372 |
||
4143 | 2373 |
windowClassIcon |
7827 | 2374 |
<resource: #programImage> |
2375 |
||
2376 |
^ ToolbarIconLibrary windowClassBrowserIcon |
|
2377 |
||
2378 |
"Modified: / 20-07-2007 / 09:05:57 / cg" |
|
4143 | 2379 |
! |
2380 |
||
3354 | 2381 |
windowIcon |
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2382 |
<resource: #image> |
3354 | 2383 |
"This resource specification was automatically generated |
2384 |
by the ImageEditor of ST/X." |
|
2385 |
"Do not manually edit this!! If it is corrupted, |
|
2386 |
the ImageEditor may not be able to read the specification." |
|
2387 |
" |
|
2388 |
self windowIcon inspect |
|
14413
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2389 |
ImageEditor openOnClass:self andSelector:#windowIcon" |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2390 |
|
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2391 |
^ Icon constantNamed:#'SystemBrowser class windowIcon' |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2392 |
ifAbsentPut:[ |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2393 |
(Depth4Image new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2394 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2395 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2396 |
photometric:(#palette); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2397 |
bitsPerSample:(#( 4 )); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2398 |
samplesPerPixel:(1); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2399 |
bits:(ByteArray |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2400 |
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
|
2401 |
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
|
2402 |
mask:((ImageMask new) |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2403 |
width:13; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2404 |
height:11; |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2405 |
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
|
2406 |
yourself); |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2407 |
yourself |
cdd8eaf8a5e3
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14390
diff
changeset
|
2408 |
] |
3354 | 2409 |
|
2410 |
"Created: / 5.11.2001 / 09:39:03 / cg" |
|
2846 | 2411 |
! ! |
2692 | 2412 |
|
1203 | 2413 |
!SystemBrowser class methodsFor:'interface specs'! |
2414 |
||
1367 | 2415 |
metaSpec |
2416 |
"UIPainter new openOnClass: self andSelector: #metaSpec" |
|
2417 |
||
2418 |
<resource: #canvas> |
|
2419 |
^#(#FullSpec |
|
2420 |
#window: |
|
2421 |
#(#WindowSpec |
|
2422 |
#label: 'Unlabeled Canvas' |
|
2423 |
#bounds: #(#Rectangle 27 249 325 334 ) ) |
|
2424 |
#component: |
|
2425 |
#(#SpecCollection |
|
2426 |
#collection: #( |
|
2427 |
#(#RadioButtonSpec |
|
2428 |
#layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) |
|
2429 |
#name: #instanceSwitch |
|
2430 |
#model: #metaHolder |
|
2431 |
#callbacksSpec: |
|
2432 |
#(#UIEventCallbackSubSpec |
|
2433 |
#requestValueChangeSelector: #changeRequest ) |
|
2434 |
#label: 'instance' |
|
2435 |
#select: false ) |
|
2436 |
#(#RadioButtonSpec |
|
2437 |
#layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) |
|
2438 |
#name: #classSwitch |
|
2439 |
#model: #metaHolder |
|
2440 |
#callbacksSpec: |
|
2441 |
#(#UIEventCallbackSubSpec |
|
2442 |
#requestValueChangeSelector: #changeRequest ) |
|
2443 |
#label: 'class' |
|
2444 |
#select: true ) ) ) ) |
|
2445 |
||
2446 |
"Created: / 30.10.1997 / 19:07:29 / cg" |
|
2447 |
! |
|
2448 |
||
1203 | 2449 |
methodMoveDialogSpec |
16847 | 2450 |
"This resource specification was automatically generated |
2451 |
by the UIPainter of ST/X." |
|
2452 |
||
2453 |
"Do not manually edit this!! If it is corrupted, |
|
2454 |
the UIPainter may not be able to read the specification." |
|
1203 | 2455 |
|
2456 |
" |
|
2457 |
UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec |
|
16847 | 2458 |
SystemBrowser new openInterface:#methodMoveDialogSpec |
1203 | 2459 |
" |
2460 |
||
2461 |
<resource: #canvas> |
|
2462 |
||
16847 | 2463 |
^ |
2464 |
#(FullSpec |
|
2465 |
name: methodMoveDialogSpec |
|
2466 |
window: |
|
2467 |
(WindowSpec |
|
2468 |
label: 'move method' |
|
2469 |
name: 'move method' |
|
2470 |
bounds: (Rectangle 0 0 387 118) |
|
2471 |
) |
|
2472 |
component: |
|
2473 |
(SpecCollection |
|
2474 |
collection: ( |
|
2475 |
(HorizontalPanelViewSpec |
|
2476 |
name: 'horizontalPanelView' |
|
2477 |
layout: (LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0) |
|
2478 |
level: 0 |
|
2479 |
horizontalLayout: fitSpace |
|
2480 |
verticalLayout: center |
|
2481 |
horizontalSpace: 4 |
|
2482 |
verticalSpace: 4 |
|
2483 |
component: |
|
2484 |
(SpecCollection |
|
2485 |
collection: ( |
|
2486 |
(ActionButtonSpec |
|
2487 |
label: 'cancel' |
|
2488 |
name: 'actionButton2' |
|
2489 |
translateLabel: true |
|
2490 |
tabable: true |
|
2491 |
model: cancel |
|
2492 |
extent: (Point 187 27) |
|
2493 |
) |
|
2494 |
(ActionButtonSpec |
|
2495 |
label: 'move' |
|
2496 |
name: 'actionButton1' |
|
2497 |
translateLabel: true |
|
2498 |
tabable: true |
|
2499 |
model: accept |
|
2500 |
isDefault: true |
|
2501 |
extent: (Point 188 27) |
|
2502 |
) |
|
2503 |
) |
|
2504 |
||
2505 |
) |
|
2506 |
) |
|
2507 |
(LabelSpec |
|
2508 |
label: 'move current method to which class:' |
|
2509 |
name: 'label' |
|
2510 |
layout: (LayoutFrame 2 0 2 0 -2 1.0 25 0) |
|
2511 |
style: largeLabelFont |
|
2512 |
foregroundColor: (Color 0.0 0.0 0.0) |
|
2513 |
backgroundColor: (Color 67.0 67.0 67.0) |
|
2514 |
translateLabel: true |
|
2515 |
adjust: left |
|
2516 |
) |
|
2517 |
(ComboBoxSpec |
|
2518 |
name: 'comboBox1' |
|
2519 |
layout: (LayoutFrame 2 0 29 0 -2 1.0 51 0) |
|
2520 |
tabable: true |
|
2521 |
model: className |
|
2522 |
comboList: classList |
|
2523 |
) |
|
1203 | 2524 |
) |
16847 | 2525 |
|
2526 |
) |
|
2527 |
) |
|
1203 | 2528 |
! ! |
2529 |
||
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2530 |
!SystemBrowser class methodsFor:'private'! |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2531 |
|
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2532 |
flushDefaultStyleSheet |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2533 |
EmphasisForChangedCode := EmphasisForDifferentPackage := |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2534 |
EmphasisForModifiedBuffer := EmphasisForObsoleteCode := |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2535 |
EmphasisForReadVariable := EmphasisForWrittenVariable := nil. |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2536 |
|
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2537 |
super flushDefaultStyleSheet |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2538 |
" |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2539 |
ApplicationModel flushDefaultStyleSheet |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2540 |
Tools::NewSystemBrowser initializeDefaultStyleSheet |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2541 |
|
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2542 |
" |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2543 |
|
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2544 |
"Created: / 15-09-2021 / 13:36:10 / Jan Vrany <jan.vrany@labware.com>" |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2545 |
! ! |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
2546 |
|
4860 | 2547 |
!SystemBrowser class methodsFor:'private-helpers'! |
36 | 2548 |
|
2880
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2549 |
askForPackageChangeFrom:oldPkg to:newPkg |
3626 | 2550 |
|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
|
2551 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2552 |
box := OptionBox |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2553 |
title: |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2554 |
('You are about to change a method from another (system-) package. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2555 |
The methods original packageID was ''%1''. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2556 |
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
|
2557 |
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
|
2558 |
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
|
2559 |
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
|
2560 |
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
|
2561 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2562 |
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
|
2563 |
bindWith:(oldPkg allBold) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2564 |
with:(newPkg allBold)) |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2565 |
numberOfOptions:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2566 |
|
3476 | 2567 |
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
|
2568 |
box defaultButtonIndex:3. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2569 |
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
|
2570 |
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
|
2571 |
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
|
2572 |
box addVerticalSpace:10. |
17043 | 2573 |
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
|
2574 |
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
|
2575 |
box resize. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2576 |
box showAtPointer. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2577 |
box destroy. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2578 |
|
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2579 |
(answer ~~ #cancel) ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2580 |
notAgain value ifTrue:[ |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2581 |
Class catchMethodRedefinitions:false. |
ef6fcc02a924
give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents:
2846
diff
changeset
|
2582 |
]. |
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. |
11291
d4d27edd6ab4
changed: #askForPackageChangeFrom:to:
Claus Gittinger <cg@exept.de>
parents:
11271
diff
changeset
|
2585 |
|
d4d27edd6ab4
changed: #askForPackageChangeFrom:to:
Claus Gittinger <cg@exept.de>
parents:
11271
diff
changeset
|
2586 |
"Modified: / 28-02-2012 / 10:41:52 / cg" |
2880
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 |
|
203 | 2589 |
showNoneFound |
3244 | 2590 |
self warn:(self classResources string:'None found.'). |
203 | 2591 |
! |
36 | 2592 |
|
203 | 2593 |
showNoneFound:what |
1620 | 2594 |
|rs| |
2595 |
||
2596 |
rs := self classResources. |
|
3244 | 2597 |
self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs. |
203 | 2598 |
! ! |
36 | 2599 |
|
4860 | 2600 |
!SystemBrowser class methodsFor:'private-instance creation'! |
203 | 2601 |
|
2602 |
newWithLabel:aString setupBlock:aBlock |
|
2603 |
"common helper method for all creation methods" |
|
2604 |
||
2605 |
^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current |
|
36 | 2606 |
! |
2607 |
||
203 | 2608 |
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation |
2609 |
"common helper method for all creation methods" |
|
36 | 2610 |
|
203 | 2611 |
|newBrowser| |
45 | 2612 |
|
203 | 2613 |
newBrowser := BrowserView onDevice:aWorkstation. |
2614 |
newBrowser title:aString. |
|
2615 |
aBlock value:newBrowser. |
|
45 | 2616 |
|
203 | 2617 |
newBrowser open. |
2618 |
^ newBrowser |
|
2619 |
! |
|
45 | 2620 |
|
203 | 2621 |
newWithLabel:aString setupSelector:aSymbol arg:arg |
2622 |
"common helper method for all creation methods" |
|
36 | 2623 |
|
203 | 2624 |
^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current |
36 | 2625 |
! |
2626 |
||
203 | 2627 |
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation |
2628 |
"common helper method for all creation methods" |
|
2629 |
||
2630 |
|newBrowser| |
|
52 | 2631 |
|
203 | 2632 |
newBrowser := BrowserView onDevice:aWorkstation. |
2633 |
newBrowser title:aString. |
|
2634 |
newBrowser perform:aSymbol with:arg. |
|
2635 |
newBrowser open. |
|
2636 |
^ newBrowser |
|
2637 |
! ! |
|
2638 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
2639 |
!SystemBrowser class methodsFor:'special search startup'! |
203 | 2640 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2641 |
allCallsOn:aSelectorString |
16449 | 2642 |
"return a collection of methods which send aSelector. |
2643 |
This takes some time, because source code is parsed to see |
|
2644 |
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
|
2645 |
|
9007 | 2646 |
^ self |
2647 |
allCallsOn:aSelectorString |
|
2648 |
in:(Smalltalk allClasses) |
|
2649 |
ignoreCase:false |
|
2650 |
match:false |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2651 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2652 |
" |
16449 | 2653 |
Time millisecondsToRun:[ |
2654 |
SystemBrowser allCallsOn:#at:put: |
|
2655 |
]. |
|
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 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2658 |
"Created: 24.1.1997 / 19:42:57 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2659 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2660 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2661 |
allCallsOn:aSelectorString in:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2662 |
"return a collection of methods which send aSelector. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2663 |
Methods from classes in aCollectionOfClasses are searched only." |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2664 |
|
9007 | 2665 |
^ self |
2666 |
allCallsOn:aSelectorString |
|
2667 |
in:aCollectionOfClasses |
|
2668 |
ignoreCase:false |
|
2669 |
match:false |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2670 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2671 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2672 |
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
|
2673 |
"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
|
2674 |
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
|
2675 |
|
9007 | 2676 |
^ self |
2677 |
allCallsOn:aSelectorString |
|
2678 |
in:aCollectionOfClasses |
|
2679 |
ignoreCase:ignoreCase |
|
2680 |
match:true |
|
4270 | 2681 |
|
2682 |
" |
|
2683 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
|
2684 |
" |
|
2685 |
||
2686 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
|
2687 |
! |
|
2688 |
||
16395 | 2689 |
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatchArg |
4270 | 2690 |
"return a collection of methods which send aSelector. |
2691 |
Methods from classes in aCollectionOfClasses are searched only." |
|
2692 |
||
16395 | 2693 |
|doMatch sel searchBlock classesSearched| |
2694 |
||
2695 |
doMatch := doMatchArg. |
|
2696 |
(doMatch and:[aSelectorString includesMatchCharacters not]) ifTrue:[ |
|
2697 |
doMatch := false. |
|
2698 |
]. |
|
2699 |
||
3471
4c4b41516d96
care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents:
3470
diff
changeset
|
2700 |
aSelectorString size == 0 ifTrue:[ ^ #() ]. |
16395 | 2701 |
(doMatch or:[ignoreCase]) ifFalse:[ |
2702 |
"/ no need to search, if there is no such symbol in the system |
|
2703 |
sel := aSelectorString asSymbolIfInterned. |
|
2704 |
sel isNil ifTrue:[ ^ #() ]. "/ none (no such selector) |
|
4270 | 2705 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2706 |
|
2901 | 2707 |
classesSearched := aCollectionOfClasses. |
16395 | 2708 |
doMatch ifFalse:[ |
2709 |
"/ exclude all javaClasses, if the selector cannot be a valid java-selector |
|
4270 | 2710 |
(aSelectorString includes:$() ifFalse:[ |
12831 | 2711 |
classesSearched := classesSearched reject:[:eachClass | eachClass theNonMetaclass isJavaClass ]. |
2846 | 2712 |
]. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2713 |
]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
2714 |
|
4270 | 2715 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
4332 | 2716 |
searchBlock isNil ifTrue:[ |
2717 |
^ #() "/ none (no such selector) |
|
2718 |
]. |
|
2901 | 2719 |
^ self allMethodsIn:classesSearched where:searchBlock |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2720 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2721 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2722 |
SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2723 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2724 |
|
1143
0707461e582a
avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2725 |
"Modified: 18.4.1997 / 10:32:50 / cg" |
996
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 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2728 |
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2729 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2730 |
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
|
2731 |
considered. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2732 |
Only classes in aCollectionOfClasses are inspected in the search" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2733 |
|
2769 | 2734 |
|list activePriority| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2735 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2736 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2737 |
since this may take a long time, lower my priority ... |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2738 |
" |
2769 | 2739 |
activePriority := Processor activePriority. |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
2740 |
Processor activeProcess |
2769 | 2741 |
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
|
2742 |
do:[ |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2743 |
|checkedClasses checkBlock detectedMethods| |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2744 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2745 |
checkedClasses := IdentitySet new. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2746 |
list := OrderedCollection new. |
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2747 |
detectedMethods := IdentitySet new. |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2748 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2749 |
checkBlock := [:cls | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2750 |
(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
|
2751 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
2882 | 2752 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2753 |
] ifFalse:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2754 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2755 |
(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
|
2756 |
"/ 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
|
2757 |
(detectedMethods includes:method) ifFalse:[ |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2758 |
list add:method. |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2759 |
detectedMethods add:method |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2760 |
] |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2761 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2762 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2763 |
checkedClasses add:cls. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2764 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2765 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2766 |
]. |
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 |
aCollectionOfClasses do:[:aClass | |
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 |
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
|
2771 |
implementors or senders) |
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 |
wantInst ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2774 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2775 |
checkBlock value:aClass |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2776 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2777 |
wantClass ifTrue:[ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2778 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2779 |
checkBlock value:(aClass class) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2780 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2781 |
Processor yield |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2782 |
] |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2783 |
]. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2784 |
^ list |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2785 |
|
2484
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2786 |
"Created: / 24.1.1997 / 19:41:12 / cg" |
afd8d8dbd9e2
care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents:
2439
diff
changeset
|
2787 |
"Modified: / 14.12.1999 / 14:59:02 / cg" |
996
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 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2790 |
allMethodsIn:aCollectionOfClasses where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2791 |
"return a collection of methods which pass the given test. |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2792 |
Only classes in aCollectionOfClasses are inspected in the search" |
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 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2795 |
allMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2796 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2797 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2798 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2799 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2800 |
"Created: 24.1.1997 / 19:41:49 / cg" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2801 |
! |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2802 |
|
203 | 2803 |
aproposSearch:aString |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2804 |
"browse all methods, which have aString in their selector." |
203 | 2805 |
|
2806 |
^ self aproposSearch:aString in:(Smalltalk allClasses) |
|
75 | 2807 |
|
52 | 2808 |
! |
2809 |
||
203 | 2810 |
aproposSearch:aString in:aCollectionOfClasses |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2811 |
"browse all methods, which have aString. |
203 | 2812 |
This is relatively slow, since all source must be processed." |
52 | 2813 |
|
203 | 2814 |
|matchString list s searchBlock browser| |
52 | 2815 |
|
203 | 2816 |
matchString := '*' , aString , '*'. |
52 | 2817 |
|
203 | 2818 |
list := OrderedCollection new. |
52 | 2819 |
|
203 | 2820 |
(aString includesMatchCharacters) ifTrue:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2821 |
s := '*' , aString asLowercase , '*'. |
256 | 2822 |
"a matchString" |
2823 |
searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0]. |
|
203 | 2824 |
] ifFalse:[ |
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2825 |
searchBlock := [:source | (source findString:aString asLowercase) ~~ 0] |
203 | 2826 |
]. |
52 | 2827 |
|
203 | 2828 |
browser := self browseMethodsIn:aCollectionOfClasses |
256 | 2829 |
where:[:class :method :sel | |
2830 |
|comment| |
|
52 | 2831 |
|
2655
9e90bbd1eb18
apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents:
2642
diff
changeset
|
2832 |
(searchBlock value:sel asLowercase) |
256 | 2833 |
] |
2729
9af04074a4bb
no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents:
2728
diff
changeset
|
2834 |
title:(self classResources string:'selectors containing: %1' with:aString). |
52 | 2835 |
|
203 | 2836 |
browser notNil ifTrue:[ |
256 | 2837 |
browser autoSearch:aString |
203 | 2838 |
]. |
2839 |
^ browser |
|
52 | 2840 |
|
2841 |
" |
|
203 | 2842 |
SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses) |
2843 |
SystemBrowser aproposSearch:'add' in:(Collection withAllSubclasses) |
|
2844 |
SystemBrowser aproposSearch:'sort' in:(Collection withAllSubclasses) |
|
2845 |
SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses) |
|
52 | 2846 |
" |
203 | 2847 |
|
256 | 2848 |
"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
|
2849 |
! |
6f4460d5a09d
added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents:
203
diff
changeset
|
2850 |
|
203 | 2851 |
browseAllCallsOn:aSelectorString |
4490 | 2852 |
"launch a browser for all senders of aSelector. |
2853 |
Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences" |
|
52 | 2854 |
|
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2855 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2856 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2857 |
in:(Smalltalk allClasses) |
52 | 2858 |
|
2859 |
" |
|
203 | 2860 |
SystemBrowser browseAllCallsOn:#+ |
52 | 2861 |
" |
256 | 2862 |
|
2863 |
"Created: 9.12.1995 / 18:00:41 / cg" |
|
666 | 2864 |
"Modified: 10.7.1996 / 10:26:15 / cg" |
2865 |
! |
|
2866 |
||
2867 |
browseAllCallsOn:aSelectorString in:aSetOfClasses |
|
2868 |
"launch a browser for all senders of aSelector" |
|
2869 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2870 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2871 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2872 |
in:aSetOfClasses |
4200 | 2873 |
title:(self classResources string:'Senders of: %1' with:aSelectorString) |
666 | 2874 |
|
2875 |
" |
|
2876 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
|
2877 |
" |
|
2878 |
||
2879 |
"Created: 10.7.1996 / 10:25:49 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2880 |
"Modified: 24.1.1997 / 19:49:34 / cg" |
52 | 2881 |
! |
2882 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2883 |
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
|
2884 |
"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
|
2885 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2886 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2887 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2888 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2889 |
ignoreCase:ignoreCase |
6476 | 2890 |
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
|
2891 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2892 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2893 |
SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2894 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2895 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2896 |
"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
|
2897 |
"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
|
2898 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2899 |
|
11271 | 2900 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:match title:titleArg |
52 | 2901 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
2902 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2903 |
|list list2 browser selWithColon title rs| |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2904 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2905 |
title := titleArg. |
4200 | 2906 |
|
4270 | 2907 |
list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true. |
4200 | 2908 |
list isEmpty ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2909 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2910 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2911 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2912 |
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
|
2913 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2914 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2915 |
list2 size == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2916 |
self showNoneFound:title. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2917 |
^ nil |
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 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2920 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2921 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2922 |
(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
|
2923 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2924 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2925 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2926 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2927 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
2928 |
title := title , ':'. |
4200 | 2929 |
]. |
2930 |
||
2931 |
browser := self browseMethods:list title:title. |
|
52 | 2932 |
browser notNil ifTrue:[ |
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2933 |
|s| |
52 | 2934 |
|
8139
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2935 |
"/ " |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2936 |
"/ kludge for now, if its a multipart selector, |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2937 |
"/ 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
|
2938 |
"/ " |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2939 |
"/ s := aSelectorString. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2940 |
"/ (s includes:$:) ifTrue:[ |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2941 |
"/ s := s copyTo:(s indexOf:$:) |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2942 |
"/ ]. |
acdaec7c63a0
auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents:
8129
diff
changeset
|
2943 |
"/ browser autoSearch:s |
16471 | 2944 |
browser setSearchSelector:aSelectorString ignoreCase:ignoreCase doMatch:true. |
52 | 2945 |
]. |
2946 |
^ browser |
|
648
6ec086b7972c
Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents:
634
diff
changeset
|
2947 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2948 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2949 |
SystemBrowser |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2950 |
browseAllCallsOn:#+ |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2951 |
in:(Number withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
2952 |
title:'just a test' |
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 |
|
11271 | 2955 |
"Modified: / 24-01-1997 / 19:48:54 / cg" |
2956 |
"Created: / 14-02-2012 / 14:19:51 / cg" |
|
2957 |
! |
|
2958 |
||
2959 |
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
2960 |
"launch a browser for all senders of aSelector in aCollectionOfClasses" |
|
2961 |
||
2962 |
^ self |
|
2963 |
browseAllCallsOn:aSelectorString |
|
2964 |
in:aCollectionOfClasses |
|
2965 |
ignoreCase:ignoreCase |
|
2966 |
match:true |
|
2967 |
title:titleArg |
|
2968 |
||
2969 |
" |
|
2970 |
SystemBrowser |
|
2971 |
browseAllCallsOn:#+ |
|
2972 |
in:(Number withAllSubclasses) |
|
2973 |
title:'just a test' |
|
2974 |
" |
|
2975 |
||
2976 |
"Modified: / 14-02-2012 / 14:20:17 / cg" |
|
52 | 2977 |
! |
2978 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2979 |
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
|
2980 |
"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
|
2981 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2982 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2983 |
browseAllCallsOn:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2984 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2985 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2986 |
title:title |
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 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2989 |
SystemBrowser |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2990 |
browseAllCallsOn:#+ |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2991 |
in:(Number withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2992 |
title:'just a test' |
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 |
"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
|
2996 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
2997 |
|
203 | 2998 |
browseCallsOn:aSelectorString under:aClass |
2999 |
"launch a browser for all senders of aSelector in aClass and subclasses" |
|
3000 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3001 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3002 |
browseAllCallsOn:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3003 |
in:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3004 |
title:(self classResources |
6476 | 3005 |
string:'Senders of: %1 (in and below %2)' |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3006 |
with:aSelectorString |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3007 |
with:aClass name) |
203 | 3008 |
|
3009 |
" |
|
256 | 3010 |
SystemBrowser browseCallsOn:#+ under:Number |
203 | 3011 |
" |
256 | 3012 |
|
3013 |
"Created: 9.12.1995 / 17:59:57 / cg" |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
3014 |
"Modified: 24.1.1997 / 19:50:33 / cg" |
203 | 3015 |
! |
3016 |
||
3017 |
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3018 |
"launch a browser for all methods in aClass where the classVar named |
|
3019 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3020 |
classvar is modified" |
|
3021 |
||
3022 |
^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
3023 |
! |
|
3024 |
||
3025 |
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3026 |
"launch a browser for all methods in aCollectionOfClasses, |
|
3027 |
where the classVar named aString is referenced; |
|
3028 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3029 |
||
3030 |
^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
3031 |
! |
|
3032 |
||
3033 |
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
|
3034 |
"launch a browser for all methods in aClass and subclasses |
|
3035 |
where the classVar named aString is referenced; |
|
3036 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
3037 |
||
3038 |
^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
3039 |
||
3040 |
! |
|
3041 |
||
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3042 |
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
|
3043 |
"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
|
3044 |
resource in aCollectionOfClasses. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3045 |
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
|
3046 |
are parsed. |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3047 |
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
|
3048 |
browseForResource:#style containing:nil in:... title:... |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3049 |
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
|
3050 |
browseForResource:#style containing:'arrowButtonDownForm' in:... title:..." |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3051 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
3052 |
|browser searchBlock| |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3053 |
|
1356 | 3054 |
"/ search for any resource can be done without looking |
3055 |
"/ at the source ... |
|
3056 |
(aResourceSymbol isNil and:[item isNil]) ifTrue:[ |
|
3057 |
searchBlock := [:class :method :s | method hasResource] |
|
3058 |
] ifFalse:[ |
|
3059 |
searchBlock := [:class :method :s | |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3060 |
|rsrc val found| |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3061 |
|
1356 | 3062 |
found := false. |
3063 |
method hasResource ifTrue:[ |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3064 |
rsrc := method resources. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3065 |
rsrc notNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3066 |
aResourceSymbol isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3067 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3068 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3069 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3070 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3071 |
rsrc keysAndValuesDo:[:rsrc :val | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3072 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3073 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3074 |
found := item match:v printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3075 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3076 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3077 |
found := item match:val printString |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3078 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3079 |
] |
1356 | 3080 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3081 |
found := item match:rsrc printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3082 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3083 |
] |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3084 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3085 |
(rsrc includesKey:aResourceSymbol) ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3086 |
item isNil ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3087 |
found := true |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3088 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3089 |
rsrc isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3090 |
val := rsrc at:aResourceSymbol. |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3091 |
val isCollection ifTrue:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3092 |
val do:[:v | |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3093 |
found := item match:v printString |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3094 |
] |
1356 | 3095 |
] ifFalse:[ |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3096 |
found := item match:val printString |
1356 | 3097 |
] |
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3098 |
] ifFalse:[ |
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3099 |
found := item match:rsrc printString |
1356 | 3100 |
] |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3101 |
] |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3102 |
] |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3103 |
] |
1356 | 3104 |
]. |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3105 |
]. |
1356 | 3106 |
found |
3107 |
]. |
|
3108 |
]. |
|
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3109 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3110 |
browser := self browseMethodsIn:aCollectionOfClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3111 |
where:searchBlock |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3112 |
title:title. |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3113 |
browser notNil ifTrue:[ |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3114 |
browser autoSearch:'resource:' |
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 |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3117 |
|
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3118 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3119 |
SystemBrowser |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3120 |
browseForResource:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3121 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3122 |
title:'methods with a resource' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3123 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3124 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3125 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3126 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3127 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3128 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3129 |
title:'methods with a #style resource' |
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 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3132 |
SystemBrowser |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3133 |
browseForResource:#style |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3134 |
containing:'arrowButton*' |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3135 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3136 |
title:'methods with a #style resource' |
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 |
|
1573
4b6ce12dff2b
dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents:
1561
diff
changeset
|
3139 |
"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
|
3140 |
! |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3141 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3142 |
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3143 |
"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
|
3144 |
resource in aCollectionOfClasses" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3145 |
|
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3146 |
^ self |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3147 |
browseForResource:aResourceSymbol |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3148 |
containing:nil |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3149 |
in:aCollectionOfClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3150 |
title:title |
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 |
" |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3153 |
SystemBrowser |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3154 |
browseForResource:#style |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3155 |
in:Smalltalk allClasses |
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3156 |
title:'methods accessing styleSheet values' |
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 |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3160 |
browseForResource:#keyboard |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3161 |
in:Smalltalk allClasses |
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3162 |
title:'methods handling keyboard events' |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3163 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3164 |
" |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3165 |
SystemBrowser |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3166 |
browseForResource:nil |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3167 |
in:Smalltalk allClasses |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3168 |
title:'methods with a resource' |
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 |
|
929
a2275f1b4c94
enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents:
825
diff
changeset
|
3171 |
"Modified: 9.1.1997 / 12:44:38 / cg" |
573
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3172 |
! |
e32bd3e46a72
added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents:
553
diff
changeset
|
3173 |
|
203 | 3174 |
browseForString:aString |
16471 | 3175 |
<resource: #obsolete> |
203 | 3176 |
"launch a browser for all methods containing a string in their source. |
3177 |
This may be slow, since source-code has to be scanned." |
|
3178 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3179 |
^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3180 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3181 |
"Modified: / 18.6.1998 / 16:42:39 / cg" |
203 | 3182 |
! |
3183 |
||
3184 |
browseForString:aString in:aCollectionOfClasses |
|
16471 | 3185 |
<resource: #obsolete> |
203 | 3186 |
"launch a browser for all methods in aCollectionOfClasses |
3187 |
containing a string in their source. |
|
3188 |
This may be slow, since source-code has to be scanned." |
|
3189 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3190 |
^ self |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3191 |
browseForString:aString |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3192 |
in:aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3193 |
ignoreCase:false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3194 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3195 |
" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3196 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3197 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3198 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3199 |
" |
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 |
"Created: / 9.12.1995 / 18:03:12 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3202 |
"Modified: / 18.6.1998 / 16:43:27 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3203 |
! |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3204 |
|
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3205 |
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
16471 | 3206 |
<resource: #obsolete> |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3207 |
"launch a browser for all methods in aCollectionOfClasses |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3208 |
containing a string in their source. |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3209 |
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
|
3210 |
|
203 | 3211 |
|browser searchBlock title s| |
3212 |
||
6476 | 3213 |
title := self classResources string:'Methods containing: %1' with:aString displayString. |
203 | 3214 |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3215 |
(aString includesMatchCharacters |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3216 |
or:[ignoreCase]) ifTrue:[ |
256 | 3217 |
s := '*' , aString , '*'. |
3218 |
"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
|
3219 |
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
|
3220 |
|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
|
3221 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3222 |
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
|
3223 |
('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
|
3224 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3225 |
] ifFalse:[ |
13438 | 3226 |
s match:src caseSensitive:ignoreCase not |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3227 |
] |
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
|
3228 |
] |
203 | 3229 |
] 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
|
3230 |
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
|
3231 |
|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
|
3232 |
|
b14b3ab39af6
dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents:
436
diff
changeset
|
3233 |
src := m source. |
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3234 |
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
|
3235 |
('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
|
3236 |
false |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3237 |
] ifFalse:[ |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3238 |
(src findString:aString) ~~ 0 |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3239 |
] |
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
|
3240 |
] |
203 | 3241 |
]. |
3242 |
browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title. |
|
3243 |
||
3244 |
browser notNil ifTrue:[ |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3245 |
browser autoSearch:aString ignoreCase:ignoreCase |
203 | 3246 |
]. |
3247 |
^ browser |
|
3248 |
||
3249 |
" |
|
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3250 |
SystemBrowser browseForString:'all' in:(Array with:Object) |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3251 |
SystemBrowser browseForString:'should' in:(Array with:Object) |
203 | 3252 |
SystemBrowser browseForString:'[eE]rror' in:(Array with:Object) |
3253 |
" |
|
3254 |
||
1703
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3255 |
"Created: / 18.6.1998 / 16:42:50 / cg" |
ea66390f879b
added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents:
1681
diff
changeset
|
3256 |
"Modified: / 18.6.1998 / 16:51:25 / cg" |
203 | 3257 |
! |
3258 |
||
3259 |
browseForSymbol:aSymbol |
|
3260 |
"launch a browser for all methods referencing aSymbol" |
|
3261 |
||
666 | 3262 |
^ self |
3263 |
browseForSymbol:aSymbol |
|
6476 | 3264 |
title:(self classResources string:'Users of: %1' with:aSymbol) |
666 | 3265 |
warnIfNone:true |
256 | 3266 |
|
3267 |
"Created: 9.12.1995 / 18:04:34 / cg" |
|
666 | 3268 |
"Modified: 10.7.1996 / 10:35:34 / cg" |
3269 |
! |
|
3270 |
||
3271 |
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn |
|
3272 |
"launch a browser for all methods referencing aSymbol" |
|
3273 |
||
7914 | 3274 |
^ self |
3275 |
browseForSymbol:aSymbol |
|
3276 |
in:aSetOfClasses |
|
3277 |
title:title |
|
3278 |
warnIfNone:doWarn |
|
3279 |
searchFor:aSymbol |
|
203 | 3280 |
! |
3281 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3282 |
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
|
3283 |
"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
|
3284 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3285 |
|browser searchBlock sym| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3286 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3287 |
(aSymbol includesMatchCharacters) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3288 |
"a matchString" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3289 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3290 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3291 |
(aLiteral isMemberOf:Symbol) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3292 |
and:[aSymbol match:aLiteral] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3293 |
] ifNone:nil) notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3294 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3295 |
] ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3296 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3297 |
can do a faster search |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3298 |
" |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3299 |
sym := aSymbol asSymbolIfInterned. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3300 |
sym isNil ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3301 |
self showNoneFound:title. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3302 |
^ nil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3303 |
]. |
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 |
searchBlock := [:c :m :s | |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3306 |
(m literalsDetect:[:aLiteral| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3307 |
(sym == aLiteral) |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3308 |
] ifNone:nil) notNil |
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 |
doWarn ifFalse:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3312 |
WarningSignal ignoreIn:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3313 |
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
|
3314 |
] |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3315 |
] ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3316 |
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
|
3317 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3318 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3319 |
(browser notNil |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3320 |
and:[searchString notNil]) ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3321 |
browser autoSearch:searchString |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3322 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3323 |
^ browser |
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 |
"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
|
3326 |
"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
|
3327 |
"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
|
3328 |
! |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3329 |
|
2409 | 3330 |
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
|
3331 |
"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
|
3332 |
|
11452 | 3333 |
|browser searchBlock| |
3334 |
||
3335 |
searchBlock := self searchBlockForSymbol:aSymbol. |
|
12866 | 3336 |
searchBlock == false ifTrue:[ |
3337 |
actionIfNoneFound value. |
|
3338 |
^ nil |
|
3339 |
]. |
|
2409 | 3340 |
|
3341 |
WarningSignal ignoreIn:[ |
|
3342 |
InformationSignal ignoreIn:[ |
|
375 | 3343 |
browser := self browseMethodsWhere:searchBlock title:title. |
3344 |
] |
|
2409 | 3345 |
]. |
3346 |
browser isNil ifTrue:[ |
|
12866 | 3347 |
actionIfNoneFound value. |
3348 |
^ 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
|
3349 |
]. |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3350 |
|
11452 | 3351 |
(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
|
3352 |
browser autoSearch:searchString |
203 | 3353 |
]. |
3354 |
^ browser |
|
375 | 3355 |
|
11452 | 3356 |
"Modified: / 24-06-1996 / 14:39:07 / stefan" |
3357 |
"Created: / 31-10-1996 / 14:45:08 / cg" |
|
3358 |
"Modified: / 22-03-2012 / 06:58:07 / cg" |
|
203 | 3359 |
! |
3360 |
||
2409 | 3361 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn |
3362 |
"launch a browser for all methods referencing aSymbol" |
|
3363 |
||
3364 |
^ self |
|
3365 |
browseForSymbol:aSymbol |
|
3366 |
title:title |
|
3367 |
warnIfNone:doWarn |
|
3368 |
searchFor:aSymbol |
|
3369 |
||
3370 |
"Modified: 31.10.1996 / 14:45:38 / cg" |
|
3371 |
! |
|
3372 |
||
3373 |
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString |
|
3374 |
"launch a browser for all methods referencing aSymbol" |
|
3375 |
||
2414 | 3376 |
|b| |
3377 |
||
3378 |
doWarn ifTrue: [ |
|
4158 | 3379 |
b := [self showNoneFound:title] |
2414 | 3380 |
]. |
2409 | 3381 |
^ self |
3382 |
browseForSymbol:aSymbol |
|
3383 |
title:title |
|
2414 | 3384 |
ifNone:b |
2409 | 3385 |
searchFor:searchString |
3386 |
! |
|
3387 |
||
4158 | 3388 |
browseImplementorsMatching:aSelectorString |
3389 |
"launch a browser for all implementors of aSelector" |
|
3390 |
||
3391 |
^ self |
|
3392 |
browseImplementorsMatching:aSelectorString |
|
3393 |
in:(Smalltalk allClasses) |
|
3394 |
||
3395 |
" |
|
3396 |
SystemBrowser browseImplementorsOf:#+ |
|
3397 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3398 |
" |
|
3399 |
||
3400 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
3401 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
3402 |
! |
|
3403 |
||
3404 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses |
|
3405 |
"launch a browser for all implementors of aSelector" |
|
3406 |
||
3407 |
^ self |
|
3408 |
browseImplementorsMatching:aSelectorString |
|
3409 |
in:aSetOfClasses |
|
3410 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
3411 |
||
3412 |
" |
|
3413 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3414 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3415 |
" |
|
3416 |
||
3417 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3418 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3419 |
! |
|
3420 |
||
3421 |
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase |
|
3422 |
"launch a browser for all implementors of aSelector" |
|
3423 |
||
3424 |
^ self |
|
3425 |
browseImplementorsMatching:aSelectorString |
|
3426 |
in:aSetOfClasses |
|
3427 |
ignoreCase:ignoreCase |
|
3428 |
title:(self classResources string:'implementors of: %1' with:aSelectorString) |
|
3429 |
||
3430 |
" |
|
3431 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3432 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3433 |
" |
|
3434 |
||
3435 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3436 |
"Modified: / 5.11.2001 / 17:30:43 / cg" |
|
3437 |
! |
|
3438 |
||
3439 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3440 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3441 |
the classes contained in aCollectionOfClasses and their metaclasses" |
4158 | 3442 |
|
3443 |
|list| |
|
3444 |
||
3445 |
list := self |
|
3446 |
findImplementorsMatching:aSelectorString |
|
3447 |
in:aCollectionOfClasses |
|
3448 |
ignoreCase:ignoreCase. |
|
3449 |
||
3450 |
list size == 0 ifTrue:[ |
|
3451 |
self showNoneFound:title. |
|
3452 |
^ nil |
|
3453 |
]. |
|
3454 |
||
3455 |
^ self browseMethods:list asOrderedCollection title:title |
|
3456 |
||
3457 |
" |
|
3458 |
SystemBrowser browseImplementorsOf:#+ |
|
3459 |
in:(Array with:Number |
|
3460 |
with:Float |
|
3461 |
with:SmallInteger) |
|
3462 |
title:'some implementors of +' |
|
3463 |
||
3464 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3465 |
in:(Array with:Number |
|
3466 |
with:Float |
|
3467 |
with:SmallInteger) |
|
3468 |
title:'some implementors of +' |
|
3469 |
" |
|
3470 |
||
3471 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3472 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3473 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3474 |
! |
|
3475 |
||
3476 |
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title |
|
3477 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3478 |
the classes contained in aCollectionOfClasses and their metaclasses" |
4158 | 3479 |
|
3480 |
^ self |
|
3481 |
browseImplementorsMatching:aSelectorString |
|
3482 |
in:aCollectionOfClasses |
|
3483 |
ignoreCase:false |
|
3484 |
title:title |
|
3485 |
! |
|
3486 |
||
3487 |
browseImplementorsMatching:aSelectorString under:aClass |
|
3488 |
"launch a browser for all implementors of aSelector in aClass |
|
3489 |
and its subclasses" |
|
3490 |
||
3491 |
^ self |
|
3492 |
browseImplementorsMatching:aSelectorString |
|
3493 |
in:(aClass withAllSubclasses) |
|
3494 |
title:(self classResources |
|
3495 |
string:'implementors of: %1 (in and below %2)' |
|
3496 |
with:aSelectorString |
|
3497 |
with:aClass name) |
|
3498 |
||
3499 |
" |
|
3500 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3501 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
|
3502 |
" |
|
3503 |
||
3504 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
|
3505 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
|
3506 |
! |
|
3507 |
||
52 | 3508 |
browseImplementorsOf:aSelectorString |
3509 |
"launch a browser for all implementors of aSelector" |
|
3510 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3511 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3512 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3513 |
in:(Smalltalk allClasses) |
52 | 3514 |
|
3515 |
" |
|
3516 |
SystemBrowser browseImplementorsOf:#+ |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3517 |
NewSystemBrowser browseImplementorsOf:#+ |
52 | 3518 |
" |
256 | 3519 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3520 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3521 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
666 | 3522 |
! |
3523 |
||
3524 |
browseImplementorsOf:aSelectorString in:aSetOfClasses |
|
3525 |
"launch a browser for all implementors of aSelector" |
|
3526 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3527 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3528 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3529 |
in:aSetOfClasses |
8704 | 3530 |
title:(self classResources string:'Implementors of: %1' with:aSelectorString allBold) |
666 | 3531 |
|
3532 |
" |
|
3533 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3534 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
666 | 3535 |
" |
3536 |
||
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3537 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3538 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
52 | 3539 |
! |
3540 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3541 |
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
|
3542 |
"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
|
3543 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3544 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3545 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3546 |
in:aSetOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3547 |
ignoreCase:ignoreCase |
6476 | 3548 |
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
|
3549 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3550 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3551 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3552 |
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
|
3553 |
" |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3554 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3555 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3556 |
"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
|
3557 |
! |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3558 |
|
11271 | 3559 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch title:titleArg |
3560 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3561 |
the classes contained in aCollectionOfClasses and their metaclasses" |
11271 | 3562 |
|
3563 |
doMatch ifTrue:[ |
|
3564 |
self browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
3565 |
] ifFalse:[ |
|
3566 |
self browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
|
3567 |
]. |
|
3568 |
||
3569 |
"Created: / 14-02-2012 / 13:55:23 / cg" |
|
3570 |
! |
|
3571 |
||
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3572 |
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg |
36 | 3573 |
"launch a browser for all implementors of aSelector in |
16586 | 3574 |
the classes contained in aCollectionOfClasses and their metaclasses" |
36 | 3575 |
|
17180 | 3576 |
|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
|
3577 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3578 |
title := titleArg. |
2642 | 3579 |
list := self |
15206 | 3580 |
findImplementors:aSelectorString |
2642 | 3581 |
in:aCollectionOfClasses |
15206 | 3582 |
ignoreCase:ignoreCase |
3583 |
match:(aSelectorString includesMatchCharacters and:[aSelectorString ~= '*']). |
|
45 | 3584 |
|
2642 | 3585 |
list size == 0 ifTrue:[ |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3586 |
aSelectorString numArgs == 0 ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3587 |
selWithColon := aSelectorString , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3588 |
selWithColon knownAsSymbol ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3589 |
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
|
3590 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3591 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3592 |
list2 size == 0 ifTrue:[ |
8678 | 3593 |
"/ self showNoneFound:title. |
3594 |
"/ ^ self |
|
17180 | 3595 |
lcSelector := aSelectorString asLowercase. |
3596 |
||
8688 | 3597 |
allSelectors := Set new. |
8678 | 3598 |
top20 := SortedCollection new. |
17180 | 3599 |
top20 |
3600 |
sortBlock:[:a :b | |
|
3601 |
|isPrefixOfA isPrefixOfB aDist bDist| |
|
3602 |
||
3603 |
isPrefixOfA := (a asLowercase startsWith:lcSelector). |
|
3604 |
isPrefixOfB := (b asLowercase startsWith:lcSelector). |
|
3605 |
(isPrefixOfA and:[isPrefixOfB not]) |
|
3606 |
or:[ |
|
3607 |
aDist := (a spellAgainst:aSelectorString). |
|
3608 |
bDist := (b spellAgainst:aSelectorString). |
|
3609 |
(isPrefixOfA and:[isPrefixOfB and:[aDist > bDist]]) |
|
3610 |
or:[ isPrefixOfB not and:[ aDist > bDist ]]] |
|
3611 |
]. |
|
8759 | 3612 |
Smalltalk allMethodsWithSelectorDo:[:eachMethod :eachSelector | |
17180 | 3613 |
((eachSelector asLowercase startsWith:lcSelector) or:[(eachSelector spellAgainst:aSelectorString) > 50]) ifTrue:[ |
8759 | 3614 |
(allSelectors includes:eachSelector) ifFalse:[ |
3615 |
allSelectors add:eachSelector. |
|
3616 |
top20 add:eachSelector. |
|
3617 |
top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ]. |
|
3618 |
] |
|
8678 | 3619 |
] |
3620 |
]. |
|
9685
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3621 |
top20 isEmpty ifTrue:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3622 |
Smalltalk allMethodsWithSelectorDo:[:eachMethod :eachSelector | |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3623 |
(eachSelector asLowercase spellAgainst:lcSelector) > 50 ifTrue:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3624 |
(allSelectors includes:eachSelector) ifFalse:[ |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3625 |
allSelectors add:eachSelector. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3626 |
top20 add:eachSelector. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3627 |
top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ]. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3628 |
] |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3629 |
] |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3630 |
]. |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3631 |
]. |
15499 | 3632 |
|
3633 |
"/ for your convenience: look for a global class by that name, and offer browsing the class |
|
12621 | 3634 |
but := ''. |
13128 | 3635 |
(globalClass := Smalltalk classNamed:aSelectorString) notNil ifTrue:[ |
12575 | 3636 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class ',aSelectorString,' <<'); yourself. |
12621 | 3637 |
but := '\But there exists a class by that name.'. |
13128 | 3638 |
] ifFalse:[ |
3639 |
(aSelectorString knownAsSymbol |
|
3640 |
and:[ (global := Smalltalk at:aSelectorString asSymbol) notNil ]) |
|
3641 |
ifTrue:[ |
|
3642 |
global isBehavior ifTrue:[ |
|
3643 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse alias ',aSelectorString,' <<'); yourself. |
|
3644 |
but := '\But there exists a global alias by that name.'. |
|
3645 |
globalClass := global |
|
3646 |
] ifFalse:[ |
|
3647 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class of ',aSelectorString,' <<'); yourself. |
|
3648 |
but := '\But there exists a global by that name.'. |
|
3649 |
globalClass := global class. |
|
3650 |
] |
|
3651 |
]. |
|
12575 | 3652 |
]. |
15499 | 3653 |
"/ for your convenience: look for any namespace class by that name, and offer browsing the class |
3654 |
but isEmpty ifTrue:[ |
|
3655 |
globalName := Smalltalk keys |
|
3656 |
detect:[:nm | (nm includesString:'::') |
|
3657 |
and:[ (nm includesString:aSelectorString) |
|
3658 |
and:[ (nm endsWith:('::',aSelectorString)) ]]] |
|
3659 |
ifNone:nil. |
|
3660 |
globalName notNil ifTrue:[ |
|
3661 |
globalClass := Smalltalk at:globalName. |
|
3662 |
globalClass isBehavior ifTrue:[ |
|
3663 |
top20 := (OrderedCollection withAll:top20) addFirst:('>> Browse class ',globalClass name,' <<'); yourself. |
|
3664 |
but := '\But there exists a class in some namespace by that name.'. |
|
3665 |
]. |
|
3666 |
]. |
|
3667 |
]. |
|
3668 |
||
8678 | 3669 |
choice := Dialog |
12621 | 3670 |
choose:(title,(' - none found.',but,'\\Browse implementors of a similar selector or cancel:') withCRs) |
8678 | 3671 |
fromList:top20 |
3672 |
lines:10. |
|
13128 | 3673 |
|
8678 | 3674 |
choice notEmptyOrNil ifTrue:[ |
12575 | 3675 |
(choice startsWith:'>>') ifTrue:[ |
13128 | 3676 |
self openInClass:globalClass selector:nil. |
12575 | 3677 |
] ifFalse:[ |
3678 |
self browseImplementorsOf:choice in:aCollectionOfClasses ignoreCase:ignoreCase title:'Implementors of ',choice. |
|
3679 |
] |
|
8678 | 3680 |
]. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3681 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3682 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3683 |
rs := self classResources. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3684 |
(Dialog confirm:((rs string:title) , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3685 |
(rs string:'...\\... none found.') , |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3686 |
(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
|
3687 |
with:list2 size |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3688 |
with:selWithColon allBold)) withCRs) ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3689 |
^ nil |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3690 |
]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3691 |
list := list2. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3692 |
title := title , ':'. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
3693 |
|
36 | 3694 |
]. |
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3695 |
|
270 | 3696 |
^ self browseMethods:list asOrderedCollection title:title |
36 | 3697 |
|
3698 |
" |
|
3699 |
SystemBrowser browseImplementorsOf:#+ |
|
270 | 3700 |
in:(Array with:Number |
3701 |
with:Float |
|
3702 |
with:SmallInteger) |
|
3703 |
title:'some implementors of +' |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3704 |
|
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3705 |
NewSystemBrowser browseImplementorsOf:#+ |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3706 |
in:(Array with:Number |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3707 |
with:Float |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3708 |
with:SmallInteger) |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3709 |
title:'some implementors of +' |
36 | 3710 |
" |
132 | 3711 |
|
9685
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3712 |
"Modified: / 04-09-1995 / 17:33:39 / claus" |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3713 |
"Modified: / 19-06-1996 / 14:19:02 / stefan" |
629e1d789a2d
changed: #browseImplementorsOf:in:ignoreCase:title:
Claus Gittinger <cg@exept.de>
parents:
9660
diff
changeset
|
3714 |
"Modified: / 15-01-2011 / 14:35:56 / cg" |
36 | 3715 |
! |
3716 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3717 |
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
|
3718 |
"launch a browser for all implementors of aSelector in |
16586 | 3719 |
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
|
3720 |
|
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3721 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3722 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3723 |
in:aCollectionOfClasses |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3724 |
ignoreCase:false |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3725 |
title:title |
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 |
|
52 | 3728 |
browseImplementorsOf:aSelectorString under:aClass |
3729 |
"launch a browser for all implementors of aSelector in aClass |
|
3730 |
and its subclasses" |
|
3731 |
||
2623
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3732 |
^ self |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3733 |
browseImplementorsOf:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3734 |
in:(aClass withAllSubclasses) |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3735 |
title:(self classResources |
6476 | 3736 |
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
|
3737 |
with:aSelectorString |
9e488daf53da
allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents:
2551
diff
changeset
|
3738 |
with:aClass name) |
52 | 3739 |
|
3740 |
" |
|
3741 |
SystemBrowser browseImplementorsOf:#+ under:Integer |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3742 |
NewSystemBrowser browseImplementorsOf:#+ under:Integer |
52 | 3743 |
" |
256 | 3744 |
|
3360
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3745 |
"Created: / 9.12.1995 / 18:06:09 / cg" |
2eab40d1a498
isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents:
3354
diff
changeset
|
3746 |
"Modified: / 5.11.2001 / 17:30:15 / cg" |
52 | 3747 |
! |
3748 |
||
3663 | 3749 |
browseImplementorsOfAny:setOfSelectors |
3750 |
"launch a browser for all implementors of aSelector" |
|
3751 |
||
3752 |
^ self |
|
3753 |
browseImplementorsOfAny:setOfSelectors |
|
3754 |
in:(Smalltalk allClasses) |
|
3755 |
||
3756 |
" |
|
3757 |
SystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3758 |
NewSystemBrowser browseImplementorsOfAny:#( #+ #- ) |
|
3759 |
" |
|
3760 |
||
3761 |
"Created: / 9.12.1995 / 18:01:18 / cg" |
|
3762 |
"Modified: / 5.11.2001 / 17:31:11 / cg" |
|
3763 |
! |
|
3764 |
||
3765 |
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses |
|
3766 |
"launch a browser for all implementors of aSelector" |
|
3767 |
||
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3768 |
|title| |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3769 |
|
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3770 |
setOfSelectors size == 1 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3771 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3772 |
string:'Implementors of %1' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3773 |
with:(setOfSelectors asOrderedCollection first). |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3774 |
] ifFalse:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3775 |
setOfSelectors size == 2 ifTrue:[ |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3776 |
title := self classResources |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3777 |
string:'Implementors of %1 or %2' |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3778 |
with:(setOfSelectors asOrderedCollection first) |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3779 |
with:(setOfSelectors asOrderedCollection second). |
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 |
title := self classResources string:'Implementors of some'. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3782 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3783 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3784 |
|
3663 | 3785 |
^ self |
3786 |
browseImplementorsOfAny:setOfSelectors |
|
3787 |
in:aSetOfClasses |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
3788 |
title:title |
3663 | 3789 |
|
3790 |
" |
|
3791 |
SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3792 |
NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses) |
|
3793 |
" |
|
3794 |
||
3795 |
"Created: / 10.7.1996 / 10:20:59 / cg" |
|
3796 |
"Modified: / 5.11.2001 / 17:30:57 / cg" |
|
3797 |
! |
|
3798 |
||
3799 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title |
|
3800 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3801 |
the classes contained in aCollectionOfClasses and their metaclasses" |
3663 | 3802 |
|
3803 |
|list| |
|
3804 |
||
3805 |
list := self |
|
3806 |
findImplementorsOfAny:setOfSelectors |
|
3807 |
in:aCollectionOfClasses |
|
3808 |
ignoreCase:ignoreCase. |
|
3809 |
||
3810 |
list size == 0 ifTrue:[ |
|
3811 |
self showNoneFound:title. |
|
3812 |
^ nil |
|
3813 |
]. |
|
3814 |
||
3815 |
^ self browseMethods:list asOrderedCollection title:title |
|
3816 |
||
3817 |
" |
|
3818 |
SystemBrowser browseImplementorsOf:#+ |
|
3819 |
in:(Array with:Number |
|
3820 |
with:Float |
|
3821 |
with:SmallInteger) |
|
3822 |
title:'some implementors of +' |
|
3823 |
||
3824 |
NewSystemBrowser browseImplementorsOf:#+ |
|
3825 |
in:(Array with:Number |
|
3826 |
with:Float |
|
3827 |
with:SmallInteger) |
|
3828 |
title:'some implementors of +' |
|
3829 |
" |
|
3830 |
||
3831 |
"Modified: / 4.9.1995 / 17:33:39 / claus" |
|
3832 |
"Modified: / 19.6.1996 / 14:19:02 / stefan" |
|
3833 |
"Modified: / 5.11.2001 / 17:30:38 / cg" |
|
3834 |
! |
|
3835 |
||
3836 |
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title |
|
3837 |
"launch a browser for all implementors of aSelector in |
|
16586 | 3838 |
the classes contained in aCollectionOfClasses and their metaclasses" |
3663 | 3839 |
|
3840 |
^ self |
|
3841 |
browseImplementorsOfAny:setOfSelectors |
|
3842 |
in:aCollectionOfClasses |
|
3843 |
ignoreCase:false |
|
3844 |
title:title |
|
3845 |
! |
|
3846 |
||
203 | 3847 |
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
3848 |
"launch a browser for all methods in aClass where the instVar named |
|
3849 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
3850 |
instvar is modified" |
|
45 | 3851 |
|
203 | 3852 |
^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
36 | 3853 |
! |
3854 |
||
203 | 3855 |
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
3856 |
"launch a browser for all methods in aClass where the instVar named |
|
3857 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
3858 |
instvar is modified" |
|
52 | 3859 |
|
203 | 3860 |
^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
52 | 3861 |
! |
3862 |
||
203 | 3863 |
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
3864 |
"launch a browser for all methods in aClass and subclasses |
|
3865 |
where the instVar named aString is referenced; |
|
3866 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
36 | 3867 |
|
203 | 3868 |
^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
36 | 3869 |
! |
3870 |
||
3871 |
browseReferendsOf:aGlobalName |
|
3872 |
"launch a browser for all methods referencing a global |
|
1367 | 3873 |
named aGlobalName. The argument may be a symbol, a string or |
3874 |
a matchPattern. |
|
36 | 3875 |
" |
3876 |
||
3877 |
^ self browseReferendsOf:aGlobalName warnIfNone:true |
|
3878 |
||
3879 |
" |
|
14944 | 3880 |
UserPreferences current systemBrowserClass browseReferendsOf:#Transcript |
3881 |
UserPreferences current systemBrowserClass browseReferendsOf:'Tr*' |
|
36 | 3882 |
" |
75 | 3883 |
|
1367 | 3884 |
"Modified: / 30.10.1997 / 23:45:52 / cg" |
36 | 3885 |
! |
3886 |
||
2409 | 3887 |
browseReferendsOf:aGlobalName ifNone:actionIfNone |
3888 |
"launch a browser for all methods referencing a global |
|
3889 |
named aGlobalName. |
|
3890 |
" |
|
3891 |
||
3892 |
^ self |
|
3893 |
browseReferendsOf:aGlobalName |
|
6476 | 3894 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
2409 | 3895 |
ifNone:actionIfNone |
3896 |
||
3897 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
3898 |
! |
|
3899 |
||
666 | 3900 |
browseReferendsOf:aGlobalName in:aSetOfClasses |
3901 |
"launch a browser for all methods referencing a global |
|
3902 |
named aGlobalName. |
|
3903 |
" |
|
3904 |
||
3905 |
^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true |
|
3906 |
||
3907 |
" |
|
3908 |
Browser browseReferendsOf:#Transcript |
|
3909 |
" |
|
3910 |
||
3911 |
"Created: 10.7.1996 / 10:37:30 / cg" |
|
3912 |
! |
|
3913 |
||
3914 |
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn |
|
3915 |
"launch a browser for all methods referencing a global |
|
3916 |
named aGlobalName. |
|
3917 |
" |
|
3918 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3919 |
|globalsPlainName idx| |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3920 |
|
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3921 |
globalsPlainName := aGlobalName. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3922 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3923 |
globalsPlainName := globalsPlainName copyFrom:idx+1 |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3924 |
]. |
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3925 |
|
666 | 3926 |
^ self browseForSymbol:aGlobalName |
3927 |
in:aSetOfClasses |
|
6476 | 3928 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
666 | 3929 |
warnIfNone:doWarn |
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3930 |
searchFor:globalsPlainName |
666 | 3931 |
|
3932 |
"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
|
3933 |
"Modified: 31.10.1996 / 14:56:38 / cg" |
666 | 3934 |
! |
3935 |
||
2409 | 3936 |
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone |
9002 | 3937 |
"launch a browser for all methods referencing a global named aGlobalName." |
3938 |
||
3939 |
|searchBlock browser| |
|
3940 |
||
3941 |
searchBlock := self searchBlockForReferendsOf:aGlobalName. |
|
3942 |
browser := self |
|
3943 |
browseMethodsWhere:searchBlock |
|
3944 |
title:title |
|
3945 |
ifNone:[ |
|
3946 |
actionIfNone value. |
|
3947 |
^ nil |
|
3948 |
]. |
|
3949 |
||
2828 | 3950 |
browser isNil ifTrue:[ |
3951 |
actionIfNone value |
|
3952 |
] ifFalse:[ |
|
9010
fa5c1fef4aef
changed: #browseReferendsOf:title:ifNone:
Claus Gittinger <cg@exept.de>
parents:
9007
diff
changeset
|
3953 |
browser autoSearchVariable:aGlobalName. |
2828 | 3954 |
]. |
3955 |
^ browser |
|
9002 | 3956 |
|
3957 |
" |
|
3958 |
Tools::NewSystemBrowser browseReferendsOf:'SortedCollection' title:'foo' ifNone:[ self halt ] |
|
3959 |
" |
|
2409 | 3960 |
! |
3961 |
||
3962 |
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn |
|
3963 |
"launch a browser for all methods referencing a global |
|
3964 |
named aGlobalName. |
|
3965 |
" |
|
3966 |
||
2414 | 3967 |
|b| |
3968 |
||
3969 |
doWarn ifTrue: [ |
|
4158 | 3970 |
b := [self showNoneFound:title] |
2414 | 3971 |
]. |
3972 |
||
2409 | 3973 |
^ self |
3974 |
browseReferendsOf:aGlobalName |
|
3975 |
title:title |
|
2414 | 3976 |
ifNone:b |
2409 | 3977 |
|
1367 | 3978 |
! |
3979 |
||
3980 |
browseReferendsOf:aGlobalName warnIfNone:doWarn |
|
3981 |
"launch a browser for all methods referencing a global |
|
3982 |
named aGlobalName. |
|
3983 |
" |
|
3984 |
||
3985 |
^ self |
|
3986 |
browseReferendsOf:aGlobalName |
|
6476 | 3987 |
title:(self classResources string:'Users of: %1' with:aGlobalName) |
1367 | 3988 |
warnIfNone:doWarn |
3989 |
||
3990 |
"Modified: / 31.10.1997 / 15:42:05 / cg" |
|
203 | 3991 |
! |
3992 |
||
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3993 |
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone |
12844 | 3994 |
"launch a browser for all methods referencing an unbound global." |
3995 |
||
3996 |
|searchBlock browser| |
|
4198
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3997 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3998 |
searchBlock := [:cls :mthd :sel | |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
3999 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4000 |
|mSource globals potentialNames| |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4001 |
|
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4002 |
"/ 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
|
4003 |
mthd isLazyMethod ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4004 |
mSource := mthd source. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4005 |
mSource notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4006 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4007 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4008 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4009 |
"/ try hard to avoid the usedGlobals - its expensive |
6640 | 4010 |
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
|
4011 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4012 |
potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4013 |
potentialNames notEmpty ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4014 |
globals := mthd usedGlobals. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4015 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4016 |
] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4017 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4018 |
globals notNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4019 |
globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4020 |
] ifFalse:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4021 |
false |
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 |
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
|
4026 |
browser isNil ifTrue:[ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4027 |
actionIfNone value |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4028 |
]. |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4029 |
^ browser |
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 |
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4033 |
"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
|
4034 |
" |
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 |
|b| |
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 |
doWarn ifTrue: [ |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4039 |
b := [self showNoneFound:title] |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4040 |
]. |
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 |
^ self |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4043 |
browseReferendsOfUnboundGlobalsWithTitle:title |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4044 |
ifNone:b |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4045 |
! |
de8b73b42e1e
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4167
diff
changeset
|
4046 |
|
203 | 4047 |
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4048 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
4049 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
4050 |
instvar is modified" |
|
4051 |
||
4052 |
|title| |
|
4053 |
||
4054 |
modsOnly ifTrue:[ |
|
6476 | 4055 |
title := 'Modifications of: %1' |
203 | 4056 |
] ifFalse:[ |
6476 | 4057 |
title := 'References to: %1 ' |
203 | 4058 |
]. |
4059 |
^ self |
|
256 | 4060 |
browseRefsTo:aString |
4061 |
classVars:classVars |
|
4062 |
in:aCollectionOfClasses |
|
4063 |
modificationsOnly:modsOnly |
|
4064 |
title:(self classResources string:title with:aString) |
|
4065 |
||
4066 |
"Created: 9.12.1995 / 18:07:05 / cg" |
|
4067 |
"Modified: 9.12.1995 / 18:11:49 / cg" |
|
203 | 4068 |
! |
4069 |
||
4070 |
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title |
|
4071 |
"launch a browser for all methods in aClass where the instVar/classVar named |
|
4072 |
varName is referenced; if modsOnly is true, browse only methods where the |
|
4073 |
instvar is modified" |
|
4074 |
||
4075 |
|filter browser pattern| |
|
4076 |
||
4077 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
2677 | 4078 |
browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title. |
203 | 4079 |
|
4080 |
browser notNil ifTrue:[ |
|
2677 | 4081 |
modsOnly ifTrue:[ |
4082 |
pattern := varName , ' :=' |
|
4083 |
] ifFalse:[ |
|
4084 |
pattern := varName |
|
4085 |
]. |
|
4086 |
browser autoSearch:pattern |
|
203 | 4087 |
]. |
4088 |
^ browser |
|
4089 |
! |
|
4090 |
||
3407 | 4091 |
browseSendersOf:aSelectorString |
4092 |
"launch a browser for all senders of aSelector" |
|
4093 |
||
4094 |
^ self browseAllCallsOn:aSelectorString |
|
4095 |
||
4096 |
" |
|
4097 |
SystemBrowser browseSendersOf:#+ |
|
7914 | 4098 |
UserPreferences current systemBrowserClass browseSendersOf:#+ |
3407 | 4099 |
" |
4100 |
||
4101 |
"Modified: / 10.7.1996 / 10:26:15 / cg" |
|
4102 |
"Created: / 13.11.2001 / 13:52:12 / cg" |
|
4103 |
! |
|
4104 |
||
256 | 4105 |
browseSuperCallsIn:aCollectionOfClasses title:title |
4106 |
"launch a browser for all super sends in aCollectionOfClasses" |
|
4107 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
675
diff
changeset
|
4108 |
|browser searchBlock| |
256 | 4109 |
|
4110 |
searchBlock := [:class :method :s | |
|
504 | 4111 |
|src parser| |
256 | 4112 |
|
504 | 4113 |
src := method source. |
15334 | 4114 |
(src notNil and:[ (src findString:'super') ~~ 0 ]) ifTrue:[ |
4115 |
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
|
4116 |
parseMethod:src |
504 | 4117 |
in:class |
4118 |
ignoreErrors:true |
|
4119 |
ignoreWarnings:true. |
|
4120 |
||
7711 | 4121 |
(parser notNil and:[parser ~~ #Error and:[parser usesSuper]]) |
504 | 4122 |
] ifFalse:[ |
4123 |
false |
|
4124 |
] |
|
256 | 4125 |
]. |
4126 |
||
4127 |
browser := self browseMethodsIn:aCollectionOfClasses |
|
504 | 4128 |
where:searchBlock |
4129 |
title:title. |
|
256 | 4130 |
|
4131 |
browser notNil ifTrue:[ |
|
504 | 4132 |
browser autoSearch:'super' |
256 | 4133 |
]. |
4134 |
^ browser |
|
4135 |
||
504 | 4136 |
" |
4137 |
SystemBrowser |
|
4138 |
browseSuperCallsIn:(Array with:SortedCollection) |
|
4139 |
title:'superSends in SortedCollection' |
|
4140 |
" |
|
4141 |
||
7711 | 4142 |
"Created: / 23-11-1995 / 14:08:55 / cg" |
4143 |
"Modified: / 06-03-2007 / 14:00:12 / cg" |
|
256 | 4144 |
! |
4145 |
||
4146 |
browseSuperCallsUnder:aClass |
|
4147 |
"launch a browser for all supersends in aClass and subclasses" |
|
4148 |
||
4149 |
^ self browseSuperCallsIn:(aClass withAllSubclasses) |
|
6476 | 4150 |
title:(self classResources string:'Supersends (in and below %1)' with:aClass name) |
256 | 4151 |
|
4152 |
" |
|
4153 |
SystemBrowser browseSuperCallsUnder:Number |
|
4154 |
" |
|
4155 |
||
4156 |
"Created: 23.11.1995 / 12:06:06 / cg" |
|
4157 |
"Modified: 9.12.1995 / 18:11:59 / cg" |
|
4158 |
! |
|
4159 |
||
52 | 4160 |
browseUsesOf:aClass |
4161 |
|dict owners offsets |
|
4162 |
sz "{ Class: SmallInteger }" |
|
4163 |
n "{ Class: SmallInteger }" |
|
4164 |
removeSet newDict| |
|
4165 |
||
4166 |
owners := ObjectMemory whoReferencesInstancesOf:aClass. |
|
4167 |
||
4168 |
" |
|
4169 |
collect set of offsets in dict; key is class |
|
4170 |
" |
|
4171 |
dict := IdentityDictionary new. |
|
4172 |
owners do:[:someObject | |
|
4158 | 4173 |
|cls create| |
4174 |
||
4175 |
someObject isContext ifFalse:[ |
|
4176 |
" |
|
4177 |
someObject refers to an instance of aClass; |
|
4178 |
find out, which instVar(s) |
|
4179 |
" |
|
4180 |
cls := someObject class. |
|
4181 |
cls ~~ Array ifTrue:[ |
|
4182 |
n := cls instSize. |
|
4183 |
create := [|s| s := Set new. dict at:cls put:s. s]. |
|
4184 |
||
4185 |
1 to:n do:[:i | |
|
4186 |
|ref| |
|
4187 |
||
4188 |
ref := someObject instVarAt:i. |
|
4189 |
(ref isMemberOf:aClass) ifTrue:[ |
|
4190 |
offsets := dict at:cls ifAbsent:create. |
|
4191 |
offsets add:i. |
|
4192 |
] |
|
4193 |
]. |
|
4194 |
cls isVariable ifTrue:[ |
|
4195 |
cls isPointers ifTrue:[ |
|
4196 |
| idx "{ Class: SmallInteger }" | |
|
4197 |
||
4198 |
sz := someObject basicSize. |
|
4199 |
idx := 1. |
|
4200 |
[idx <= sz] whileTrue:[ |
|
4201 |
|ref| |
|
4202 |
||
4203 |
ref := someObject basicAt:idx. |
|
4204 |
(ref isMemberOf:aClass) ifTrue:[ |
|
4205 |
offsets := dict at:cls ifAbsent:create. |
|
4206 |
offsets add:0. |
|
4207 |
idx := sz |
|
4208 |
]. |
|
4209 |
idx := idx + 1 |
|
4210 |
] |
|
4211 |
] |
|
4212 |
] |
|
4213 |
] |
|
4214 |
] |
|
52 | 4215 |
]. |
4216 |
||
4217 |
" |
|
4218 |
merge with superclass refs |
|
4219 |
" |
|
4220 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4221 |
cls allSuperclasses do:[:aSuperclass | |
4222 |
|superSet| |
|
4223 |
||
4224 |
superSet := dict at:aSuperclass ifAbsent:[]. |
|
4225 |
superSet notNil ifTrue:[ |
|
4226 |
superSet := dict at:aSuperclass. |
|
4227 |
removeSet := Set new. |
|
4228 |
set do:[:offset | |
|
4229 |
(superSet includes:offset) ifTrue:[ |
|
4230 |
removeSet add:offset |
|
4231 |
] |
|
4232 |
]. |
|
4233 |
set removeAll:removeSet |
|
4234 |
] |
|
4235 |
] |
|
52 | 4236 |
]. |
4237 |
||
4238 |
" |
|
4239 |
remove empty ones |
|
4240 |
" |
|
4241 |
removeSet := Set new. |
|
4242 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4243 |
set isEmpty ifTrue:[ |
4244 |
removeSet add:cls |
|
4245 |
] |
|
52 | 4246 |
]. |
9334 | 4247 |
dict removeAllKeys:removeSet. |
52 | 4248 |
|
4249 |
" |
|
4250 |
replace the indices by real names |
|
4251 |
" |
|
4252 |
newDict := IdentityDictionary new. |
|
4253 |
dict keysAndValuesDo:[:cls :set | |
|
4158 | 4254 |
|newSet names| |
4255 |
||
4256 |
names := cls allInstVarNames. |
|
4257 |
newSet := set collect:[:index | |
|
4258 |
index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index]. |
|
4259 |
]. |
|
4260 |
newDict at:cls put:newSet |
|
52 | 4261 |
]. |
4262 |
||
4263 |
newDict inspect |
|
4264 |
! |
|
4265 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4266 |
filterToSearchRefsTo:varName classVars:classVars access:accessType |
7914 | 4267 |
"return a searchblock for variable references (obsolete)" |
4268 |
||
4269 |
^ self |
|
4270 |
filterToSearchRefsTo:varName |
|
4271 |
instVars:(classVars not) |
|
4272 |
classVars:classVars |
|
11934 | 4273 |
globals:false |
4274 |
poolVars:false |
|
7914 | 4275 |
access:accessType |
4276 |
! |
|
4277 |
||
4278 |
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly |
|
4279 |
"return a searchblock for variable references" |
|
4280 |
||
4281 |
^ self |
|
4282 |
filterToSearchRefsTo:varName |
|
4283 |
classVars:classVars |
|
4284 |
access:(modsOnly ifTrue:#write ifFalse:#readWrite) |
|
4285 |
! |
|
4286 |
||
4287 |
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
|
4288 |
"return a searchblock for variable references" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4289 |
|
11934 | 4290 |
^ self |
4291 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals |
|
4292 |
poolVars:false access:accessType |
|
4293 |
! |
|
4294 |
||
4295 |
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals poolVars:doPoolVars access:accessType |
|
4296 |
"return a searchblock for variable references" |
|
4297 |
||
4298 |
|searchBlock needMatch baseVarName| |
|
4299 |
||
4300 |
needMatch := varName includesMatchCharacters. |
|
4301 |
(varName includes:$:) ifTrue:[ |
|
4302 |
baseVarName := varName copyFrom:(varName lastIndexOf:$:)+1 |
|
4303 |
] ifFalse:[ |
|
4304 |
baseVarName := varName |
|
4305 |
]. |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4306 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4307 |
searchBlock := [:c :m :s | |
11934 | 4308 |
|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
|
4309 |
|
7914 | 4310 |
result := false. |
4311 |
||
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4312 |
"/ 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
|
4313 |
"/ 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
|
4314 |
"/ 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
|
4315 |
|
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4316 |
m programmingLanguage isSmalltalk ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4317 |
"/ For Smalltalk, use parser... |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4318 |
src := m source. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4319 |
src notNil ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4320 |
needMatch ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4321 |
" |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4322 |
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
|
4323 |
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
|
4324 |
" |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4325 |
result := (src findString:baseVarName) ~~ 0. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4326 |
] ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4327 |
result := true. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4328 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4329 |
result ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4330 |
result := false. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4331 |
parser := Parser |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4332 |
parseMethod:src |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4333 |
in:c |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4334 |
ignoreErrors:true |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4335 |
ignoreWarnings: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 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4338 |
vars := Set new. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4339 |
doInstVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4340 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4341 |
instVars := parser readInstVars |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4342 |
] ifFalse:[ |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4343 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4344 |
instVars := parser modifiedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4345 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4346 |
instVars := parser usedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4347 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4348 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4349 |
vars addAll:instVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4350 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4351 |
doClassVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4352 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4353 |
classVars := parser readClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4354 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4355 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4356 |
classVars := parser modifiedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4357 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4358 |
classVars := parser usedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4359 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4360 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4361 |
vars addAll:classVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4362 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4363 |
doPoolVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4364 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4365 |
poolVars := parser readPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4366 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4367 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4368 |
poolVars := parser modifiedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4369 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4370 |
poolVars := parser usedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4371 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4372 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4373 |
vars addAll:poolVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4374 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4375 |
doGlobals ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4376 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4377 |
globals := parser readGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4378 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4379 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4380 |
globals := parser modifiedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4381 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4382 |
globals := parser usedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4383 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4384 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4385 |
vars addAll:globals. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4386 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4387 |
vars size > 0 ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4388 |
needMatch ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4389 |
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
|
4390 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4391 |
result := vars includes:varName |
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4392 |
] |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4393 |
] |
7914 | 4394 |
]. |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4395 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4396 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4397 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4398 |
"/ For all other languages, ask method. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4399 |
vars := Set new. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4400 |
doInstVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4401 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4402 |
instVars := m readInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4403 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4404 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4405 |
instVars := m modifiedInstVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4406 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4407 |
instVars := m usedInstVars |
504 | 4408 |
] |
4409 |
]. |
|
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4410 |
vars addAll:instVars. |
504 | 4411 |
]. |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4412 |
doClassVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4413 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4414 |
classVars := m readClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4415 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4416 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4417 |
classVars := m modifiedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4418 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4419 |
classVars := m usedClassVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4420 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4421 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4422 |
vars addAll:classVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4423 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4424 |
doPoolVars ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4425 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4426 |
poolVars := m readPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4427 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4428 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4429 |
poolVars := m modifiedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4430 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4431 |
poolVars := m usedPoolVars |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4432 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4433 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4434 |
vars addAll:poolVars. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4435 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4436 |
doGlobals ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4437 |
accessType == #read ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4438 |
globals := m readGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4439 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4440 |
accessType == #write ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4441 |
globals := m modifiedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4442 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4443 |
globals := m usedGlobals |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4444 |
] |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4445 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4446 |
vars addAll:globals. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4447 |
]. |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4448 |
vars size > 0 ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4449 |
needMatch ifTrue:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4450 |
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
|
4451 |
] ifFalse:[ |
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4452 |
result := vars includes:varName |
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 |
] |
504 | 4455 |
]. |
4456 |
Processor yield. |
|
4457 |
result |
|
36 | 4458 |
]. |
203 | 4459 |
^ searchBlock |
504 | 4460 |
|
10897
77388222c40e
comment: #filterToSearchRefsTo:instVars:classVars:globals:access:
Claus Gittinger <cg@exept.de>
parents:
10546
diff
changeset
|
4461 |
"Modified: / 19-06-1997 / 18:27:57 / cg" |
77388222c40e
comment: #filterToSearchRefsTo:instVars:classVars:globals:access:
Claus Gittinger <cg@exept.de>
parents:
10546
diff
changeset
|
4462 |
"Modified (format): / 25-11-2011 / 14:00:44 / cg" |
13525
a8195f61d4f2
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13438
diff
changeset
|
4463 |
"Modified: / 06-09-2013 / 18:02:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2642 | 4464 |
! |
4465 |
||
2743
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4466 |
findAnyResourceIn:aCollectionOfClasses |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4467 |
"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
|
4468 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4469 |
^ 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
|
4470 |
|
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4471 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4472 |
SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses) |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4473 |
" |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4474 |
! |
4fa5e36bef74
code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents:
2741
diff
changeset
|
4475 |
|
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4476 |
findClassRefsTo:aString in:aCollectionOfClasses access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4477 |
"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
|
4478 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4479 |
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
|
4480 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4481 |
^ 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
|
4482 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4483 |
|
2677 | 4484 |
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 4485 |
"return all methods in aCollectionOfClasses where the classVar named |
2677 | 4486 |
aString is referenced; |
4487 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4488 |
||
4489 |
^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly |
|
4490 |
! |
|
4491 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4492 |
findClassRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4493 |
"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
|
4494 |
aString is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4495 |
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
|
4496 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4497 |
^ 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
|
4498 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4499 |
|
2728 | 4500 |
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
4501 |
"return all methods in aClass where the classVar named |
|
4502 |
aString is referenced; |
|
4503 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4504 |
||
4505 |
^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly |
|
4506 |
! |
|
4507 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4508 |
findClassRefsTo:aString under:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4509 |
"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
|
4510 |
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
|
4511 |
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
|
4512 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4513 |
^ 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
|
4514 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4515 |
|
2677 | 4516 |
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly |
4517 |
"return all methods in aClass and subclasses |
|
4518 |
where the classVar named aString is referenced; |
|
4519 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4520 |
||
4521 |
^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
4522 |
||
4523 |
! |
|
4524 |
||
5094 | 4525 |
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
5243 | 4526 |
"return a collection of all methods in aCollectionOfClasses |
5094 | 4527 |
containing a matching piece of code. |
4528 |
This may be slow, since source-code has to be scanned." |
|
4529 |
||
4530 |
|searchBlock| |
|
4531 |
||
9879 | 4532 |
searchBlock := self searchBlockForCode:aCodeString in:aCollectionOfClasses isMethod:isMethod. |
5226 | 4533 |
searchBlock isNil ifTrue:[ ^ nil]. |
5094 | 4534 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
9879 | 4535 |
|
4536 |
"Modified: / 02-05-2011 / 13:25:15 / sr" |
|
5094 | 4537 |
! |
4538 |
||
5243 | 4539 |
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod |
4540 |
"return a collection of all methods in aCollectionOfMethods |
|
4541 |
containing a matching piece of code." |
|
4542 |
||
4543 |
|searchBlock| |
|
4544 |
||
9879 | 4545 |
searchBlock := self searchBlockForCode:aCodeString in:(aCollectionOfMethods collect:[:each | each mclass]) isMethod:isMethod. |
5243 | 4546 |
searchBlock isNil ifTrue:[ ^ nil]. |
4547 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
9879 | 4548 |
|
4549 |
"Modified: / 02-05-2011 / 13:25:39 / sr" |
|
5243 | 4550 |
! |
4551 |
||
9482 | 4552 |
findExceptionHandlersIn:aCollectionOfClasses |
4553 |
"return a collection of all methods in aCollectionOfClasses |
|
4554 |
containing an exception raiser. |
|
4555 |
This may be slow, since source-code has to be scanned." |
|
4556 |
||
4557 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher handlesException) in:aCollectionOfClasses |
|
4558 |
||
4559 |
"Modified: / 11-05-2010 / 16:18:55 / cg" |
|
4560 |
! |
|
4561 |
||
4562 |
findExceptionHandlersInMethods:aCollectionOfMethods |
|
4563 |
"return a collection of all methods in aCollectionOfClasses |
|
4564 |
containing an exception raiser. |
|
4565 |
This may be slow, since source-code has to be scanned." |
|
4566 |
||
4567 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher handlesException) inMethods:aCollectionOfMethods |
|
4568 |
||
4569 |
"Created: / 11-05-2010 / 16:20:48 / cg" |
|
4570 |
! |
|
4571 |
||
4572 |
findExceptionRaisersIn:aCollectionOfClasses |
|
4573 |
"return a collection of all methods in aCollectionOfClasses |
|
4574 |
containing an exception raiser. |
|
4575 |
This may be slow, since source-code has to be scanned." |
|
4576 |
||
4577 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher raisesException) in:aCollectionOfClasses |
|
4578 |
||
4579 |
"Modified: / 11-05-2010 / 16:18:48 / cg" |
|
4580 |
! |
|
4581 |
||
4582 |
findExceptionRaisersInMethods:aCollectionOfMethods |
|
4583 |
"return a collection of all methods in aCollectionOfClasses |
|
4584 |
containing an exception raiser. |
|
4585 |
This may be slow, since source-code has to be scanned." |
|
4586 |
||
4587 |
^ self findUsingParseTreeSearcher:(ParseTreeSearcher raisesException) inMethods:aCollectionOfMethods |
|
4588 |
||
4589 |
"Created: / 11-05-2010 / 16:20:36 / cg" |
|
4590 |
! |
|
4591 |
||
8129 | 4592 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 4593 |
"return a collection of all help-spec methods in aCollectionOfClasses |
4594 |
containing a string in their source. |
|
4595 |
This may be slow, since source-code has to be scanned." |
|
8129 | 4596 |
|
4597 |
^ self |
|
4598 |
findSpecMethodsFor:#help |
|
4599 |
withString:aString |
|
4600 |
in:aCollectionOfClasses |
|
4601 |
ignoreCase:ignoreCase |
|
4602 |
! |
|
4603 |
||
4604 |
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4605 |
"return a collection of all help-spec methods in aCollectionOfClasses |
|
4606 |
containing a string in their source. |
|
4607 |
This may be slow, since source-code has to be scanned." |
|
4608 |
||
4609 |
^ self |
|
4610 |
findSpecMethodsFor:#help |
|
4611 |
withString:aString |
|
4612 |
in:aCollectionOfClasses |
|
4613 |
ignoreCase:ignoreCase |
|
4614 |
match:doMatch |
|
3314 | 4615 |
! |
4616 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4617 |
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
3675 | 4618 |
"search for all implementors of aSelector in |
16586 | 4619 |
the classes contained in aCollectionOfClasses and their metaclasses. |
3675 | 4620 |
Return a collection of methods" |
4621 |
||
16597 | 4622 |
|lcSelector list compare testST testJava srchBlockST srchBlockJava collectionOfClasses| |
3675 | 4623 |
|
4624 |
list := IdentitySet new. |
|
6051 | 4625 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
4626 |
||
16395 | 4627 |
(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
|
4628 |
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
|
4629 |
] ifFalse:[ |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4630 |
compare := [:sel :search | sel = search]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4631 |
]. |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4632 |
|
3675 | 4633 |
ignoreCase == true ifTrue:[ |
4634 |
lcSelector := aSelectorMatchString asLowercase. |
|
4635 |
||
15075 | 4636 |
testST := [:mthdSelector :aMethod | (compare value:lcSelector value:mthdSelector asLowercase) ]. |
4637 |
testJava := [:mthdSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ]. |
|
3675 | 4638 |
] ifFalse:[ |
15075 | 4639 |
testST := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:mthdSelector) ]. |
4640 |
testJava := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ]. |
|
3675 | 4641 |
]. |
4642 |
||
15075 | 4643 |
srchBlockST := [:mthdSelector :mthd | (testST value:mthdSelector value:mthd) ifTrue:[ list add:mthd]]. |
4644 |
srchBlockJava := [:mthdSelector :mthd | (testJava value:mthdSelector value:mthd) ifTrue:[ list add:mthd]]. |
|
11452 | 4645 |
|
16597 | 4646 |
(collectionOfClasses := aCollectionOfClasses) isNil ifTrue:[ |
4647 |
collectionOfClasses := Smalltalk allClasses |
|
4648 |
]. |
|
4649 |
collectionOfClasses do:[:aClass | |
|
11452 | 4650 |
|srchBlock| |
3675 | 4651 |
|
4652 |
aClass isObsolete ifFalse:[ |
|
11452 | 4653 |
srchBlock := aClass isJavaClass |
4654 |
ifTrue:[ srchBlockJava ] |
|
4655 |
ifFalse:[ srchBlockST ]. |
|
4656 |
||
3675 | 4657 |
aClass methodDictionary keysAndValuesDo:srchBlock. |
4658 |
aClass isMeta ifFalse:[ |
|
4659 |
aClass class methodDictionary keysAndValuesDo:srchBlock |
|
4660 |
] |
|
4661 |
] |
|
4662 |
]. |
|
4663 |
||
4664 |
^ list |
|
4665 |
||
4666 |
" |
|
11452 | 4667 |
SystemBrowser |
4668 |
findImplementorsOf:#+ |
|
4669 |
in: { Number . Float . SmallInteger } |
|
4670 |
ignoreCase: false |
|
16395 | 4671 |
|
4672 |
Time millisecondsToRun:[ |
|
4673 |
SystemBrowser |
|
4674 |
findImplementorsOf:#add: |
|
4675 |
in: (Smalltalk allClasses) |
|
4676 |
ignoreCase: false |
|
4677 |
] |
|
11452 | 4678 |
" |
4679 |
||
4680 |
"Modified (format): / 22-03-2012 / 07:28:50 / cg" |
|
3675 | 4681 |
! |
4682 |
||
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4683 |
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4684 |
"search for all implementors of aSelector in |
16395 | 4685 |
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
|
4686 |
Return a collection of methods" |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4687 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4688 |
|list compare testST testJava lcSelector| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4689 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4690 |
list := IdentitySet new. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4691 |
aSelectorMatchString size == 0 ifTrue:[ ^ list ]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4692 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4693 |
doMatch ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4694 |
compare := [:sel :search | sel match:search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4695 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4696 |
compare := [:sel :search | sel = search]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4697 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4698 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4699 |
ignoreCase == true ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4700 |
lcSelector := aSelectorMatchString asLowercase. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4701 |
|
15075 | 4702 |
testST := [:mthdSelector :aMethod | (compare value:lcSelector value:mthdSelector asLowercase) ]. |
4703 |
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
|
4704 |
] ifFalse:[ |
15075 | 4705 |
testST := [:mthdSelector :aMethod | (compare value:aSelectorMatchString value:mthdSelector) ]. |
4706 |
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
|
4707 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4708 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4709 |
aCollectionOfMethods do:[:eachMethod | |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4710 |
|cls sel testBlock| |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4711 |
|
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4712 |
cls := eachMethod mclass. |
7066 | 4713 |
(cls isNil or:[cls isObsolete]) ifFalse:[ |
6776
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4714 |
cls isJavaClass ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4715 |
testBlock := testJava |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4716 |
] ifFalse:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4717 |
testBlock := testST |
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 |
sel := eachMethod selector. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4720 |
(testBlock value:sel value:eachMethod) ifTrue:[ |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4721 |
list add:eachMethod |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4722 |
]. |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4723 |
] |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4724 |
]. |
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 |
^ list |
7066 | 4727 |
|
4728 |
"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
|
4729 |
! |
5f5fd533b1f4
implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents:
6705
diff
changeset
|
4730 |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4731 |
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
|
4732 |
"search for all implementors of aSelector in |
16586 | 4733 |
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
|
4734 |
Return a collection of methods" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4735 |
|
11452 | 4736 |
^ self |
4737 |
findImplementors:aSelectorMatchString |
|
4738 |
in:aCollectionOfClasses |
|
4739 |
ignoreCase:ignoreCase |
|
4740 |
match:true |
|
4741 |
||
4742 |
" |
|
4743 |
SystemBrowser |
|
4744 |
findImplementorsOf:#+ |
|
4745 |
in:{ Number . Float . SmallInteger } |
|
16443 | 4746 |
ignoreCase:false |
11452 | 4747 |
" |
4748 |
||
4749 |
"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
|
4750 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4751 |
|
3675 | 4752 |
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4753 |
"search for all implementors of any in aCollectionOfSelectors in |
|
16586 | 4754 |
the classes contained in aCollectionOfClasses and their metaclasses. |
3675 | 4755 |
Return a collection of methods. |
4756 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4757 |
||
6052 | 4758 |
^ aCollectionOfSelectors |
4759 |
collectAll:[:eachSelector | |
|
4760 |
self findImplementorsMatching:eachSelector |
|
4761 |
in:aCollectionOfClasses |
|
4762 |
ignoreCase:ignoreCase. |
|
4763 |
]. |
|
4764 |
||
4765 |
"/ |implementors| |
|
4766 |
"/ |
|
6051 | 4767 |
"/ implementors := IdentitySet new. |
4768 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4769 |
"/ implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
4770 |
"/ ]. |
|
6052 | 4771 |
"/ ^ implementors |
6051 | 4772 |
|
4773 |
" |
|
4774 |
self |
|
4775 |
findImplementorsMatchingAny:#( 'at*:' '*size') |
|
4776 |
in:(Smalltalk allClasses) |
|
4777 |
ignoreCase:true |
|
4778 |
" |
|
3675 | 4779 |
! |
4780 |
||
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4781 |
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase |
2642 | 4782 |
"search for all implementors of aSelector in |
16586 | 4783 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2642 | 4784 |
Return a collection of methods" |
4785 |
||
6480 | 4786 |
^ self |
4787 |
findImplementors:aSelectorMatchString |
|
4788 |
in:aCollectionOfClasses |
|
4789 |
ignoreCase:ignoreCase |
|
4790 |
match:false |
|
2642 | 4791 |
|
4792 |
" |
|
4793 |
SystemBrowser findImplementorsOf:#+ |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4794 |
in:(Array with:Number |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4795 |
with:Float |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
4796 |
with:SmallInteger) |
2642 | 4797 |
" |
4798 |
! |
|
4799 |
||
2811 | 4800 |
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
4801 |
"search for all implementors of any in aCollectionOfSelectors in |
|
16586 | 4802 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2811 | 4803 |
Return a collection of methods. |
4804 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
4805 |
||
6052 | 4806 |
^ aCollectionOfSelectors |
4807 |
collectAll:[:eachSelector | |
|
4808 |
self findImplementorsOf:eachSelector |
|
4809 |
in:aCollectionOfClasses |
|
4810 |
ignoreCase:ignoreCase. |
|
4811 |
]. |
|
4812 |
||
4813 |
"/ |implementors| |
|
4814 |
"/ |
|
4815 |
"/ implementors := IdentitySet new. |
|
4816 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
4817 |
"/ implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase). |
|
4818 |
"/ ]. |
|
4819 |
"/ ^ implementors |
|
2811 | 4820 |
! |
4821 |
||
2741 | 4822 |
findInstRefsTo:aString in:aCollectionOfClasses access:accessType |
4823 |
"return all methods in aCollectionOfClasses where the instVar named |
|
4824 |
aString is referenced; |
|
4825 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4826 |
||
4827 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType |
|
4828 |
! |
|
4829 |
||
2677 | 4830 |
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly |
2728 | 4831 |
"return all methods in aCollectionOfClasses where the instVar named |
2677 | 4832 |
aString is referenced; if modsOnly is true, browse only methods where the |
4833 |
instvar is modified" |
|
4834 |
||
4835 |
^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly |
|
4836 |
! |
|
4837 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4838 |
findInstRefsTo:aString inClass:aClass access:accessType |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4839 |
"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
|
4840 |
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
|
4841 |
instvar is modified" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4842 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4843 |
^ 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
|
4844 |
! |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4845 |
|
2728 | 4846 |
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly |
4847 |
"return all methods in aClass where the instVar named |
|
4848 |
aString is referenced; if modsOnly is true, browse only methods where the |
|
4849 |
instvar is modified" |
|
4850 |
||
4851 |
^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly |
|
4852 |
! |
|
4853 |
||
2741 | 4854 |
findInstRefsTo:aString under:aClass access:accessType |
4855 |
"return all methods in aClass and subclasses |
|
4856 |
where the classVar named aString is referenced; |
|
4857 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4858 |
||
4859 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType |
|
4860 |
! |
|
4861 |
||
2677 | 4862 |
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly |
4863 |
"return all methods in aClass and subclasses |
|
4864 |
where the instVar named aString is referenced; |
|
4865 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4866 |
||
4867 |
^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly |
|
4868 |
! |
|
4869 |
||
8129 | 4870 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
3314 | 4871 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
4872 |
containing a string in their source. |
|
4873 |
This may be slow, since source-code has to be scanned." |
|
8129 | 4874 |
|
4875 |
^ self |
|
4876 |
findSpecMethodsFor:#menu |
|
4877 |
withString:aString |
|
4878 |
in:aCollectionOfClasses |
|
4879 |
ignoreCase:ignoreCase |
|
4880 |
! |
|
4881 |
||
4882 |
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
4883 |
"return a collection of all menu-spec methods in aCollectionOfClasses |
|
4884 |
containing a string in their source. |
|
4885 |
This may be slow, since source-code has to be scanned." |
|
4886 |
||
4887 |
^ self |
|
4888 |
findSpecMethodsFor:#menu |
|
4889 |
withString:aString |
|
4890 |
in:aCollectionOfClasses |
|
4891 |
ignoreCase:ignoreCase |
|
4892 |
match:doMatch |
|
3314 | 4893 |
! |
4894 |
||
11934 | 4895 |
findPoolVarRefsTo:aString inClass:aClass access:accessType |
4896 |
"return all methods in aClass where the pool variable named aString is referenced; |
|
4897 |
if modsOnly is true, browse only methods where the classvar is modified" |
|
4898 |
||
4899 |
|filter| |
|
4900 |
||
4901 |
filter := self |
|
4902 |
filterToSearchRefsTo:aString |
|
4903 |
instVars:false classVars:false globals:false poolVars:true |
|
4904 |
access:accessType. |
|
4905 |
||
4906 |
^ self findMethodsIn:(Array with:aClass) inst:true class:true where:filter. |
|
4907 |
! |
|
4908 |
||
2736
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4909 |
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
|
4910 |
"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
|
4911 |
varName is referenced; |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4912 |
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
|
4913 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4914 |
|filter| |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4915 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4916 |
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
|
4917 |
^ 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
|
4918 |
|
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4919 |
" |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4920 |
self |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4921 |
findRefsTo:'x' |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4922 |
classVars:false |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4923 |
in:(Array with:Point) |
5b585170e14a
added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents:
2729
diff
changeset
|
4924 |
modificationsOnly:true |
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 |
|
2677 | 4928 |
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly |
4929 |
"return a list of all methods in aCollectionOfClasses where the instVar/classVar named |
|
4930 |
varName is referenced; |
|
4931 |
if modsOnly is true, browse only methods where the instvar is modified" |
|
4932 |
||
4933 |
|filter| |
|
4934 |
||
4935 |
filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly. |
|
4936 |
^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter. |
|
4937 |
||
4938 |
" |
|
4939 |
self |
|
4940 |
findRefsTo:'x' |
|
4941 |
classVars:false |
|
4942 |
in:(Array with:Point) |
|
4943 |
modificationsOnly:true |
|
4944 |
" |
|
4945 |
! |
|
4946 |
||
2692 | 4947 |
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses |
4948 |
"return a collection of all methods in aCollectionOfClasses |
|
4949 |
containing a resource." |
|
4950 |
||
4951 |
|searchBlock| |
|
4952 |
||
4953 |
aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[ |
|
4954 |
searchBlock := [:c :m :sel | |resources| |
|
4955 |
(resources := m resources) size > 0 |
|
4956 |
and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols] |
|
4957 |
]. |
|
4958 |
] ifFalse:[ |
|
4959 |
searchBlock := [:c :m :sel | |resources| |
|
4960 |
(resources := m resources) size > 0 |
|
4961 |
and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols] |
|
4962 |
]. |
|
4963 |
]. |
|
4964 |
||
4965 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
4966 |
||
4967 |
" |
|
4968 |
SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses) |
|
4969 |
SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses) |
|
4970 |
SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses) |
|
4971 |
" |
|
4972 |
! |
|
4973 |
||
10188
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4974 |
findResource:aStringOrEmpty match:doMatch ignoreCase:ignoreCase in:aCollectionOfClasses |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4975 |
"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
|
4976 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4977 |
|matchCheck lcSearchString| |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4978 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4979 |
aStringOrEmpty isEmptyOrNil ifTrue:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4980 |
matchCheck := [:aResourceName | true ] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4981 |
] ifFalse:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4982 |
doMatch ifTrue:[ |
13438 | 4983 |
matchCheck := [:aResourceName | aStringOrEmpty match:aResourceName caseSensitive:ignoreCase not] |
10188
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4984 |
] ifFalse:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4985 |
ignoreCase ifTrue:[ |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4986 |
lcSearchString := aStringOrEmpty asLowercase. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4987 |
matchCheck := [:aResourceName | aResourceName asLowercase = lcSearchString] |
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 |
matchCheck := [:aResourceName | aResourceName = aStringOrEmpty ] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4990 |
] |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4991 |
]. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4992 |
]. |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4993 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4994 |
^ self |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4995 |
findMethodsIn:aCollectionOfClasses |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4996 |
where:[:c :m :sel | |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
4997 |
m hasResource |
12073 | 4998 |
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
|
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 |
" |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5002 |
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
|
5003 |
" |
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5004 |
|
95e82ec734ff
added: #findResource:match:ignoreCase:in:
Claus Gittinger <cg@exept.de>
parents:
10173
diff
changeset
|
5005 |
"Created: / 06-07-2011 / 12:14:24 / cg" |
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 |
|
16586 | 5008 |
findRespondersOfAll:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
5009 |
"search for all classes which respond to all of the selectors in aCollectionOfSelectors. |
|
5010 |
Search within the classes contained in aCollectionOfClasses and their metaclasses. |
|
5011 |
This will skip over unloaded classes. |
|
5012 |
Return a collection of classes." |
|
5013 |
||
5014 |
^ Smalltalk allClasses |
|
5015 |
select:[:cls | |
|
5016 |
cls isLoaded |
|
5017 |
and:[ aCollectionOfSelectors conform:[:sel | cls canUnderstand:sel]]]. |
|
5018 |
||
5019 |
" |
|
5020 |
to find classes which respond to both indexOf: and replaceFromIndex:toIndex:, |
|
5021 |
use: |
|
5022 |
SystemBrowser |
|
5023 |
findRespondersOfAll:#( indexOf: removeFromIndex:toIndex: ) |
|
5024 |
in:nil |
|
5025 |
ignoreCase:false |
|
5026 |
" |
|
5027 |
! |
|
5028 |
||
2642 | 5029 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase |
5030 |
"search for all senders of aSelector in |
|
16586 | 5031 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2642 | 5032 |
Return a collection of methods" |
5033 |
||
4270 | 5034 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true |
2642 | 5035 |
|
5036 |
" |
|
5037 |
SystemBrowser findSendersOf:#+ |
|
5038 |
in:(Array with:Number |
|
5039 |
with:Float |
|
5040 |
with:SmallInteger) |
|
5041 |
ignoreCase:false |
|
5042 |
" |
|
4270 | 5043 |
! |
5044 |
||
5045 |
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5046 |
"search for all senders of aSelector in |
|
16586 | 5047 |
the classes contained in aCollectionOfClasses and their metaclasses. |
4270 | 5048 |
Return a collection of methods" |
5049 |
||
5050 |
^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5051 |
||
5052 |
" |
|
5053 |
SystemBrowser findSendersOf:#+ |
|
5054 |
in:(Array with:Number |
|
5055 |
with:Float |
|
5056 |
with:SmallInteger) |
|
5057 |
ignoreCase:false |
|
5058 |
" |
|
2675 | 5059 |
! |
5060 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5061 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5062 |
"search for all senders of aSelector in aCollectionOfMethods. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5063 |
Return a collection of methods" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5064 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5065 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5066 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5067 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase. |
9313
44795fcbf414
changed: #findSendersOf:inMethods:ignoreCase:
Claus Gittinger <cg@exept.de>
parents:
9312
diff
changeset
|
5068 |
searchBlock isNil ifTrue:[^ #() ]. |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5069 |
^ 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
|
5070 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5071 |
|
4350 | 5072 |
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5073 |
"search for all senders of aSelector in aCollectionOfMethods. |
|
5074 |
Return a collection of methods" |
|
5075 |
||
5076 |
|searchBlock| |
|
5077 |
||
5078 |
searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch. |
|
9312
71f84182390a
changed: #findSendersOf:inMethods:ignoreCase:match:
Claus Gittinger <cg@exept.de>
parents:
9189
diff
changeset
|
5079 |
searchBlock isNil ifTrue:[^ #() ]. |
4350 | 5080 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
5081 |
! |
|
5082 |
||
2811 | 5083 |
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase |
5084 |
"search for all senders of any selector in aCollectionOfSelectors in |
|
16586 | 5085 |
the classes contained in aCollectionOfClasses and their metaclasses. |
2811 | 5086 |
Return a collection of methods. |
5087 |
CAVEAT: searches multiple times (could be tuned alot if heavily used)" |
|
5088 |
||
6052 | 5089 |
^ aCollectionOfSelectors |
5090 |
collectAll:[:eachSelector | |
|
6184 | 5091 |
(self allCallsOn:eachSelector |
6052 | 5092 |
in:aCollectionOfClasses |
5093 |
ignoreCase:ignoreCase |
|
6184 | 5094 |
match:false) asSet. |
6052 | 5095 |
]. |
5096 |
||
5097 |
"/ |allSenders| |
|
5098 |
"/ |
|
5099 |
"/ allSenders := IdentitySet new. |
|
5100 |
"/ aCollectionOfSelectors do:[:eachSelector | |
|
5101 |
"/ allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true) |
|
5102 |
"/ ]. |
|
5103 |
"/ ^ allSenders |
|
2811 | 5104 |
|
5105 |
" |
|
5106 |
SystemBrowser findSendersOfAny:#(#'+' #'-') |
|
5107 |
in:(Array with:Number |
|
5108 |
with:Float |
|
5109 |
with:SmallInteger) |
|
5110 |
ignoreCase:false |
|
5111 |
" |
|
5112 |
! |
|
5113 |
||
3314 | 5114 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5115 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
5116 |
containing a string in their source. |
|
5117 |
This may be slow, since source-code has to be scanned." |
|
5118 |
||
8129 | 5119 |
self |
5120 |
findSpecMethodsFor:specSymbol |
|
5121 |
withString:aString |
|
5122 |
in:aCollectionOfClasses |
|
5123 |
ignoreCase:ignoreCase |
|
5124 |
match:true |
|
5125 |
! |
|
5126 |
||
5127 |
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
|
5128 |
"return a collection of all specSymbol-spec methods in aCollectionOfClasses |
|
5129 |
containing a string in their source. |
|
5130 |
This may be slow, since source-code has to be scanned." |
|
5131 |
||
5132 |
|searchBlock innerSearchBlock| |
|
5133 |
||
5134 |
innerSearchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch. |
|
5135 |
||
5136 |
searchBlock := [:c :m :sel | |
|
5137 |
|resources| |
|
3314 | 5138 |
|
5139 |
((resources := m resources) size > 0 |
|
5140 |
and:[resources includesKey:specSymbol]) ifTrue:[ |
|
8129 | 5141 |
innerSearchBlock value:c value:m value:sel |
3314 | 5142 |
] |
8129 | 5143 |
]. |
5144 |
||
3314 | 5145 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
5146 |
! |
|
5147 |
||
8129 | 5148 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase |
5243 | 5149 |
"return a collection of all methods in aCollectionOfClasses |
2675 | 5150 |
containing a string in their source. |
5151 |
This may be slow, since source-code has to be scanned." |
|
8129 | 5152 |
|
5153 |
^ self |
|
5154 |
findString:aString |
|
5155 |
in:aCollectionOfClasses |
|
5156 |
ignoreCase:ignoreCase |
|
5157 |
match:true |
|
5158 |
||
5159 |
" |
|
5160 |
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
|
5161 |
" |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5162 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5163 |
|
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5164 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5243 | 5165 |
"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
|
5166 |
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
|
5167 |
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
|
5168 |
|
16691 | 5169 |
^ self findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
5170 |
||
5171 |
" |
|
5172 |
SystemBrowser |
|
5173 |
findString:'should' |
|
5174 |
in:(Array with:Object) |
|
5175 |
ignoreCase:false |
|
5176 |
" |
|
5177 |
! |
|
5178 |
||
5179 |
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5180 |
"return a collection of all methods in aCollectionOfClasses |
|
5181 |
containing a string in their source. |
|
5182 |
This may be slow, since source-code has to be scanned." |
|
5183 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5184 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5185 |
|
16691 | 5186 |
searchBlock := |
5187 |
self |
|
5188 |
searchBlockForString:aString |
|
5189 |
ignoreCase:ignoreCase |
|
5190 |
match:doMatch |
|
5191 |
fullWordsOnly:fullWordsOnly. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5192 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5193 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5194 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5195 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5196 |
" |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5197 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5198 |
|
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5199 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
5243 | 5200 |
"return a collection of all methods in aCollectionOfClasses |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5201 |
containing a string in their source. |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5202 |
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
|
5203 |
|
16691 | 5204 |
^ self findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
5205 |
! |
|
5206 |
||
5207 |
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5208 |
"return a collection of all methods in aCollectionOfClasses |
|
5209 |
containing a string in their source. |
|
5210 |
This may be slow, since source-code has to be scanned." |
|
5211 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5212 |
|searchBlock| |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5213 |
|
16691 | 5214 |
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
|
5215 |
^ 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
|
5216 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5217 |
|
5877 | 5218 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch |
5219 |
"return a collection of all methods in aCollectionOfClasses |
|
5220 |
containing a string in any of their string-literals." |
|
5221 |
||
16691 | 5222 |
^ self |
5223 |
findStringLiteral:aString in:aCollectionOfClasses |
|
5224 |
ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
|
5225 |
||
5226 |
" |
|
5227 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5228 |
" |
|
5229 |
! |
|
5230 |
||
5231 |
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5232 |
"return a collection of all methods in aCollectionOfClasses |
|
5233 |
containing a string in any of their string-literals." |
|
5234 |
||
5877 | 5235 |
|searchBlock| |
5236 |
||
16691 | 5237 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly. |
5877 | 5238 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
5239 |
||
5240 |
" |
|
5241 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5242 |
" |
|
5243 |
! |
|
5244 |
||
5245 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch |
|
5246 |
"return a collection of all methods in aCollectionOfClasses |
|
5247 |
containing a string in any of their string-literals." |
|
5248 |
||
16691 | 5249 |
^ self |
5250 |
findStringLiteral:aString inMethods:aCollectionOfMethods |
|
5251 |
ignoreCase:ignoreCase match:doMatch fullWordsOnly:false |
|
5252 |
! |
|
5253 |
||
5254 |
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly |
|
5255 |
"return a collection of all methods in aCollectionOfClasses |
|
5256 |
containing a string in any of their string-literals." |
|
5257 |
||
5877 | 5258 |
|searchBlock| |
5259 |
||
16691 | 5260 |
searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch fullWordsOnly:fullWordsOnly. |
5877 | 5261 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
5262 |
! |
|
5263 |
||
9482 | 5264 |
findUsingParseTreeSearcher:searcher in:aCollectionOfClasses |
5265 |
"return a collection of all methods in aCollectionOfClasses |
|
5266 |
containing an exception raiser. |
|
5267 |
This may be slow, since source-code has to be scanned." |
|
5268 |
||
5269 |
|searchBlock| |
|
5270 |
||
5271 |
searchBlock := self searchBlockForParseTreeSearcher:searcher isMethod:false. |
|
5272 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
5273 |
^ self findMethodsIn:aCollectionOfClasses where:searchBlock. |
|
5274 |
||
5275 |
"Created: / 11-05-2010 / 16:18:36 / cg" |
|
5276 |
! |
|
5277 |
||
5278 |
findUsingParseTreeSearcher:searcher inMethods:aCollectionOfMethods |
|
5279 |
"return a collection of all methods in aCollectionOfClasses |
|
5280 |
containing an exception raiser. |
|
5281 |
This may be slow, since source-code has to be scanned." |
|
5282 |
||
5283 |
|searchBlock| |
|
5284 |
||
5285 |
searchBlock := self searchBlockForParseTreeSearcher:searcher isMethod:false. |
|
5286 |
searchBlock isNil ifTrue:[ ^ nil]. |
|
5287 |
^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector]. |
|
5288 |
||
5289 |
"Created: / 11-05-2010 / 16:20:12 / cg" |
|
5290 |
! |
|
5291 |
||
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5292 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase |
4270 | 5293 |
^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true |
5294 |
! |
|
5295 |
||
16337 | 5296 |
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatchArg |
5297 |
"return an optimized search block for the senders search. |
|
5298 |
Because this highly affects the speed of the senders-search in the browser, |
|
5299 |
specialized blocks are returned, depending on whether a selector-match or casesensitive |
|
5300 |
search is wanted |
|
5301 |
(these operations are executed a zillion times in an inner loop, |
|
5302 |
therefore, the speedup is noticable)" |
|
5303 |
||
16462 | 5304 |
|doMatch sel quickSearch idx| |
16337 | 5305 |
|
5306 |
doMatch := doMatchArg. |
|
5307 |
(doMatch and:[aSelectorString = '*']) ifTrue:[ |
|
5308 |
"a trivial block, which matches everything" |
|
5309 |
^ [:class :method :s | true]. |
|
5310 |
]. |
|
5311 |
||
5312 |
aSelectorString includesMatchCharacters ifFalse:[ |
|
5313 |
doMatch := false |
|
5314 |
]. |
|
5315 |
||
5316 |
(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
|
5317 |
"/ a matchString or ignoreCase - need string matching procedure |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5318 |
|
16337 | 5319 |
quickSearch := aSelectorString. |
5320 |
(quickSearch startsWith:'*') ifTrue:[ |
|
5321 |
quickSearch := quickSearch copyButFirst |
|
5322 |
]. |
|
5323 |
(quickSearch endsWith:'*') ifTrue:[ |
|
5324 |
quickSearch := quickSearch copyButLast |
|
5325 |
]. |
|
16395 | 5326 |
|
5327 |
"/ for keyword selector searches, only look for the first KW-part in the quicksearch |
|
5328 |
"/ for matches, only look for substrings up to the first match character |
|
5329 |
(idx := quickSearch indexOfAny:'*#[:') ~~ 0 ifTrue:[ |
|
5330 |
quickSearch := quickSearch copyTo:idx-1. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5331 |
]. |
16395 | 5332 |
|
16337 | 5333 |
(ignoreCase and:[quickSearch includesMatchCharacters not]) ifTrue:[ |
5334 |
doMatch ifFalse:[ |
|
5335 |
^ [:class :methodArg :s | |
|
16462 | 5336 |
|method src inLiterals skip| |
16395 | 5337 |
|
5338 |
inLiterals := skip := false. |
|
16337 | 5339 |
method := methodArg originalMethodIfWrapped. |
5340 |
method isLazyMethod ifTrue:[ |
|
5341 |
src := method source. |
|
5342 |
(src notNil and:[src includesString:aSelectorString caseSensitive:false]) ifTrue:[ |
|
5343 |
method makeRealMethod. |
|
16395 | 5344 |
] ifFalse:[ |
5345 |
skip := true |
|
5346 |
]. |
|
5347 |
]. |
|
5348 |
skip ifFalse:[ |
|
16462 | 5349 |
inLiterals := |
5350 |
(method |
|
5351 |
literalsDetect:[:aLiteral| |
|
5352 |
(aLiteral isMemberOf:Symbol) |
|
5353 |
and:[(aLiteral sameAs:aSelectorString)]] |
|
5354 |
ifNone:nil) notNil |
|
16337 | 5355 |
]. |
5356 |
||
5357 |
inLiterals |
|
5358 |
and:[ |
|
5359 |
method messagesSent contains:[:msg | msg sameAs:aSelectorString ] |
|
5360 |
] |
|
5361 |
]. |
|
5362 |
]. |
|
5363 |
||
5364 |
^ [:class :methodArg :s | |
|
16462 | 5365 |
|method src inLiterals skip| |
16395 | 5366 |
|
5367 |
inLiterals := skip := false. |
|
16337 | 5368 |
method := methodArg originalMethodIfWrapped. |
5369 |
method isLazyMethod ifTrue:[ |
|
5370 |
src := method source. |
|
5371 |
(src notNil and:[src includesString:quickSearch caseSensitive:false]) ifTrue:[ |
|
5372 |
method makeRealMethod. |
|
16395 | 5373 |
] ifFalse:[ |
5374 |
skip := true |
|
5375 |
]. |
|
5376 |
]. |
|
5377 |
skip ifFalse:[ |
|
16462 | 5378 |
inLiterals := |
5379 |
(method |
|
5380 |
literalsDetect:[:aLiteral| |
|
5381 |
(aLiteral isMemberOf:Symbol) |
|
5382 |
and:[(aLiteral includesString:quickSearch caseSensitive:false) |
|
5383 |
and:[(aSelectorString match:aLiteral caseSensitive:false)]]] |
|
5384 |
ifNone:nil) notNil |
|
16337 | 5385 |
]. |
5386 |
||
5387 |
inLiterals |
|
5388 |
and:[ |
|
16462 | 5389 |
method messagesSent |
5390 |
contains:[:sel | aSelectorString match:aSelectorString caseSensitive:false] |
|
16337 | 5391 |
] |
5392 |
]. |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5393 |
]. |
16337 | 5394 |
|
5395 |
(ignoreCase or:[quickSearch includesMatchCharacters]) ifFalse:[ |
|
5396 |
^ [:class :methodArg :s | |
|
16395 | 5397 |
|method src inLiterals skip| |
5398 |
||
5399 |
inLiterals := skip := false. |
|
16337 | 5400 |
method := methodArg originalMethodIfWrapped. |
5401 |
method isLazyMethod ifTrue:[ |
|
5402 |
src := method source. |
|
5403 |
(src notNil and:[src includesString:quickSearch]) ifTrue:[ |
|
5404 |
method makeRealMethod. |
|
16395 | 5405 |
] ifFalse:[ |
5406 |
skip := true |
|
5407 |
]. |
|
5408 |
]. |
|
5409 |
skip ifFalse:[ |
|
16462 | 5410 |
inLiterals := |
5411 |
(method |
|
5412 |
literalsDetect:[:aLiteral| |
|
5413 |
(aLiteral isMemberOf:Symbol) |
|
5414 |
and:[(aLiteral includesString:quickSearch) |
|
5415 |
and:[(aSelectorString match:aLiteral)]]] |
|
5416 |
ifNone:nil) notNil |
|
16337 | 5417 |
]. |
5418 |
inLiterals and:[ method messagesSent includes:aSelectorString] |
|
5419 |
]. |
|
5420 |
]. |
|
5421 |
^ [:class :methodArg :s | |
|
16395 | 5422 |
|method src inLiterals skip| |
16337 | 5423 |
|
5424 |
method := methodArg originalMethodIfWrapped. |
|
5425 |
"/ expensive search |
|
16395 | 5426 |
inLiterals := skip := false. |
16337 | 5427 |
method isLazyMethod ifTrue:[ |
5428 |
src := method source. |
|
5429 |
(src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[ |
|
5430 |
method makeRealMethod. |
|
16395 | 5431 |
] ifFalse:[ |
5432 |
skip := true. |
|
5433 |
]. |
|
5434 |
]. |
|
5435 |
skip ifFalse:[ |
|
16462 | 5436 |
inLiterals := |
5437 |
(method literalsDetect:[:aLiteral| |
|
5438 |
(aLiteral isMemberOf:Symbol) |
|
5439 |
and:[ aSelectorString match:aLiteral asLowercase caseSensitive:ignoreCase not] |
|
5440 |
] ifNone:nil) notNil |
|
16337 | 5441 |
]. |
5442 |
inLiterals |
|
5443 |
and:[ |
|
5444 |
method messagesSent |
|
16395 | 5445 |
contains:[:anySelector | |
5446 |
aSelectorString match:anySelector caseSensitive:ignoreCase not |
|
5447 |
] |
|
16337 | 5448 |
] |
5449 |
]. |
|
5450 |
]. |
|
5451 |
||
5452 |
"/ no matchString and not ignoring case - can do it much faster |
|
5453 |
sel := aSelectorString asSymbolIfInterned. |
|
5454 |
sel isNil ifTrue:[ |
|
5455 |
^ nil "/ none |
|
5456 |
]. |
|
5457 |
||
5458 |
quickSearch := sel. |
|
16395 | 5459 |
"/ for keyword selector searches, only look for the first KW-part in the quicksearch |
5460 |
(idx := quickSearch indexOf:$:) ~~ 0 ifTrue:[ |
|
5461 |
quickSearch := quickSearch copyTo:idx-1. |
|
16337 | 5462 |
]. |
5463 |
||
5464 |
^ [:class :methodArg :s | |
|
5465 |
|method src| |
|
5466 |
||
5467 |
method := methodArg originalMethodIfWrapped. |
|
5468 |
method isLazyMethod ifTrue:[ |
|
5469 |
src := method source. |
|
5470 |
(src notNil and:[src includesString:quickSearch]) ifTrue:[ |
|
5471 |
method makeRealMethod. |
|
19600
4b1129981eb9
Replace `sends:` with `sendsSelector:` and `sendsAny:` with `sendsAnySelector:`
Jan Vrany <jan.vrany@labware.com>
parents:
18532
diff
changeset
|
5472 |
method referencesLiteral: "sendsSelector:" sel. |
16337 | 5473 |
] ifFalse:[ |
5474 |
false |
|
5475 |
] |
|
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5476 |
] ifFalse:[ |
19600
4b1129981eb9
Replace `sends:` with `sendsSelector:` and `sendsAny:` with `sendsAnySelector:`
Jan Vrany <jan.vrany@labware.com>
parents:
18532
diff
changeset
|
5477 |
method sendsSelector:sel |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5478 |
] |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5479 |
]. |
10416
82d17ccb68ad
changed: #searchBlockForAllCallsOn:ignoreCase:match:
Claus Gittinger <cg@exept.de>
parents:
10386
diff
changeset
|
5480 |
|
82d17ccb68ad
changed: #searchBlockForAllCallsOn:ignoreCase:match:
Claus Gittinger <cg@exept.de>
parents:
10386
diff
changeset
|
5481 |
"Modified: / 28-07-2011 / 10:52:51 / cg" |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5482 |
! |
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5483 |
|
9879 | 5484 |
searchBlockForCode:aCodeString in:aCollectionOfClasses isMethod:isMethod |
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5485 |
"return a block to search for a piece of code. |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5486 |
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
|
5487 |
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
|
5488 |
- 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
|
5489 |
methods which also send all those messages, |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5490 |
- 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
|
5491 |
methods which also refer to those globals" |
5094 | 5492 |
|
11638
344d7d06f1d2
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
11506
diff
changeset
|
5493 |
|errAction searchTree searcher globalVariablesUsed usedSymbols usedStrings |
9879 | 5494 |
sentMessages searchBlock foundMatch numMethodArgs methodSelector nameSpacesForGlobals| |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5495 |
|
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5496 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5497 |
"/rule := ParseTreeLintRule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5498 |
"/ createParseTreeRule: (Array with: aCodeString) |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5499 |
"/ method: isMethod |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5500 |
"/ name: 'Search for: ' , aCodeString. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5501 |
"/self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5502 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5503 |
"/ searchBlock := [:c :m :sel | |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5504 |
"/ rslt := SmalllintChecker |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5505 |
"/ runRule:rule |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5506 |
"/ 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
|
5507 |
"/ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5508 |
"/ self halt. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5509 |
"/ ]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5510 |
"/^ searchBlock. |
5226 | 5511 |
|
16597 | 5512 |
errAction := |
5513 |
[:errMsg :pos | |
|
5514 |
Dialog warn:('Error during pattern parse: %1 (position %2)' |
|
5515 |
bindWith:errMsg with:pos). |
|
5516 |
^ nil |
|
5517 |
]. |
|
5094 | 5518 |
|
5519 |
isMethod ifTrue:[ |
|
5520 |
searchTree := RBParser |
|
5521 |
parseRewriteMethod:aCodeString |
|
5226 | 5522 |
onError: errAction. |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
5523 |
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
|
5524 |
methodSelector := searchTree selector. |
5094 | 5525 |
] ifFalse:[ |
5526 |
searchTree := RBParser |
|
5527 |
parseRewriteExpression:aCodeString |
|
5226 | 5528 |
onError: errAction. |
5094 | 5529 |
]. |
16529 | 5530 |
|
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5531 |
"/ extract messages sent by the pattern |
6368 | 5532 |
Error handle:[:ex | |
12837 | 5533 |
self halt:'check this, please'. |
6368 | 5534 |
] do:[ |
6549 | 5535 |
sentMessages := searchTree sentMessages. |
5135 | 5536 |
]. |
6581 | 5537 |
|
9879 | 5538 |
nameSpacesForGlobals := Set with:Smalltalk. |
5539 |
aCollectionOfClasses do:[:eachClass | |
|
5540 |
nameSpacesForGlobals add:eachClass topNameSpace |
|
5541 |
]. |
|
5542 |
||
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5543 |
"/ extract globals used by the pattern |
9879 | 5544 |
globalVariablesUsed := OrderedCollection new. |
5545 |
searchTree referencedVariables do:[:node | |
|
5546 |
|nm ns alternatives| |
|
5547 |
||
5548 |
node isPatternNode ifFalse:[ |
|
5549 |
nm := node name. |
|
5550 |
ns := nameSpacesForGlobals detect:[:ns | ns includesKey: nm asSymbol] ifNone:nil. |
|
5551 |
ns notNil ifTrue:[ |
|
5552 |
alternatives := OrderedCollection new. |
|
5553 |
nm asSymbolIfInterned notNil ifTrue:[ alternatives add: nm asSymbol ]. |
|
5554 |
('Smalltalk::',nm) asSymbolIfInterned notNil ifTrue:[ alternatives add: ('Smalltalk::',nm) asSymbol ]. |
|
5555 |
(ns name,'::',nm) asSymbolIfInterned notNil ifTrue:[ alternatives add: (ns name,'::',nm) asSymbol ]. |
|
5556 |
nm asSymbolIfInterned notNil ifTrue:[ alternatives add: nm asSymbol ]. |
|
5557 |
globalVariablesUsed add:alternatives |
|
5558 |
]. |
|
5559 |
] |
|
5560 |
]. |
|
5135 | 5561 |
|
10546
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5562 |
"/ sorry: |
174df6f8a170
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
10416
diff
changeset
|
5563 |
"/ cannot use literals to speedup the search, because stc does not store |
12056 | 5564 |
"/ constants in the literal-array. However, we can do a string search on |
5565 |
"/ them, to avoid parsing. |
|
5566 |
usedSymbols := searchTree usedSymbols. |
|
5567 |
usedStrings := searchTree usedLiterals select:[:lit | lit isString]. |
|
7395 | 5568 |
|
5094 | 5569 |
searcher := ParseTreeSearcher new. |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5570 |
isMethod ifTrue:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5571 |
searcher |
8281
67f0cd20adf0
method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents:
8158
diff
changeset
|
5572 |
matchesMethod:aCodeString |
5256
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5573 |
do:[:aNode :answer | foundMatch := true]. |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5574 |
] ifFalse:[ |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5575 |
searcher |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5576 |
matchesTree:searchTree |
c37bc91f2460
better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents:
5254
diff
changeset
|
5577 |
do:[:aNode :answer | foundMatch := true]. |
6303 | 5578 |
]. |
16529 | 5579 |
searcher computeQuickSearchStrings. |
5094 | 5580 |
|
16597 | 5581 |
searchBlock := |
5582 |
[:c :m :sel | |
|
5583 |
|isSTCCompiled allSelectorsInLiteralArray allMessagesSent |
|
5584 |
allGlobalsReferenced allUsedSymbolsInLiteralArray allStringsInLiteralArray |
|
5585 |
allSent src rslt parseTree |
|
5586 |
literalsInMethod| |
|
5587 |
||
5588 |
foundMatch := false. |
|
5589 |
||
5590 |
"/ can speedup the search, by filtering for number of message-args first... |
|
5591 |
(isMethod not |
|
5592 |
or:[ numMethodArgs isNil |
|
5593 |
or:[ numMethodArgs == m numArgs ]]) ifTrue:[ |
|
5594 |
m isLazyMethod ifTrue:[ |
|
5595 |
src := m source. |
|
5596 |
src notNil ifTrue:[ |
|
5597 |
m makeRealMethod. |
|
5598 |
]. |
|
5599 |
]. |
|
5600 |
"/ can speedup the search, by quickly filtering for sent messages... |
|
5601 |
literalsInMethod := m literals. |
|
5602 |
allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ literalsInMethod includesAll:sentMessages ]. |
|
5603 |
allSelectorsInLiteralArray ifTrue:[ |
|
5604 |
"/ and used symbols/globals first... |
|
5605 |
allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ literalsInMethod includesAll:usedSymbols ]. |
|
5606 |
allUsedSymbolsInLiteralArray ifTrue:[ |
|
16600 | 5607 |
"/ if ANY string is in match, ANY string must be in method (not true, but I am lazy) |
16597 | 5608 |
"/ that does not work for stc compiled code, because it does not put strings into the literal array |
5609 |
isSTCCompiled := m byteCode isNil. |
|
5610 |
isSTCCompiled ifTrue:[ |
|
5611 |
allStringsInLiteralArray := true. "/ stc-compiled: don't know |
|
5612 |
] ifFalse:[ |
|
5613 |
allStringsInLiteralArray := usedStrings isEmptyOrNil |
|
5614 |
or:[ literalsInMethod includesAll:usedStrings "literalsInMethod contains:[:lit | lit isString]" ]. |
|
5615 |
]. |
|
5616 |
allStringsInLiteralArray ifTrue:[ |
|
5617 |
allGlobalsReferenced := globalVariablesUsed conform:[:varNames | varNames contains:[:varName | m referencesGlobal:varName]]. |
|
5618 |
allGlobalsReferenced ifTrue:[ |
|
16600 | 5619 |
allMessagesSent := sentMessages isEmptyOrNil |
5620 |
or:[ m messagesSent includesAll:sentMessages ]. |
|
16597 | 5621 |
allMessagesSent ifTrue:[ |
16600 | 5622 |
src := m source. |
5623 |
src isNil ifTrue:[ |
|
5624 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
5625 |
] ifFalse:[ |
|
5626 |
isSTCCompiled ifTrue:[ |
|
5627 |
usedStrings notEmptyOrNil ifTrue:[ |
|
5628 |
"/ now that we have the source, scan the source for the literal strings, |
|
5629 |
"/ before doing a slow parse |
|
5630 |
allStringsInLiteralArray := usedStrings conform:[:eachString | src includesString:eachString]. |
|
5631 |
] |
|
5632 |
]. |
|
5633 |
allStringsInLiteralArray ifTrue:[ |
|
5634 |
(searcher canQuicklyReject:src) ifTrue:[ |
|
5635 |
"/ Transcript show:'qReject: '; showCR:m whoString. |
|
5636 |
] ifFalse:[ |
|
5637 |
"/ the rest is done by the slower RB-match process... |
|
5638 |
parseTree := |
|
5639 |
RBParser |
|
5640 |
parseSearchMethod:src |
|
5641 |
onError: [:str :pos | |
|
5642 |
"/ self halt. |
|
5643 |
Transcript show:'Error during search in '; showCR:m. |
|
5644 |
Transcript showCR:str. |
|
5645 |
Transcript showCR:pos. |
|
5646 |
nil |
|
5647 |
]. |
|
5648 |
||
5649 |
parseTree notNil ifTrue:[ |
|
5650 |
searcher executeTree:parseTree. |
|
5651 |
"/ notice: searcher sets foundMatch !! |
|
16597 | 5652 |
]. |
5653 |
]. |
|
16600 | 5654 |
]. |
5251
847d633792ce
tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents:
5243
diff
changeset
|
5655 |
] |
5135 | 5656 |
] |
6581 | 5657 |
] |
16597 | 5658 |
] |
5659 |
] |
|
5660 |
] |
|
5661 |
]. |
|
5662 |
foundMatch. |
|
5663 |
]. |
|
5094 | 5664 |
^ searchBlock. |
7395 | 5665 |
|
9879 | 5666 |
"Created: / 02-05-2011 / 13:25:01 / sr" |
11638
344d7d06f1d2
changed: #searchBlockForCode:in:isMethod:
Claus Gittinger <cg@exept.de>
parents:
11506
diff
changeset
|
5667 |
"Modified: / 20-07-2012 / 19:07:36 / cg" |
9879 | 5668 |
! |
5669 |
||
5670 |
searchBlockForCode:aCodeString isMethod:isMethod |
|
5671 |
"return a block to search for a piece of code (intelligent search)." |
|
5672 |
||
5673 |
^ self searchBlockForCode:aCodeString in:#() isMethod:isMethod |
|
5674 |
||
5675 |
"Modified: / 02-05-2011 / 13:26:18 / sr" |
|
5094 | 5676 |
! |
5677 |
||
9482 | 5678 |
searchBlockForParseTreeSearcher:searcher isMethod:isMethod |
5679 |
"return a block to search for a piece of code (intelligent search)." |
|
5680 |
||
5681 |
|errAction searchBlock foundMatch| |
|
5682 |
||
5683 |
errAction := [:str :pos | |
|
5684 |
Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'. |
|
5685 |
^ nil |
|
5686 |
]. |
|
5687 |
||
5688 |
searchBlock := [:c :m :sel | |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5689 |
|src parseTree| |
9482 | 5690 |
|
5691 |
foundMatch := false. |
|
5692 |
||
5693 |
m isLazyMethod ifTrue:[ |
|
5694 |
src := m source. |
|
5695 |
src notNil ifTrue:[ |
|
5696 |
m makeRealMethod. |
|
5697 |
]. |
|
5698 |
]. |
|
5699 |
||
5700 |
src := m source. |
|
5701 |
src isNil ifTrue:[ |
|
5702 |
('Browser [info]: no source for ' , m printString) infoPrintCR. |
|
5703 |
] ifFalse:[ |
|
5704 |
parseTree := RBParser |
|
5705 |
parseSearchMethod:src |
|
5706 |
onError: [:str :pos | |
|
5707 |
Transcript show:'Error in '; showCR:m. |
|
5708 |
Transcript showCR:str. |
|
5709 |
Transcript showCR:pos. |
|
5710 |
nil]. |
|
5711 |
||
5712 |
parseTree notNil ifTrue:[ |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5713 |
foundMatch := searcher executeTree:parseTree initialAnswer:false. |
9482 | 5714 |
] |
5715 |
]. |
|
5716 |
foundMatch. |
|
5717 |
]. |
|
5718 |
||
5719 |
^ searchBlock. |
|
5720 |
||
5721 |
"Created: / 11-05-2010 / 16:14:25 / cg" |
|
9483
eead021c9729
changed: #searchBlockForParseTreeSearcher:isMethod:
Claus Gittinger <cg@exept.de>
parents:
9482
diff
changeset
|
5722 |
"Modified: / 11-05-2010 / 22:05:09 / cg" |
9482 | 5723 |
! |
5724 |
||
9002 | 5725 |
searchBlockForReferendsOf:aGlobalName |
5726 |
"return a block which searches for all methods which reference a global named aGlobalName, |
|
5727 |
which may be a matchpattern" |
|
5728 |
||
12844 | 5729 |
|globalsPlainName idx sym1 sym2| |
9002 | 5730 |
|
5731 |
globalsPlainName := aGlobalName. |
|
5732 |
(idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[ |
|
5733 |
globalsPlainName := globalsPlainName copyFrom:idx+1. |
|
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5734 |
(globalsPlainName size == 0 or:[globalsPlainName = '*']) ifTrue:[ |
9002 | 5735 |
globalsPlainName := aGlobalName |
5736 |
] |
|
5737 |
]. |
|
5738 |
||
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5739 |
"/ matchingGlobalNames := OrderedCollection new. |
9002 | 5740 |
|
5741 |
aGlobalName includesMatchCharacters ifFalse:[ |
|
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5742 |
sym1 := aGlobalName asSymbolIfInterned. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5743 |
sym2 := globalsPlainName asSymbolIfInterned. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5744 |
(sym1 isNil and:[ sym2 isNil ]) ifTrue:[ |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5745 |
^ [:cls :mthd :sel | false ]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5746 |
]. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5747 |
"/ if any is nil, search for the same |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5748 |
sym1 := sym1 ? sym2. |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5749 |
sym2 := sym2 ? sym1. |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5750 |
|
9002 | 5751 |
^ [:cls :mthd :sel | |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5752 |
|mSource ok m usedGlobals| |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5753 |
|
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5754 |
ok := false. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5755 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5756 |
mthd isLazyMethod ifTrue:[ |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5757 |
mSource := mthd source. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5758 |
(mSource notNil) ifTrue:[ |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5759 |
(mSource includesString:(sym2)) ifTrue:[ |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5760 |
usedGlobals := mthd usedGlobals. |
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5761 |
(usedGlobals includes:sym1) ifTrue:[ |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5762 |
ok := true |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5763 |
] ifFalse:[ |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5764 |
(sym1 ~= sym2 and:[usedGlobals includes:sym2]) ifTrue:[ |
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5765 |
ok := true |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5766 |
] |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5767 |
] |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5768 |
] |
9002 | 5769 |
] |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5770 |
] ifFalse:[ |
13071 | 5771 |
m := mthd originalMethodIfWrapped. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5772 |
((m refersToLiteral:sym1) or:[ sym1 ~= sym2 and:[m refersToLiteral:sym2] ]) ifTrue:[ |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5773 |
usedGlobals := m usedGlobals. |
11964
8670bf08f225
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
11941
diff
changeset
|
5774 |
ok := (usedGlobals includes:sym1) or:[ sym1 ~= sym2 and:[usedGlobals includes:sym2] ] |
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5775 |
]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5776 |
]. |
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5777 |
ok |
9002 | 5778 |
]. |
5779 |
]. |
|
5780 |
||
5781 |
^ [:cls :mthd :sel | |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5782 |
|mSource usedGlobals global m| |
9002 | 5783 |
|
5784 |
"/ kludge: Lazy methods do not include symbols in the literal array - sigh |
|
5785 |
mthd isLazyMethod ifTrue:[ |
|
5786 |
mSource := mthd source. |
|
5787 |
mSource notNil ifTrue:[ |
|
5788 |
usedGlobals := mthd usedGlobals |
|
5789 |
] |
|
5790 |
] ifFalse:[ |
|
13071 | 5791 |
m := mthd originalMethodIfWrapped. |
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5792 |
(m literals contains:[:lit | (aGlobalName match:lit) or:[globalsPlainName match:lit]]) ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5793 |
usedGlobals := m usedGlobals |
9002 | 5794 |
]. |
5795 |
]. |
|
5796 |
usedGlobals notNil ifTrue:[ |
|
5797 |
global := usedGlobals detect:[:lit | aGlobalName match:lit] ifNone:nil. |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5798 |
global isNil ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5799 |
global := usedGlobals detect:[:lit | globalsPlainName match:lit] ifNone:nil. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5800 |
]. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5801 |
"/ global notNil ifTrue:[ |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5802 |
"/ matchingGlobalNames add:global. |
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5803 |
"/ ] |
9002 | 5804 |
]. |
5805 |
global notNil |
|
5806 |
]. |
|
9660
e8b452501452
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
9578
diff
changeset
|
5807 |
|
10386
105f6c60ce2d
changed: #searchBlockForReferendsOf:
Claus Gittinger <cg@exept.de>
parents:
10346
diff
changeset
|
5808 |
"Modified: / 24-07-2011 / 09:50:30 / cg" |
9002 | 5809 |
! |
5810 |
||
16451 | 5811 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatchArg |
5094 | 5812 |
"return a block to search for a string." |
4235
bba308f409dd
images & another special case startup
Claus Gittinger <cg@exept.de>
parents:
4222
diff
changeset
|
5813 |
|
16691 | 5814 |
^ self |
5815 |
searchBlockForString:aString |
|
5816 |
ignoreCase:ignoreCase |
|
5817 |
match:doMatchArg |
|
5818 |
fullWordsOnly:false |
|
5819 |
||
5820 |
" |
|
5821 |
SystemBrowser |
|
5822 |
findString:'should' |
|
5823 |
in:(Array with:Object) |
|
5824 |
ignoreCase:false |
|
5825 |
" |
|
5826 |
! |
|
5827 |
||
5828 |
searchBlockForString:aString ignoreCase:ignoreCase match:doMatchArg fullWordsOnly:fullWordsOnly |
|
5829 |
"return a block to search for a string." |
|
5830 |
||
16468 | 5831 |
|checkBlock lineCheckBlock pattern doMatch |
5832 |
quickCheckString firstMatchIndex lastMatchIndex| |
|
16451 | 5833 |
|
5834 |
doMatch := doMatchArg. |
|
5835 |
aString includesMatchCharacters ifFalse:[ |
|
5836 |
doMatch := false. |
|
5837 |
]. |
|
5838 |
doMatch ifTrue:[ |
|
2675 | 5839 |
"a matchString" |
16468 | 5840 |
pattern := aString. |
5841 |
||
5842 |
firstMatchIndex := aString indexOfAny:'*#['. |
|
5843 |
lastMatchIndex := aString lastIndexOfAny:'*#['. |
|
5844 |
"/ which is longer - left or right part |
|
5845 |
firstMatchIndex-1 "nleft" > (aString size-lastMatchIndex) "nright" ifTrue:[ |
|
5846 |
"/ use left part as quickSearch |
|
5847 |
quickCheckString := aString copyTo:firstMatchIndex-1 |
|
5848 |
] ifFalse:[ |
|
5849 |
"/ use right part as quickSearch |
|
5850 |
quickCheckString := aString copyFrom:lastMatchIndex+1 |
|
5851 |
]. |
|
5852 |
||
16451 | 5853 |
aString first == $* ifFalse:[ |
5854 |
pattern := '*',pattern |
|
5855 |
]. |
|
5856 |
aString last == $* ifFalse:[ |
|
5857 |
pattern := pattern,'*' |
|
5858 |
]. |
|
16468 | 5859 |
"/ when doing a match, be careful to not match acrosss lines |
16691 | 5860 |
lineCheckBlock := [:line | pattern match:line caseSensitive:ignoreCase not]. |
16468 | 5861 |
quickCheckString size > 1 ifTrue:[ |
16691 | 5862 |
checkBlock := [:src | |
5863 |
(src includesString:quickCheckString caseSensitive:ignoreCase not) |
|
5864 |
and:[ (lineCheckBlock value:src) |
|
5865 |
and:[ src asStringCollection contains:lineCheckBlock ]]]. |
|
16468 | 5866 |
] ifFalse:[ |
5867 |
checkBlock := [:src | |
|
5868 |
(lineCheckBlock value:src) |
|
5869 |
and:[ src asStringCollection contains:lineCheckBlock ]]. |
|
5870 |
]. |
|
2675 | 5871 |
] ifFalse:[ |
16691 | 5872 |
checkBlock := [:src | src includesString:aString caseSensitive:ignoreCase not] |
2675 | 5873 |
]. |
16691 | 5874 |
|
16451 | 5875 |
^ [:cls :mthd :sel | |
16691 | 5876 |
|src found idx1 reallyFound ch1 ch2| |
5877 |
||
5878 |
found := false. |
|
16451 | 5879 |
src := mthd source. |
5880 |
src isNil ifTrue:[ |
|
5881 |
('Browser [info]: no source for ' , mthd printString) infoPrintCR. |
|
5882 |
] ifFalse:[ |
|
16691 | 5883 |
found := checkBlock value:src. |
5884 |
(fullWordsOnly and:[found]) ifTrue:[ |
|
5885 |
self halt. |
|
5886 |
doMatch ifTrue:[ |
|
5887 |
||
5888 |
] ifFalse:[ |
|
5889 |
reallyFound := false. |
|
5890 |
idx1 := 0. |
|
5891 |
[ |
|
5892 |
reallyFound not |
|
5893 |
and:[ |
|
5894 |
idx1 := src indexOfSubCollection:aString startingAt:idx1+1 ifAbsent:0 caseSensitive:ignoreCase not. |
|
5895 |
idx1 ~~ 0] |
|
5896 |
] whileTrue:[ |
|
5897 |
"/ see if it is a free-standing word |
|
5898 |
reallyFound := true. |
|
5899 |
idx1 > 1 ifTrue:[ |
|
5900 |
ch1 := src at:idx1-1. |
|
5901 |
(ch1 isLetter or:[ch1 == $_]) ifTrue:[ reallyFound := false]. |
|
5902 |
]. |
|
5903 |
(idx1+aString size-1) < src size ifTrue:[ |
|
5904 |
ch2 := src at:idx1+aString size. |
|
5905 |
(ch2 isLetter or:[ch2 == $_]) ifTrue:[ reallyFound := false]. |
|
5906 |
]. |
|
5907 |
]. |
|
5908 |
found := reallyFound |
|
5909 |
]. |
|
5910 |
]. |
|
5911 |
]. |
|
5912 |
found |
|
16451 | 5913 |
] |
2675 | 5914 |
|
5915 |
" |
|
5916 |
SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false |
|
5917 |
" |
|
4152
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5918 |
! |
92e3975f1904
allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents:
4150
diff
changeset
|
5919 |
|
16451 | 5920 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg |
5877 | 5921 |
"return a block to search for a string-literal." |
5922 |
||
16691 | 5923 |
^ self |
5924 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg |
|
5925 |
fullWordsOnly:false |
|
5926 |
||
5927 |
" |
|
5928 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
5929 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
5930 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
5931 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
5932 |
" |
|
5933 |
! |
|
5934 |
||
5935 |
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatchArg fullWordsOnly:fullWordsOnly |
|
5936 |
"return a block to search for a string-literal." |
|
5937 |
||
16468 | 5938 |
|pattern doMatch checkLiteral checkSource |
5939 |
quickCheckString firstMatchIndex lastMatchIndex| |
|
16451 | 5940 |
|
5941 |
aString isEmpty ifTrue:[^ [:cls :mthd :sel | true ]]. |
|
5942 |
||
5943 |
doMatch := doMatchArg. |
|
5944 |
(aString includesMatchCharacters) ifFalse:[ |
|
5945 |
doMatch := false |
|
5946 |
]. |
|
5947 |
doMatch ifTrue:[ |
|
5877 | 5948 |
"a matchString" |
16451 | 5949 |
pattern := aString. |
5950 |
aString first == $* ifFalse:[ |
|
5951 |
pattern := '*',pattern |
|
5952 |
]. |
|
5953 |
aString last == $* ifFalse:[ |
|
5954 |
pattern := pattern,'*' |
|
5955 |
]. |
|
16462 | 5956 |
checkLiteral := [:lit | pattern match:lit caseSensitive:ignoreCase not]. |
5957 |
firstMatchIndex := aString indexOfAny:'*#['. |
|
5958 |
lastMatchIndex := aString lastIndexOfAny:'*#['. |
|
16468 | 5959 |
"/ which is longer - left or right part? |
16462 | 5960 |
firstMatchIndex-1 "nleft" > (aString size-lastMatchIndex) "nright" ifTrue:[ |
5961 |
"/ use left part as quickSearch |
|
5962 |
quickCheckString := aString copyTo:firstMatchIndex-1 |
|
5963 |
] ifFalse:[ |
|
5964 |
"/ use right part as quickSearch |
|
5965 |
quickCheckString := aString copyFrom:lastMatchIndex+1 |
|
5966 |
]. |
|
5967 |
quickCheckString size > 1 ifTrue:[ |
|
5968 |
checkSource := [:src | src includesString:quickCheckString caseSensitive:ignoreCase not] |
|
5969 |
] ifFalse:[ |
|
5970 |
checkSource := [:src | true]. "/ not worth the effort |
|
5971 |
]. |
|
5877 | 5972 |
] ifFalse:[ |
5891 | 5973 |
ignoreCase ifTrue:[ |
16462 | 5974 |
checkLiteral := [:lit | lit includesString:aString caseSensitive:true]. |
5975 |
checkSource := [:src | src includesString:aString caseSensitive:true]. |
|
5891 | 5976 |
] ifFalse:[ |
16462 | 5977 |
checkLiteral := [:lit | lit includesString:aString]. |
5978 |
checkSource := [:src | src includesString:aString]. |
|
16451 | 5979 |
]. |
5877 | 5980 |
]. |
16451 | 5981 |
|
16462 | 5982 |
^ [:cls :methodArg :sel | |
5983 |
"/ sorry: the following does not work, because stc does not place string-constants |
|
5984 |
"/ into the literals. |
|
5985 |
"/ (mthd literalsDetect:[:lit | |
|
5986 |
"/ lit isString |
|
5987 |
"/ and:[ lit isSymbol not |
|
5988 |
"/ and:[ checkLiteral value:lit ]] |
|
5989 |
"/ ] ifNone:[nil]) |
|
5990 |
"/ notNil |
|
5991 |
"/ so we must parse here (sigh) |
|
5992 |
||
5993 |
|method src skip tree found| |
|
5994 |
||
5995 |
skip := found := false. |
|
5996 |
method := methodArg originalMethodIfWrapped. |
|
5997 |
method isLazyMethod ifTrue:[ |
|
5998 |
src := method source. |
|
5999 |
(src notNil) ifTrue:[ |
|
6000 |
method makeRealMethod. |
|
6001 |
] ifFalse:[ |
|
6002 |
skip := true |
|
6003 |
]. |
|
6004 |
]. |
|
6005 |
skip ifFalse:[ |
|
6006 |
src := method source. |
|
17056 | 6007 |
src isNil ifTrue:[ |
6008 |
('SystemBrowser: [warning]: no source for method: ',methodArg printString) errorPrintCR. |
|
6009 |
]. |
|
6010 |
(src notNil and:[src includes:$']) ifTrue:[ "/ eliminates many |
|
16462 | 6011 |
(checkSource value:src) ifTrue:[ |
6012 |
tree := cls parseTreeFor:sel. |
|
6013 |
"/ walk |
|
6014 |
found := |
|
6015 |
tree usedLiterals contains:[:lit | |
|
6016 |
lit isString |
|
6017 |
and:[ lit isSymbol not |
|
6018 |
and:[ checkLiteral value:lit ]]] |
|
6019 |
]. |
|
6020 |
]. |
|
6021 |
]. |
|
6022 |
found |
|
16451 | 6023 |
] |
5877 | 6024 |
|
6025 |
" |
|
6026 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true |
|
6027 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false |
|
6028 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true |
|
6029 |
SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false |
|
6030 |
" |
|
11452 | 6031 |
! |
6032 |
||
6033 |
searchBlockForSymbol:aSymbol |
|
12866 | 6034 |
"return a matchblock to search for all methods referencing aSymbol. |
6035 |
false if no such symbol exists" |
|
11452 | 6036 |
|
6037 |
(aSymbol includesMatchCharacters) ifTrue:[ |
|
6038 |
"a matchString" |
|
6039 |
^ [:c :m :s | |
|
6040 |
(m literalsDetect:[:aLiteral| |
|
6041 |
(aLiteral isMemberOf:Symbol) |
|
6042 |
and:[aSymbol match:aLiteral] |
|
6043 |
] |
|
6044 |
ifNone:nil |
|
6045 |
) notNil |
|
6046 |
]. |
|
6047 |
] ifFalse:[ |
|
12866 | 6048 |
aSymbol asSymbolIfInterned isNil ifTrue:[ |
6049 |
^ false |
|
6050 |
]. |
|
11452 | 6051 |
^ [:c :m :s | |
6052 |
(m literalsDetect:[:aLiteral| |
|
6053 |
(aSymbol == aLiteral) |
|
6054 |
] |
|
6055 |
ifNone:nil |
|
6056 |
) notNil |
|
6057 |
]. |
|
6058 |
]. |
|
6059 |
||
6060 |
"Created: / 22-03-2012 / 06:56:51 / cg" |
|
203 | 6061 |
! ! |
6062 |
||
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
6063 |
!SystemBrowser class methodsFor:'startup'! |
36 | 6064 |
|
203 | 6065 |
browseAllSelect:aBlock |
6066 |
"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
|
6067 |
The block is called with 3 arguments, class, method and selector." |
203 | 6068 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6069 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6070 |
browseMethodsWhere:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6071 |
title:'selected messages' |
36 | 6072 |
|
53 | 6073 |
" |
203 | 6074 |
SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3] |
53 | 6075 |
" |
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6076 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6077 |
"Modified: 24.1.1997 / 19:45:05 / cg" |
203 | 6078 |
! |
75 | 6079 |
|
203 | 6080 |
browseClass:aClass |
4490 | 6081 |
"launch a browser for aClass. |
6082 |
Notice: better go via Smalltalk browseClass:, which honors the tool-preferences" |
|
203 | 6083 |
|
6084 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6085 |
newWithLabel:aClass name |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6086 |
setupSelector:#setupForClass: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6087 |
arg:aClass |
203 | 6088 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6089 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6090 |
SystemBrowser browseClass:Object |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6091 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6092 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6093 |
"Modified: 24.1.1997 / 19:45:16 / cg" |
203 | 6094 |
! |
6095 |
||
6096 |
browseClass:aClass methodCategory:aCategory |
|
6097 |
"launch a browser for all methods under aCategory in aClass" |
|
6098 |
||
6099 |
^ self newWithLabel:(aClass name , ' ' , aCategory) |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6100 |
setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory] |
203 | 6101 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6102 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6103 |
SystemBrowser browseClass:String methodCategory:'copying' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6104 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6105 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6106 |
"Modified: 24.1.1997 / 19:45:23 / cg" |
203 | 6107 |
! |
6108 |
||
6109 |
browseClass:aClass selector:selector |
|
4490 | 6110 |
"launch a browser for the method at selector in aClass." |
203 | 6111 |
|
6112 |
^ self |
|
4158 | 6113 |
newWithLabel:(aClass name , ' ' , selector , ' ' , selector) |
6114 |
setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector] |
|
203 | 6115 |
|
6116 |
" |
|
6117 |
SystemBrowser browseClass:Object selector:#printString |
|
16384 | 6118 |
Tools::NewSystemBrowser openInClass:Object selector:#printString |
203 | 6119 |
" |
36 | 6120 |
! |
6121 |
||
203 | 6122 |
browseClassCategory:aClassCategory |
6123 |
"launch a browser for all classes under aCategory" |
|
6124 |
||
6125 |
^ self |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6126 |
newWithLabel:aClassCategory |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6127 |
setupSelector:#setupForClassCategory: |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6128 |
arg:aClassCategory |
203 | 6129 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6130 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6131 |
SystemBrowser browseClassCategory:'Kernel-Objects' |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6132 |
" |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6133 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6134 |
"Modified: 24.1.1997 / 19:45:32 / cg" |
203 | 6135 |
! |
6136 |
||
6137 |
browseClassHierarchy:aClass |
|
6138 |
"launch a browser for aClass and all its superclasses. |
|
6139 |
this is different from the fullProtocol browser." |
|
36 | 6140 |
|
203 | 6141 |
^ self |
4158 | 6142 |
newWithLabel:(aClass name , '-' , 'hierarchy') |
6143 |
setupSelector:#setupForClassHierarchy: |
|
6144 |
arg:aClass |
|
203 | 6145 |
|
6146 |
" |
|
6147 |
SystemBrowser browseClassHierarchy:Number |
|
6148 |
" |
|
6149 |
! |
|
6150 |
||
8702 | 6151 |
browseClasses:aList label:title |
203 | 6152 |
"launch a browser for all classes in aList" |
6153 |
||
6154 |
^ self |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6155 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6156 |
setupBlock:[:b | b setupForClassList:aList sort:true] |
203 | 6157 |
|
6158 |
" |
|
6159 |
SystemBrowser browseClasses:(Array with:Object |
|
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6160 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6161 |
title:'two classes' |
203 | 6162 |
" |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6163 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6164 |
"Modified: 28.5.1996 / 13:52:25 / cg" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6165 |
! |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6166 |
|
8702 | 6167 |
browseClasses:aList label:title sort:doSort |
576
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6168 |
"launch a browser for all classes in aList" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6169 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6170 |
^ self |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6171 |
newWithLabel:title |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6172 |
setupBlock:[:b | b setupForClassList:aList sort:doSort] |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6173 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6174 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6175 |
SystemBrowser browseClasses:(Array with:Object |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6176 |
with:Float) |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6177 |
title:'two classes' |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6178 |
" |
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6179 |
|
62dc6c67d71c
show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents:
573
diff
changeset
|
6180 |
"Created: 28.5.1996 / 13:52:09 / cg" |
52 | 6181 |
! |
6182 |
||
8702 | 6183 |
browseClasses:aList title:title |
6184 |
<resource: #obsolete> |
|
6185 |
"launch a browser for all classes in aList" |
|
6186 |
||
6187 |
self obsoleteMethodWarning. |
|
6188 |
^ self browseClasses:aList label:title |
|
6189 |
! |
|
6190 |
||
6191 |
browseClasses:aList title:title sort:doSort |
|
6192 |
<resource: #obsolete> |
|
6193 |
"launch a browser for all classes in aList" |
|
6194 |
||
6195 |
self obsoleteMethodWarning. |
|
6196 |
^ self browseClasses:aList label:title sort:doSort |
|
6197 |
||
6198 |
"Created: 28.5.1996 / 13:52:09 / cg" |
|
6199 |
! |
|
6200 |
||
203 | 6201 |
browseFullClassProtocol:aClass |
6202 |
"launch a browser for aClasses full protocol. |
|
6203 |
This is different from hierarchy browsing." |
|
6204 |
||
6205 |
^ self |
|
4158 | 6206 |
newWithLabel:(aClass name , '-' , 'full protocol') |
6207 |
setupSelector:#setupForFullClassProtocol: |
|
6208 |
arg:aClass |
|
203 | 6209 |
|
6210 |
" |
|
6211 |
SystemBrowser browseFullClassProtocol:Number |
|
6212 |
" |
|
6213 |
! |
|
36 | 6214 |
|
203 | 6215 |
browseFullClasses |
6216 |
"launch a browser showing all methods at once" |
|
6217 |
||
6218 |
^ self |
|
4158 | 6219 |
newWithLabel:'Full Class Browser' |
6220 |
setupBlock:[:newBrowser | newBrowser setupForFullClass] |
|
36 | 6221 |
|
203 | 6222 |
"SystemBrowser browseFullClasses" |
6223 |
! |
|
6224 |
||
6225 |
browseInstMethodsFrom:aClass where:aBlock title:title |
|
6226 |
"launch a browser for all instance methods in aClass and all subclasses |
|
6227 |
where aBlock evaluates to true" |
|
36 | 6228 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6229 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6230 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6231 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6232 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6233 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6234 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6235 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6236 |
"Modified: 24.1.1997 / 19:44:45 / cg" |
203 | 6237 |
! |
6238 |
||
6239 |
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title |
|
6240 |
"launch a browser for all instance methods of all classes in |
|
6241 |
aCollectionOfClasses where aBlock evaluates to true" |
|
6242 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6243 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6244 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6245 |
inst:true class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6246 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6247 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6248 |
"Modified: 24.1.1997 / 19:43:41 / cg" |
203 | 6249 |
! |
36 | 6250 |
|
203 | 6251 |
browseInstMethodsOf:aClass where:aBlock title:title |
6252 |
"launch a browser for all instance methods in aClass |
|
6253 |
where aBlock evaluates to true" |
|
6254 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6255 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6256 |
browseMethodsIn:(Array with:aClass) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6257 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6258 |
class:false |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6259 |
where:aBlock title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6260 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6261 |
"Modified: 24.1.1997 / 19:43:50 / cg" |
203 | 6262 |
! |
6263 |
||
16384 | 6264 |
browseMethod:aMethod |
6265 |
"launch a single-method browser." |
|
6266 |
||
6267 |
^ self browseMethods:{ aMethod } |
|
6268 |
||
6269 |
" |
|
6270 |
self browseMethod:(Array compiledMethodAt:#at:) |
|
6271 |
Tools::NewSystemBrowser browseMethod:(Array compiledMethodAt:#at:) |
|
6272 |
" |
|
6273 |
! |
|
6274 |
||
203 | 6275 |
browseMethodCategory:aCategory |
6276 |
"launch a browser for all methods where category = aCategory" |
|
6277 |
||
6278 |
|searchBlock| |
|
6279 |
||
6280 |
aCategory includesMatchCharacters ifTrue:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6281 |
searchBlock := [:c :m :s | aCategory match:m category]. |
53 | 6282 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6283 |
searchBlock := [:c :m :s | m category = aCategory] |
53 | 6284 |
]. |
6285 |
||
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6286 |
^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory) |
203 | 6287 |
|
6288 |
" |
|
6289 |
SystemBrowser browseMethodCategory:'printing & storing' |
|
6290 |
SystemBrowser browseMethodCategory:'print*' |
|
6291 |
" |
|
6292 |
! |
|
6293 |
||
3666 | 6294 |
browseMethods:aListOfMethods |
6295 |
"launch a multi-method browser." |
|
6296 |
||
16384 | 6297 |
|title| |
6298 |
||
6299 |
aListOfMethods size == 1 ifTrue:[ |
|
6300 |
title := aListOfMethods first whoString |
|
6301 |
] ifFalse:[ |
|
6302 |
title := 'some methods' |
|
6303 |
]. |
|
6304 |
^ self browseMethods:aListOfMethods title:title |
|
6305 |
||
6306 |
" |
|
6307 |
self |
|
6308 |
browseMethods:(Array with:(Array compiledMethodAt:#at:)) |
|
6309 |
||
3666 | 6310 |
self |
6311 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
6312 |
with:(OrderedCollection compiledMethodAt:#at:)) |
|
6313 |
||
6314 |
self |
|
6315 |
browseMethods:(Array with:(Array compiledMethodAt:#at:) |
|
6316 |
with:(Array compiledMethodAt:#at:put:)) |
|
6317 |
" |
|
6318 |
! |
|
6319 |
||
203 | 6320 |
browseMethods:aList title:aString |
6321 |
"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
|
6322 |
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
|
6323 |
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
|
6324 |
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
|
6325 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6326 |
^ self |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6327 |
browseMethods:aList |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6328 |
title:aString |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6329 |
sort:true |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6330 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6331 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6332 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6333 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6334 |
browseMethods:#('Object printOn:' 'Collection add:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6335 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6336 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6337 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6338 |
browseMethods:#('Behavior new:' 'Setclass new:') |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6339 |
title:'some new: methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6340 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6341 |
SystemBrowser |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6342 |
browseMethods:(Array with:(Object compiledMethodAt:#printOn:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6343 |
with:(Collection compiledMethodAt:#add:) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6344 |
with:(Object class compiledMethodAt:#initialize)) |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6345 |
title:'some methods' |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6346 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6347 |
" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6348 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6349 |
"Modified: 1.11.1996 / 16:30:17 / cg" |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6350 |
! |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6351 |
|
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6352 |
browseMethods:aList title:aString sort:doSort |
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6353 |
"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
|
6354 |
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
|
6355 |
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
|
6356 |
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
|
6357 |
|
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6358 |
|l| |
203 | 6359 |
|
6360 |
(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
|
6361 |
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
|
6362 |
^ nil |
203 | 6363 |
]. |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6364 |
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
|
6365 |
l := l collect:[:entry | |
15513 | 6366 |
|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
|
6367 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6368 |
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
|
6369 |
entry |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6370 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6371 |
cls := entry mclass. |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6372 |
cls isNil ifTrue:[ |
1031 | 6373 |
'??? unbound' |
6374 |
] ifFalse:[ |
|
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6375 |
cls isJavaClass ifTrue:[ |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6376 |
clsName := 'JAVA::' , cls fullName |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
6377 |
] ifFalse:[ |
2822
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6378 |
clsName := cls name |
8127e7726fdd
changes for environment browsing
Claus Gittinger <cg@exept.de>
parents:
2818
diff
changeset
|
6379 |
]. |
7915 | 6380 |
(cls selectorAtMethod:entry) isNil ifTrue:[ |
6381 |
clsName |
|
6382 |
, ' ' |
|
6383 |
, '???' |
|
6384 |
] ifFalse:[ |
|
6385 |
clsName |
|
6386 |
, ' ' |
|
6387 |
, (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry) inClass:cls) |
|
6388 |
] |
|
1031 | 6389 |
] |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6390 |
] |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6391 |
]. |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6392 |
|
1919
0652e55065f9
added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents:
1703
diff
changeset
|
6393 |
doSort ifTrue:[l sort]. |
1937
fc541342f2db
more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents:
1931
diff
changeset
|
6394 |
|
203 | 6395 |
^ 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
|
6396 |
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
|
6397 |
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
|
6398 |
arg:l |
53 | 6399 |
|
203 | 6400 |
" |
6401 |
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
|
6402 |
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
|
6403 |
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
|
6404 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6405 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6406 |
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
|
6407 |
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
|
6408 |
|
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6409 |
SystemBrowser |
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6410 |
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
|
6411 |
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
|
6412 |
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
|
6413 |
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
|
6414 |
|
203 | 6415 |
" |
279
062022b53f22
allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents:
270
diff
changeset
|
6416 |
|
7711 | 6417 |
"Modified: / 17-06-1996 / 17:07:46 / stefan" |
6418 |
"Modified: / 05-03-2007 / 16:25:25 / cg" |
|
2826 | 6419 |
! |
53 | 6420 |
|
203 | 6421 |
browseMethodsFrom:aClass where:aBlock title:title |
6422 |
"launch a browser for all instance- and classmethods in aClass |
|
6423 |
and all its subclasses where aBlock evaluates to true. |
|
6424 |
The block is called with 3 arguments, class, method and seelctor." |
|
6425 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6426 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6427 |
browseMethodsIn:(aClass withAllSubclasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6428 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6429 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6430 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6431 |
"Modified: 24.1.1997 / 19:44:00 / cg" |
203 | 6432 |
! |
6433 |
||
6434 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title |
|
6435 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
6436 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
6437 |
where aBlock evaluates to true. |
|
270 | 6438 |
The block is called with 3 arguments, class, method and selector." |
203 | 6439 |
|
6440 |
|list| |
|
53 | 6441 |
|
6442 |
" |
|
203 | 6443 |
since this may take a long time, lower my priority ... |
53 | 6444 |
" |
2295
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
6445 |
Processor activeProcess |
4e05198e7dd8
execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents:
2208
diff
changeset
|
6446 |
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
|
6447 |
do:[ |
2675 | 6448 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
203 | 6449 |
]. |
6450 |
^ self browseMethods:list title:title |
|
53 | 6451 |
! |
6452 |
||
3780 | 6453 |
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock |
6454 |
"launch a browser for all instance- (if wantInst is true) and/or |
|
6455 |
classmethods (if wantClass is true) from classes in aCollectionOfClasses, |
|
6456 |
where aBlock evaluates to true. |
|
6457 |
The block is called with 3 arguments, class, method and selector." |
|
6458 |
||
6459 |
|list| |
|
6460 |
||
6461 |
" |
|
6462 |
since this may take a long time, lower my priority ... |
|
6463 |
" |
|
6464 |
Processor activeProcess |
|
6465 |
withPriority:Processor activePriority-1 to:Processor activePriority |
|
6466 |
do:[ |
|
6467 |
list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock. |
|
6468 |
list size == 0 ifTrue:[warnBlock value]. |
|
6469 |
]. |
|
6470 |
^ self browseMethods:list title:title |
|
6471 |
! |
|
6472 |
||
203 | 6473 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title |
6474 |
"launch a browser for all instance- and classmethods from |
|
6475 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
6476 |
The block is called with 3 arguments, class, method and seelctor." |
|
53 | 6477 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6478 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6479 |
browseMethodsIn:aCollectionOfClasses |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6480 |
inst:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6481 |
class:true |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6482 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6483 |
title:title |
75 | 6484 |
|
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6485 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
36 | 6486 |
! |
6487 |
||
3780 | 6488 |
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock |
6489 |
"launch a browser for all instance- and classmethods from |
|
6490 |
all classes in aCollectionOfClasses where aBlock evaluates to true. |
|
6491 |
The block is called with 3 arguments, class, method and seelctor." |
|
6492 |
||
6493 |
^ self |
|
6494 |
browseMethodsIn:aCollectionOfClasses |
|
6495 |
inst:true |
|
6496 |
class:true |
|
6497 |
where:aBlock |
|
6498 |
title:title |
|
6499 |
ifNone:warnBlock |
|
6500 |
||
6501 |
"Modified: 24.1.1997 / 19:44:17 / cg" |
|
6502 |
! |
|
6503 |
||
203 | 6504 |
browseMethodsOf:aClass where:aBlock title:title |
6505 |
"launch a browser for all instance- and classmethods in aClass |
|
6506 |
where aBlock evaluates to true. |
|
6507 |
The block is called with 3 arguments, class, method and seelctor." |
|
93 | 6508 |
|
203 | 6509 |
^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title |
93 | 6510 |
! |
6511 |
||
203 | 6512 |
browseMethodsWhere:aBlock title:title |
6513 |
"launch a browser for all methods where aBlock returns true. |
|
6514 |
The block is called with 3 arguments, class, method and seelctor." |
|
6515 |
||
996
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6516 |
^ self |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6517 |
browseMethodsIn:(Smalltalk allClasses) |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6518 |
where:aBlock |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6519 |
title:title |
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6520 |
|
ed470d0b6029
more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
6521 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
2675 | 6522 |
! |
6523 |
||
3780 | 6524 |
browseMethodsWhere:aBlock title:title ifNone:warnBlock |
6525 |
"launch a browser for all methods where aBlock returns true. |
|
6526 |
The block is called with 3 arguments, class, method and seelctor." |
|
6527 |
||
6528 |
^ self |
|
6529 |
browseMethodsIn:(Smalltalk allClasses) |
|
6530 |
where:aBlock |
|
6531 |
title:title |
|
6532 |
ifNone:warnBlock |
|
6533 |
||
6534 |
"Modified: 24.1.1997 / 19:44:30 / cg" |
|
6535 |
! |
|
6536 |
||
2675 | 6537 |
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock |
6538 |
"return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) |
|
6539 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
6540 |
||
16449 | 6541 |
|list checkedClasses checkBlock nClasses |
6542 |
nClassesDone oldPercentage newPercentage nClassesSinceLastPercentage bulkSize| |
|
2675 | 6543 |
|
6544 |
checkedClasses := IdentitySet new. |
|
6545 |
list := OrderedCollection new. |
|
6546 |
||
6547 |
checkBlock := [:cls | |
|
6548 |
(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
|
6549 |
(cls isObsolete and:[cls isLoaded]) ifTrue:[ |
2882 | 6550 |
Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString |
2675 | 6551 |
] ifFalse:[ |
11941
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6552 |
aBlock numArgs == 1 ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6553 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6554 |
(aBlock value:method) ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6555 |
list add:method "/ (cls name , ' ' , sel) |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6556 |
] |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6557 |
]. |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6558 |
] ifFalse:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6559 |
cls methodDictionary keysAndValuesDo:[:sel :method | |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6560 |
(aBlock value:cls value:method value:sel) ifTrue:[ |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6561 |
list add:method "/ (cls name , ' ' , sel) |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6562 |
] |
55fec250ed02
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11934
diff
changeset
|
6563 |
]. |
2675 | 6564 |
]. |
6565 |
checkedClasses add:cls. |
|
6566 |
] |
|
6567 |
] |
|
6568 |
]. |
|
6569 |
||
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6570 |
nClasses := aCollectionOfClasses size. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6571 |
nClassesDone := 0. |
16238 | 6572 |
oldPercentage := 0. |
16449 | 6573 |
nClassesSinceLastPercentage := 0. |
6574 |
bulkSize := (nClasses // 30) max:10. "/ roughly every 3%. |
|
16238 | 6575 |
|
2675 | 6576 |
aCollectionOfClasses do:[:aClass | |
3008 | 6577 |
(aClass notNil and:[aClass isObsolete not]) ifTrue:[ |
16449 | 6578 |
nClassesSinceLastPercentage := nClassesSinceLastPercentage + 1. |
6579 |
||
2675 | 6580 |
" |
6581 |
output disabled - it slows down things too much (when searching for |
|
6582 |
implementors or senders) |
|
6583 |
" |
|
6584 |
wantInst ifTrue:[ |
|
6585 |
"/ Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry. |
|
6586 |
checkBlock value:aClass |
|
6587 |
]. |
|
6588 |
wantClass ifTrue:[ |
|
6589 |
"/ Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry. |
|
6590 |
checkBlock value:(aClass class) |
|
6591 |
]. |
|
16449 | 6592 |
nClassesSinceLastPercentage > bulkSize ifTrue:[ |
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6593 |
"/ Processor yield |
16238 | 6594 |
newPercentage := nClassesDone * 100 // nClasses. |
6595 |
newPercentage ~= oldPercentage ifTrue:[ |
|
6596 |
ProgressNotification progressPercentage:newPercentage. |
|
6597 |
oldPercentage := newPercentage. |
|
6598 |
]. |
|
16449 | 6599 |
nClassesSinceLastPercentage := 0. |
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6600 |
]. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6601 |
]. |
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6602 |
nClassesDone := nClassesDone + 1. |
2675 | 6603 |
]. |
6604 |
^ list |
|
11506
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6605 |
|
bc0fc32fd733
changed: #findMethodsIn:inst:class:where:
Claus Gittinger <cg@exept.de>
parents:
11452
diff
changeset
|
6606 |
"Modified: / 15-05-2012 / 10:36:44 / cg" |
2675 | 6607 |
! |
6608 |
||
6609 |
findMethodsIn:aCollectionOfClasses where:aBlock |
|
6610 |
"return all instance- and classmethods |
|
6611 |
from classes in aCollectionOfClasses, where aBlock evaluates to true." |
|
6612 |
||
6613 |
^ self |
|
6614 |
findMethodsIn:aCollectionOfClasses |
|
6615 |
inst:true |
|
6616 |
class:true |
|
6617 |
where:aBlock |
|
203 | 6618 |
! ! |
93 | 6619 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
6620 |
!SystemBrowser class methodsFor:'startup with query'! |
203 | 6621 |
|
6622 |
askThenBrowseClass |
|
6623 |
self getClassThenPerform:#browseClass: |
|
6624 |
||
6625 |
" |
|
6626 |
SystemBrowser askThenBrowseClass |
|
13028 | 6627 |
Tools::NewSystemBrowser askThenBrowseClass |
203 | 6628 |
" |
93 | 6629 |
! |
6630 |
||
203 | 6631 |
askThenBrowseClassHierarchy |
6632 |
self getClassThenPerform:#browseClassHierarchy: |
|
36 | 6633 |
|
203 | 6634 |
" |
6635 |
SystemBrowser askThenBrowseClassHierarchy |
|
13028 | 6636 |
Tools::NewSystemBrowser askThenBrowseClassHierarchy |
203 | 6637 |
" |
36 | 6638 |
! |
6639 |
||
203 | 6640 |
askThenBrowseFullClassProtocol |
6641 |
self getClassThenPerform:#browseFullClassProtocol: |
|
36 | 6642 |
|
203 | 6643 |
" |
6644 |
SystemBrowser askThenBrowseFullClassProtocol |
|
13028 | 6645 |
Tools::NewSystemBrowser askThenBrowseFullClassProtocol |
6646 |
" |
|
36 | 6647 |
! ! |
6648 |
||
2813 | 6649 |
!SystemBrowser class methodsFor:'utilities'! |
6650 |
||
13028 | 6651 |
askForClass |
13032 | 6652 |
^ self askForClassWithFilter:nil |
13028 | 6653 |
|
6654 |
" |
|
6655 |
Tools::NewSystemBrowser askForClass |
|
6656 |
" |
|
6657 |
! |
|
6658 |
||
6659 |
askForClassName |
|
13032 | 6660 |
^ self askForClassNameWithFilter:nil |
6661 |
||
6662 |
" |
|
6663 |
Tools::NewSystemBrowser askForClassName |
|
6664 |
" |
|
6665 |
! |
|
6666 |
||
6667 |
askForClassNameWithFilter:filterOrNil |
|
13028 | 6668 |
self |
6669 |
askForClassToSearch:nil |
|
6670 |
single:true |
|
6671 |
msgTail:'' |
|
6672 |
resources:(self classResources) |
|
13032 | 6673 |
filter:filterOrNil |
13028 | 6674 |
forBrowser:nil |
6675 |
thenDo:[:className :single :doWhat | |
|
6676 |
^ className |
|
6677 |
]. |
|
6678 |
^ nil |
|
6679 |
||
6680 |
" |
|
6681 |
Tools::NewSystemBrowser askForClassName |
|
6682 |
" |
|
6683 |
! |
|
6684 |
||
13032 | 6685 |
askForClassToSearch:doWhatByDefault single:singleClass msgTail:msgTail resources:resourcesOrNil filter:filterOrNil forBrowser:aBrowserOrNil thenDo:aBlock |
13028 | 6686 |
"utility common code for both opening a new browser on a class and |
6687 |
to search for a class in an existing browser. |
|
6688 |
If singleClass is true, a single class will be asked for and browsed, |
|
6689 |
otherwise, a match pattern is allowed and a multi-class browser is opened. |
|
6690 |
Moved from instance protocol for better reusability." |
|
6691 |
||
6692 |
|box boxLabel title okText className canFind doWhat classNameHolder updateList |
|
6693 |
allClasses classNamesInChangeSet |
|
6694 |
allNames allFullNames initialShortNames initialFullNames |
|
6695 |
colorizedFullNames colorizedShortNames |
|
6696 |
resources check showingWhatLabel showFullNameHolder genShortNameListEntry| |
|
6697 |
||
6698 |
resources := resourcesOrNil ? self classResources. |
|
6699 |
showFullNameHolder := (LastClassSearchBoxShowedFullName ? false) asValue. |
|
6700 |
||
6701 |
doWhat := doWhatByDefault. |
|
6702 |
canFind := false. |
|
6703 |
||
6704 |
title := ''. |
|
6705 |
boxLabel := (resources string:'Select a class'). |
|
6706 |
okText := 'OK'. |
|
6707 |
||
6708 |
genShortNameListEntry := |
|
6709 |
[:cls | |
|
6710 |
|ns| |
|
13035 | 6711 |
|
13028 | 6712 |
cls isNil ifTrue:[ |
6713 |
nil |
|
6714 |
] ifFalse:[ |
|
13035 | 6715 |
(filterOrNil notNil and:[ (filterOrNil value:cls) not]) ifTrue:[ |
6716 |
nil |
|
6717 |
] ifFalse:[ |
|
6718 |
ns := cls topNameSpace name. |
|
6719 |
ns = 'Smalltalk' |
|
6720 |
ifTrue:[ ns := '' ] |
|
6721 |
ifFalse:[ns := ' (in ',ns,')']. |
|
6722 |
cls nameWithoutNameSpacePrefix,ns |
|
6723 |
] |
|
13028 | 6724 |
]. |
6725 |
]. |
|
6726 |
||
6727 |
classNamesInChangeSet := ChangeSet current changedClasses |
|
13035 | 6728 |
select: (filterOrNil ? [:cls | true]) |
6729 |
thenCollect:[:each | each theNonMetaclass name]. |
|
13028 | 6730 |
|
6731 |
initialFullNames := self visitedClassNamesHistory. |
|
13035 | 6732 |
(filterOrNil notNil) ifTrue:[ |
6733 |
initialFullNames := initialFullNames select:[:nm | filterOrNil value:(Smalltalk at:nm)]. |
|
6734 |
]. |
|
13028 | 6735 |
initialShortNames := initialFullNames collect:[:nm | genShortNameListEntry value:(Smalltalk at:nm)] thenSelect:[:nm | nm notNil]. |
6736 |
||
6737 |
colorizedFullNames := initialFullNames collect:[:clsName | |
|
6738 |
(classNamesInChangeSet includes:clsName) ifTrue:[ |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
6739 |
clsName asText emphasisAllAdd:(SystemBrowser emphasisForChangedCode) |
13028 | 6740 |
] ifFalse:[ |
6741 |
clsName |
|
6742 |
]. |
|
6743 |
]. |
|
6744 |
||
6745 |
colorizedShortNames := initialShortNames with:initialFullNames collect:[:shortName :clsName | |
|
6746 |
(classNamesInChangeSet includes:clsName) ifTrue:[ |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
6747 |
shortName asText emphasisAllAdd:(SystemBrowser emphasisForChangedCode) |
13028 | 6748 |
] ifFalse:[ |
6749 |
shortName |
|
6750 |
]. |
|
6751 |
]. |
|
6752 |
||
13046 | 6753 |
title := (resources string:title) , msgTail , '.\' , (resources string:'(TAB to complete; matchPattern allowed - "*" for all):'). |
13028 | 6754 |
|
6755 |
box := self |
|
6756 |
enterBoxForClassWithCodeSelectionTitle:title withCRs |
|
6757 |
withList:(showFullNameHolder value ifTrue:[colorizedFullNames] ifFalse:[colorizedShortNames]) |
|
6758 |
okText:okText |
|
6759 |
forBrowser:nil. |
|
6760 |
||
6761 |
box label:boxLabel. |
|
6762 |
||
6763 |
allClasses := Smalltalk allClasses copyAsOrderedCollection. |
|
13032 | 6764 |
filterOrNil notNil ifTrue:[ |
6765 |
allClasses := allClasses select: filterOrNil |
|
6766 |
]. |
|
13028 | 6767 |
|
6768 |
allNames := (allClasses |
|
6769 |
collect:[:cls | |
|
6770 |
|ns nm| |
|
6771 |
||
6772 |
ns := cls topNameSpace name. |
|
6773 |
ns = 'Smalltalk' |
|
6774 |
ifTrue:[ ns := '' ] |
|
6775 |
ifFalse:[ns := ' (in ',ns,')']. |
|
6776 |
cls isNameSpace ifTrue:[ |
|
6777 |
nm := cls nameWithoutNameSpacePrefix,ns,' (Namespace)' |
|
6778 |
] ifFalse:[ |
|
6779 |
nm := cls nameWithoutNameSpacePrefix,ns |
|
6780 |
]. |
|
6781 |
(classNamesInChangeSet includes:cls name) ifTrue:[ |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
6782 |
nm asText emphasisAllAdd:(SystemBrowser emphasisForChangedCode) |
13028 | 6783 |
] ifFalse:[ |
6784 |
nm |
|
6785 |
]. |
|
6786 |
]) sortWith:allClasses; yourself. |
|
6787 |
||
6788 |
allFullNames := (allClasses |
|
6789 |
collect:[:cls | |
|
6790 |
|nm| |
|
6791 |
||
6792 |
nm := cls name. |
|
6793 |
(classNamesInChangeSet includes:cls name) ifTrue:[ |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
6794 |
nm asText emphasisAllAdd:(SystemBrowser emphasisForChangedCode) |
13028 | 6795 |
] ifFalse:[ |
6796 |
nm |
|
6797 |
]. |
|
6798 |
]) sortWith:allClasses; yourself. |
|
6799 |
||
6800 |
updateList := [ |
|
6801 |
|nameToSearch list namesStarting namesIncluding lcName nameList| |
|
6802 |
||
6803 |
(nameToSearch := classNameHolder value withoutSeparators) isEmpty ifTrue:[ |
|
6804 |
showingWhatLabel label:(resources string:'Recently visited:'). |
|
6805 |
list := (showFullNameHolder value ifTrue:[colorizedFullNames] ifFalse:[colorizedShortNames]). |
|
6806 |
] ifFalse:[ |
|
6807 |
showingWhatLabel label:(resources string:'Matching classes:'). |
|
6808 |
nameList := showFullNameHolder value |
|
6809 |
ifTrue:[ allFullNames ] |
|
6810 |
ifFalse:[ allNames ]. |
|
6811 |
||
6812 |
lcName := nameToSearch asLowercase. |
|
6813 |
(lcName includesString:'::') ifTrue:[ |
|
6814 |
list := OrderedCollection new. |
|
6815 |
allClasses doWithIndex:[:cls :idx | |
|
6816 |
|isIncluded| |
|
6817 |
||
6818 |
(nameToSearch includesMatchCharacters) ifTrue:[ |
|
6819 |
isIncluded := (lcName match:cls name asLowercase) |
|
6820 |
] ifFalse:[ |
|
6821 |
isIncluded := (cls name includesString:lcName caseSensitive:false) |
|
6822 |
]. |
|
6823 |
isIncluded ifTrue:[ |
|
6824 |
list add:(nameList at:idx) |
|
6825 |
]. |
|
6826 |
]. |
|
6827 |
] ifFalse:[ |
|
6828 |
(nameToSearch includesMatchCharacters) ifTrue:[ |
|
6829 |
list := nameList select:[:nm | lcName match:nm asLowercase] |
|
6830 |
] ifFalse:[ |
|
6831 |
namesIncluding := nameList |
|
6832 |
select:[:nm | |
|
6833 |
"/ nm asLowercase startsWith:lcName |
|
6834 |
nm asLowercase includesString:lcName caseSensitive:false |
|
6835 |
]. |
|
6836 |
namesStarting := namesIncluding select:[:nm | nm asLowercase startsWith:lcName]. |
|
6837 |
list := namesStarting , {nil} , (namesIncluding \ namesStarting). |
|
6838 |
] |
|
6839 |
] |
|
6840 |
]. |
|
6841 |
box listView |
|
6842 |
list:list; |
|
6843 |
scrollToLine:((list findFirst:[:line | (line ? '') startsWith:lcName]) max:1) |
|
6844 |
]. |
|
6845 |
||
6846 |
classNameHolder := '' asValue. |
|
6847 |
box enterField |
|
6848 |
model:classNameHolder; |
|
6849 |
immediateAccept:true. |
|
6850 |
classNameHolder onChangeEvaluate:updateList. |
|
6851 |
||
6852 |
box entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
|
6853 |
box action:[:aString | className := aString]. |
|
6854 |
||
6855 |
box panelView |
|
6856 |
addSubView:(showingWhatLabel := (Label label:(resources string:'Recently visited:')) adjust:#left) before:nil; |
|
6857 |
addSubView:(check := CheckBox label:(resources string:'Show Full Name (do not strip off Namespace)') model:showFullNameHolder) before:nil. |
|
6858 |
showFullNameHolder onChangeEvaluate:updateList. |
|
6859 |
box enterField origin:(0 @ check corner y). |
|
6860 |
box listView origin:(0 @ check corner y). |
|
6861 |
||
6862 |
box extent:(400 @ 350). |
|
6863 |
box open. |
|
6864 |
||
6865 |
className isEmptyOrNil ifTrue:[^ nil "cancel"]. |
|
6866 |
||
6867 |
LastClassSearchBoxShowedFullName := showFullNameHolder value. |
|
6868 |
||
6869 |
(className endsWith:$) ) ifTrue:[ |
|
6870 |
(className indexOfSubCollection:'(in ') == 0 ifTrue:[ |
|
6871 |
"/ a namespace |
|
6872 |
className := (className copyTo:(className indexOfSubCollection:'(Name')-1) withoutSeparators |
|
6873 |
] ifFalse:[ |
|
6874 |
className := ((className copyFrom:(className indexOfSubCollection:'(in ')+4) |
|
6875 |
copyButLast:1) |
|
6876 |
, '::' , className asCollectionOfWords first |
|
6877 |
]. |
|
6878 |
]. |
|
6879 |
||
6880 |
aBlock notNil ifTrue:[aBlock value:className optionalArgument:singleClass and:doWhat]. |
|
6881 |
^ className |
|
6882 |
||
6883 |
"Modified: / 23-07-2012 / 11:00:22 / cg" |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
6884 |
"Modified: / 15-09-2021 / 13:45:34 / Jan Vrany <jan.vrany@labware.com>" |
13028 | 6885 |
! |
6886 |
||
13032 | 6887 |
askForClassWithFilter:filterOrNil |
6888 |
|className| |
|
6889 |
||
6890 |
className := self askForClassNameWithFilter:filterOrNil. |
|
6891 |
className notEmptyOrNil ifTrue:[ |
|
6892 |
^ Smalltalk classNamed:className |
|
6893 |
]. |
|
6894 |
^ nil |
|
6895 |
||
6896 |
" |
|
6897 |
Tools::NewSystemBrowser askForClass |
|
6898 |
" |
|
6899 |
! |
|
6900 |
||
3833 | 6901 |
classWithNameSimilarTo:className |
6902 |
"helper for class-name entry; finds a class by name tolerant w.r.t. case" |
|
6903 |
||
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6904 |
|allMatchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6905 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6906 |
allMatchingClasses := self classesWithNameSimilarTo:className. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6907 |
^ allMatchingClasses firstIfEmpty:nil |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6908 |
! |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6909 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6910 |
classesWithNameSimilarTo:className |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6911 |
"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
|
6912 |
|
6944 | 6913 |
^ self classesWithNameSimilarTo:className from:nil |
6914 |
||
6915 |
"Modified: / 22-08-2006 / 13:22:41 / cg" |
|
6916 |
! |
|
6917 |
||
6918 |
classesWithNameSimilarTo:className from:aNameSpaceOrNil |
|
6919 |
"helper for class-name entry; finds classes with a name similar to the argument, className" |
|
6920 |
||
6921 |
|nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses |
|
6922 |
prefNameSpaceOrNil prefLcNameSpace| |
|
6923 |
||
6924 |
prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil]. |
|
3833 | 6925 |
|
12747 | 6926 |
nm := className withoutPrefix:'Smalltalk::'. |
3833 | 6927 |
|
6944 | 6928 |
prefNameSpaceOrNil notNil ifTrue:[ |
6929 |
class := prefNameSpaceOrNil at:nm asSymbol. |
|
6930 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
|
6931 |
prefLcNameSpace := prefNameSpaceOrNil name asLowercase. |
|
6932 |
]. |
|
3833 | 6933 |
class := Smalltalk at:nm asSymbol. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6934 |
class isBehavior ifTrue:[^ Array with:class]. "/ a direct hit |
3833 | 6935 |
|
6936 |
lcName := className asLowercase. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6937 |
|
3833 | 6938 |
allClasses := Smalltalk allClasses. |
4806 | 6939 |
|
6134 | 6940 |
triedDetectors := OrderedCollection new. |
6941 |
triedDetectors add:[:cls | cls name asLowercase = lcName]. |
|
6942 |
||
6943 |
triedDetectors do:[:eachTry | |
|
6944 |
|class| |
|
6945 |
||
6946 |
class := allClasses detect:eachTry ifNone:nil. |
|
6947 |
class notNil ifTrue:[^ Array with:class]. |
|
6948 |
]. |
|
6949 |
||
4806 | 6950 |
triedMatchers := OrderedCollection new. |
5018
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
6951 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName]. |
2fe02eac49c5
better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents:
4924
diff
changeset
|
6952 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6953 |
|
4806 | 6954 |
triedMatchers add:[:cls | cls name asLowercase startsWith:lcName]. |
6955 |
triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]. |
|
6956 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]. |
|
6957 |
triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName]. |
|
6134 | 6958 |
triedMatchers add:[:cls | cls name asLowercase includesString:lcName]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6959 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6960 |
allMatchingClasses := IdentitySet new. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6961 |
triedMatchers do:[:eachTry | |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6962 |
|matchingClasses| |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6963 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6964 |
matchingClasses := allClasses select:eachTry. |
6944 | 6965 |
"/ matchingClasses size == 1 ifTrue:[^ matchingClasses]. |
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6966 |
allMatchingClasses addAll:matchingClasses. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6967 |
]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6968 |
allMatchingClasses isEmpty ifTrue:[^ #()]. |
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6969 |
|
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6970 |
allMatchingClasses := allMatchingClasses asOrderedCollection. |
6944 | 6971 |
allMatchingClasses |
6972 |
sort:[:a :b | |
|
6973 |
|lcNameA lcNameB da db distA distB | |
|
6974 |
||
6975 |
lcNameA := a name asLowercase. |
|
6976 |
lcNameB := b name asLowercase. |
|
6977 |
prefNameSpaceOrNil notNil ifTrue:[ |
|
6978 |
a nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
6979 |
lcNameA := a nameWithoutNameSpacePrefix asLowercase. |
|
6980 |
]. |
|
6981 |
b nameSpace == prefNameSpaceOrNil ifTrue:[ |
|
6982 |
lcNameB := b nameWithoutNameSpacePrefix asLowercase. |
|
6983 |
]. |
|
6984 |
]. |
|
6985 |
||
6986 |
distA := da := lcName levenshteinTo:lcNameA. |
|
6987 |
distB := db := lcName levenshteinTo:lcNameB. |
|
6988 |
"prefer prefixes (i.e. classes whose name starts with what we search for)" |
|
6989 |
||
6990 |
(lcNameA startsWith:lcName) ifTrue:[ |
|
6991 |
distB := distB * 2 |
|
6992 |
]. |
|
6993 |
(lcNameB startsWith:lcName) ifTrue:[ |
|
6994 |
distA := distA * 2 |
|
6995 |
]. |
|
6996 |
distA < distB |
|
6997 |
]. |
|
4924
0d39bbc7203e
better search-class heuristics
Claus Gittinger <cg@exept.de>
parents:
4921
diff
changeset
|
6998 |
^ allMatchingClasses. |
6546 | 6999 |
|
7000 |
" |
|
6678 | 7001 |
self classesWithNameSimilarTo:'NewSystemBrowser' |
7002 |
self classesWithNameSimilarTo:'Moose::MSEAbstractOperator' |
|
6546 | 7003 |
" |
6944 | 7004 |
|
7005 |
"Created: / 22-08-2006 / 13:22:48 / cg" |
|
7006 |
"Modified: / 22-08-2006 / 14:53:38 / cg" |
|
3833 | 7007 |
! |
7008 |
||
13028 | 7009 |
enterBoxForClassWithCodeSelectionTitle:title withList:listOrNil okText:okText forBrowser:aBrowserOrNil |
7010 |
"convenient method: setup an enterBox with initial text taken |
|
7011 |
from the codeviews selection." |
|
7012 |
||
7013 |
|sel box initialText superclass currentClass |
|
7014 |
methods someMethod offeredClass anyClose closeName s usedGlobals list| |
|
7015 |
||
7016 |
list := listOrNil. |
|
7017 |
||
7018 |
aBrowserOrNil notNil ifTrue:[ |
|
7019 |
currentClass := aBrowserOrNil theSingleSelectedClass. |
|
7020 |
||
7021 |
sel := aBrowserOrNil selectionInCodeView. |
|
7022 |
sel notNil ifTrue:[ |
|
7023 |
aBrowserOrNil selectedNamespacesValue doWithExit:[:eachNs :exit | |
|
7024 |
s := eachNs , '::' , sel asSymbol. |
|
7025 |
(s knownAsSymbol |
|
7026 |
and:[(Smalltalk at:s asSymbol) isBehavior]) ifTrue:[ |
|
7027 |
"/ a private class of current ... |
|
7028 |
sel := eachNs , '::' , sel asSymbol. |
|
7029 |
exit value:nil. |
|
7030 |
]. |
|
7031 |
]. |
|
7032 |
(sel knownAsSymbol and:[currentClass notNil |
|
7033 |
and:[(currentClass theNonMetaclass privateClassesAt:sel asSymbol) notNil]]) ifTrue:[ |
|
7034 |
"/ a private class of current ... |
|
7035 |
sel := (currentClass theNonMetaclass privateClassesAt:sel asSymbol) name |
|
7036 |
] ifFalse:[ |
|
7037 |
(sel knownAsSymbol and:[(Smalltalk at:sel asSymbol) isBehavior]) ifFalse:[ |
|
7038 |
"/ ignore it, if there is no class-name which comes close. |
|
7039 |
anyClose := false. |
|
7040 |
Smalltalk keysAndValuesDo:[:aGlobalName :aGlobal| |
|
7041 |
aGlobal isBehavior ifTrue:[ |
|
7042 |
aGlobal isMeta ifFalse:[ |
|
7043 |
aGlobal name == aGlobalName ifTrue:[ |
|
7044 |
((aGlobalName startsWith:sel) |
|
7045 |
or:[(sel startsWith:aGlobalName)]) ifTrue:[ |
|
7046 |
closeName isNil ifTrue:[closeName := aGlobalName]. |
|
7047 |
anyClose := true. |
|
7048 |
] |
|
7049 |
] |
|
7050 |
] |
|
7051 |
] |
|
7052 |
]. |
|
7053 |
anyClose ifFalse:[ |
|
7054 |
sel := nil |
|
7055 |
] ifTrue:[ |
|
7056 |
sel := closeName |
|
7057 |
] |
|
7058 |
] |
|
7059 |
] |
|
7060 |
]. |
|
7061 |
||
7062 |
sel notNil ifTrue:[ |
|
7063 |
initialText := sel asString withoutSeparators |
|
7064 |
] ifFalse:[ |
|
7065 |
aBrowserOrNil codeAspect == SyntaxHighlighter codeAspectMethod ifTrue:[ |
|
7066 |
methods := aBrowserOrNil selectedMethodsValue. |
|
7067 |
methods size > 0 ifTrue:[ |
|
7068 |
someMethod := methods first. |
|
7069 |
usedGlobals := someMethod usedGlobals collect:[:eachVar | eachVar asSymbol]. |
|
7070 |
usedGlobals := usedGlobals select:[:eachVar | (Smalltalk at:eachVar) isBehavior]. |
|
7071 |
usedGlobals size > 0 ifTrue:[ |
|
7072 |
list := list reject:[:each | usedGlobals includes:each ]. |
|
7073 |
list := usedGlobals asOrderedCollection sort , list. |
|
7074 |
offeredClass := Smalltalk at:usedGlobals first |
|
7075 |
] ifFalse:[ |
|
7076 |
offeredClass := someMethod mclass |
|
7077 |
] |
|
7078 |
] |
|
7079 |
] ifFalse:[ |
|
7080 |
(aBrowserOrNil navigationState isVersionDiffBrowser |
|
7081 |
or:[aBrowserOrNil navigationState isClassDocumentationBrowser]) ifTrue:[ |
|
7082 |
offeredClass := currentClass. |
|
7083 |
(offeredClass notNil and:[offeredClass isPrivate]) ifTrue:[ |
|
7084 |
offeredClass := offeredClass owningClass |
|
7085 |
] |
|
7086 |
] ifFalse:[ |
|
7087 |
(currentClass notNil |
|
7088 |
and:[(superclass := currentClass superclass) notNil]) ifTrue:[ |
|
7089 |
offeredClass := superclass |
|
7090 |
] |
|
7091 |
] |
|
7092 |
]. |
|
7093 |
offeredClass notNil ifTrue:[ |
|
7094 |
initialText := offeredClass theNonMetaclass name |
|
7095 |
] |
|
7096 |
]. |
|
7097 |
]. |
|
7098 |
||
7099 |
box := self |
|
7100 |
enterBoxTitle:(self classResources string:title) |
|
7101 |
withList:list |
|
7102 |
okText:(self classResources string:okText). |
|
7103 |
||
7104 |
initialText notNil ifTrue:[ |
|
7105 |
box initialText:initialText |
|
7106 |
]. |
|
7107 |
^ box |
|
7108 |
||
7109 |
"Created: / 13-02-2000 / 20:56:18 / cg" |
|
7110 |
"Modified: / 27-07-2012 / 22:18:34 / cg" |
|
7111 |
! |
|
7112 |
||
7113 |
enterBoxTitle:title withList:aListOrNil okText:okText |
|
7114 |
"convenient method: setup enterBox" |
|
7115 |
||
7116 |
|box rsrcs| |
|
7117 |
||
7118 |
aListOrNil notNil ifTrue:[ |
|
7119 |
box := ListSelectionBox new. |
|
7120 |
"/ box := EnterBoxWithList new. |
|
7121 |
box list:aListOrNil. |
|
7122 |
] ifFalse:[ |
|
7123 |
box := EnterBox new. |
|
7124 |
]. |
|
7125 |
rsrcs := self classResources. |
|
7126 |
box title:(rsrcs string:title) okText:(rsrcs string:okText). |
|
7127 |
^ box |
|
7128 |
||
7129 |
" |
|
7130 |
self enterBoxTitle:'bla' withList:#('a' 'b' 'c') okText:'gaga' |
|
7131 |
" |
|
7132 |
||
7133 |
"Created: / 13.2.2000 / 20:53:53 / cg" |
|
7134 |
"Modified: / 1.3.2000 / 11:15:09 / cg" |
|
7135 |
! |
|
7136 |
||
2813 | 7137 |
extractClassAndSelectorFrom:aString into:aBlock |
7138 |
"given a string which can be either 'class>>sel' or |
|
7139 |
'class sel', extract className and selector, and call aBlock with |
|
7140 |
the result. |
|
7141 |
Useful to open browser on a method as selected in some documentation." |
|
7142 |
||
7143 |
|sel clsName isMeta sep s| |
|
7144 |
||
7145 |
sel := aString. |
|
7146 |
sel notNil ifTrue:[ |
|
7147 |
sel := sel asString withoutSeparators. |
|
7148 |
('*>>*' match:sel) ifTrue:[ |
|
7149 |
sep := $> |
|
7150 |
] ifFalse:[ |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
7151 |
('*»*' match:sel) ifTrue:[ |
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
7152 |
sep := $» |
16529 | 7153 |
] ifFalse:[ |
7154 |
('* *' match:sel) ifTrue:[ |
|
7155 |
sep := Character space |
|
7156 |
] |
|
7157 |
]. |
|
2813 | 7158 |
]. |
7159 |
sep notNil ifTrue:[ |
|
7160 |
" |
|
7161 |
extract class/sel from selection |
|
7162 |
" |
|
7163 |
s := ReadStream on:sel. |
|
16529 | 7164 |
clsName := (s upTo:sep) withoutSeparators. |
2813 | 7165 |
[s peek == sep] whileTrue:[s next]. |
16529 | 7166 |
sel := (s upToEnd) withoutSeparators. |
2813 | 7167 |
|
7168 |
(clsName endsWith:' class') ifTrue:[ |
|
7169 |
isMeta := true. |
|
12713
7cccc4a7733c
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
12631
diff
changeset
|
7170 |
clsName := clsName copyButLast:6 "copyTo:(clsName size - 5)" |
2813 | 7171 |
] ifFalse:[ |
7172 |
isMeta := false |
|
7173 |
]. |
|
7174 |
] |
|
7175 |
]. |
|
7176 |
aBlock value:clsName value:sel value:isMeta |
|
7177 |
||
7178 |
"Modified: / 17.6.1996 / 16:52:14 / stefan" |
|
7179 |
"Created: / 6.2.2000 / 00:51:51 / cg" |
|
7180 |
"Modified: / 6.2.2000 / 00:56:43 / cg" |
|
7181 |
! |
|
7182 |
||
7183 |
extractSelectorFrom:aString |
|
7184 |
"given an arbitrary string, try to extract a useful selector. |
|
7185 |
Useful to open browser on a selected code fragment." |
|
7186 |
||
16529 | 7187 |
|s sel sel2 t idx| |
7188 |
||
7189 |
aString isEmptyOrNil ifTrue:[^ nil]. |
|
7190 |
||
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
7191 |
(idx := aString indexOf:$») ~~ 0 ifTrue:[ |
16529 | 7192 |
s := (aString copyFrom:idx+1) withoutSeparators. |
7193 |
s isEmpty ifTrue:[^ nil]. |
|
7194 |
] ifFalse:[ |
|
7195 |
s := aString asString string withoutSeparators. |
|
7196 |
]. |
|
15976 | 7197 |
sel := s asSymbolIfInterned. |
7198 |
sel isNil ifTrue:[ |
|
7199 |
sel := s. |
|
7200 |
] ifFalse:[ |
|
7201 |
(sel endsWith:$:) ifTrue:[ |
|
7202 |
^ sel. |
|
7203 |
]. |
|
6705 | 7204 |
]. |
7205 |
||
2813 | 7206 |
t := Parser selectorInExpression:sel. |
7207 |
t notNil ifTrue:[ |
|
7208 |
sel := t |
|
7209 |
]. |
|
16529 | 7210 |
(sel = s or:[sel isNil or:[t == #'>>']]) ifTrue:[ |
16863 | 7211 |
"oops - that's probably not what we want here ..." |
2813 | 7212 |
self extractClassAndSelectorFrom:s into:[:c :s :m | |
7213 |
sel := s |
|
7214 |
] |
|
7215 |
]. |
|
15976 | 7216 |
s := sel asSymbolIfInterned. |
7217 |
s notNil ifTrue:[ |
|
7218 |
^ s. |
|
7219 |
]. |
|
7220 |
||
7221 |
(sel startsWith:$#) ifTrue:[ |
|
7222 |
sel2 := sel copyFrom:2. |
|
7223 |
((sel2 startsWith:$') and:[(sel2 endsWith:$')]) ifTrue:[ |
|
7224 |
sel2 := (sel2 copyFrom:2) copyButLast:1 |
|
7225 |
]. |
|
7226 |
(sel2 := sel2 asSymbolIfInterned) notNil ifTrue:[ |
|
7227 |
^ sel2. |
|
8047
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7228 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7229 |
]. |
8bc319ff9ba7
better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents:
7998
diff
changeset
|
7230 |
|
2813 | 7231 |
^ sel |
7232 |
||
7233 |
" |
|
7234 |
self extractSelectorFrom:'at:put:' |
|
7235 |
self extractSelectorFrom:'#at:put:' |
|
15976 | 7236 |
self extractSelectorFrom:'#''at:put:''' |
2813 | 7237 |
self extractSelectorFrom:'at:something put:someValue' |
7238 |
self extractSelectorFrom:'self at:something put:someValue' |
|
7239 |
self extractSelectorFrom:'(self at:something put:someValue)' |
|
7240 |
self extractSelectorFrom:'[self at:something put:someValue] value' |
|
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
7241 |
self extractSelectorFrom:'Array » at:put:' |
2813 | 7242 |
self extractSelectorFrom:'Array>>at:put:' |
15976 | 7243 |
self extractSelectorFrom:'Array>>#at:put:' |
7244 |
self extractSelectorFrom:'Array>>#''at:put:''' |
|
2813 | 7245 |
" |
7246 |
||
7247 |
"Created: / 6.2.2000 / 00:49:44 / cg" |
|
7248 |
"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
|
7249 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7250 |
|
13028 | 7251 |
getClassThenPerform:aSelector |
7252 |
|classNameEntered classEntered enterBox resources| |
|
7253 |
||
7254 |
"/ new Code: |
|
7255 |
classNameEntered := self askForClassName. |
|
7256 |
||
7257 |
"/ old Code: |
|
7258 |
"/ resources := self classResources. |
|
7259 |
"/ |
|
7260 |
"/ enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:'). |
|
7261 |
"/ enterBox okText:(resources string:'Browse'). |
|
7262 |
"/ enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock). |
|
7263 |
"/ enterBox action:[:className | classNameEntered := className]. |
|
7264 |
"/ enterBox showAtPointer. |
|
7265 |
"/ |
|
7266 |
classNameEntered notEmptyOrNil ifTrue:[ |
|
7267 |
classEntered := Smalltalk classNamed:classNameEntered. |
|
7268 |
classEntered isNil ifTrue:[ |
|
7269 |
self warn:(resources string:'No such class'). |
|
7270 |
] ifFalse:[ |
|
7271 |
self perform:aSelector with:classEntered |
|
7272 |
] |
|
7273 |
]. |
|
7274 |
||
7275 |
" |
|
7276 |
SystemBrowser getClassThenPerform:#browseClass: |
|
7277 |
" |
|
7278 |
||
7279 |
"Modified: / 10-08-2006 / 12:54:20 / cg" |
|
7280 |
! |
|
7281 |
||
6560
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7282 |
resourceEditorClassFor:aResource |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7283 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7284 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7285 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7286 |
(aResource == #canvas) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7287 |
^ UIPainter |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7288 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7289 |
(aResource == #menu) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7290 |
^ MenuEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7291 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7292 |
((aResource == #image) or:[aResource == #fileImage]) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7293 |
^ ImageEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7294 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7295 |
(aResource == #help) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7296 |
^ UIHelpTool |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7297 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7298 |
(aResource == #tableColumns) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7299 |
^ DataSetBuilder |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7300 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7301 |
(aResource == #tabList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7302 |
^ TabListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7303 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7304 |
(aResource == #hierarchicalList) ifTrue:[ |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7305 |
^ HierarchicalListEditor |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7306 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7307 |
^ nil |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7308 |
! |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7309 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7310 |
resourceEditorClassForResources:resources |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7311 |
"resources are from a methods resource-info; |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7312 |
return an appropriate editor class." |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7313 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7314 |
resources keysDo:[:eachResource | |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7315 |
|editor| |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7316 |
|
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7317 |
editor := self resourceEditorClassFor:eachResource. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7318 |
editor notNil ifTrue:[ ^ editor]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7319 |
]. |
80370d5aa971
share code between old and new browser
Claus Gittinger <cg@exept.de>
parents:
6552
diff
changeset
|
7320 |
^ nil |
2813 | 7321 |
! ! |
7322 |
||
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7323 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7324 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7325 |
className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7326 |
"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
|
7327 |
|
13947 | 7328 |
^ className ? '*anonymous*' |
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7329 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7330 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7331 |
className:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7332 |
"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
|
7333 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7334 |
className := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7335 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7336 |
|
3151 | 7337 |
className:classNameArg meta:metaArg selector:selectorArg |
7338 |
className := classNameArg. |
|
7339 |
meta := metaArg. |
|
7340 |
selector := selectorArg. |
|
7341 |
! |
|
7342 |
||
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7343 |
icon |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7344 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7345 |
^nil |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7346 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7347 |
"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
|
7348 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7349 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7350 |
label |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7351 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7352 |
^self displayString |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7353 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7354 |
"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
|
7355 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7356 |
|
3131
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7357 |
meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7358 |
"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
|
7359 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7360 |
^ meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7361 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7362 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7363 |
meta:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7364 |
"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
|
7365 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7366 |
meta := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7367 |
! |
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 |
selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7370 |
"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
|
7371 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7372 |
^ selector |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7373 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7374 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7375 |
selector:something |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7376 |
"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
|
7377 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7378 |
selector := something. |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7379 |
! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7380 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7381 |
theClass |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7382 |
^ Smalltalk at:className asSymbol |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7383 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7384 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7385 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7386 |
|
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7387 |
= anEntry |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7388 |
^ className = anEntry className |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7389 |
and:[meta = anEntry meta |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7390 |
and:[selector = anEntry selector]] |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7391 |
! ! |
883d7b34bb86
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3125
diff
changeset
|
7392 |
|
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7393 |
!SystemBrowser::BrowserHistoryEntry methodsFor:'displaying'! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7394 |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7395 |
displayOn:aGCOrStream |
13820 | 7396 |
| cls name | |
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7397 |
|
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7398 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7399 |
"/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7400 |
(aGCOrStream isStream) ifFalse:[ |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7401 |
^ super displayOn:aGCOrStream |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7402 |
]. |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7403 |
|
13820 | 7404 |
cls := self theClass. |
7405 |
name := cls notNil ifTrue:[cls nameInBrowser] ifFalse:[className]. |
|
7406 |
name printOn:aGCOrStream. |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7407 |
meta ifTrue:[ |
16037 | 7408 |
"/ aGCOrStream emphasis:#bold. |
7409 |
aGCOrStream nextPutAll:' class'. |
|
7410 |
"/ aGCOrStream emphasis:nil. |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7411 |
]. |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7412 |
selector notNil ifTrue:[ |
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7413 |
aGCOrStream |
19606
77274bbcd92b
Theming: use `SystemBrowser emphasisForChangesCode`
Jan Vrany <jan.vrany@labware.com>
parents:
19600
diff
changeset
|
7414 |
nextPutAll:' » '; |
16037 | 7415 |
emphasis:#bold; |
7416 |
nextPutAll:selector; |
|
7417 |
emphasis:nil. |
|
13319
93eadba89fa6
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
13128
diff
changeset
|
7418 |
]. |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7419 |
|
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7420 |
"Created: / 15-04-2010 / 13:47:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7421 |
"Modified: / 03-07-2011 / 13:44:32 / cg" |
13820 | 7422 |
"Modified: / 14-10-2013 / 12:18:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7423 |
! ! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7424 |
|
820
2a412afad51d
fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
7425 |
!SystemBrowser class methodsFor:'documentation'! |
93 | 7426 |
|
12822 | 7427 |
version |
15831 | 7428 |
^ '$Header$' |
12822 | 7429 |
! |
7430 |
||
8851 | 7431 |
version_CVS |
15831 | 7432 |
^ '$Header$' |
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7433 |
! |
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7434 |
|
19611
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
7435 |
version_HG |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
7436 |
|
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
7437 |
^ '$Changeset: <not expanded> $' |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
7438 |
! |
a4b9d283ca40
Themes: use stylesheet to define color and style for modified buffer label
Jan Vrany <jan.vrany@labware.com>
parents:
19606
diff
changeset
|
7439 |
|
10048
9e92f3285051
changed: #instVarOverlayXmlSpec
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
7440 |
version_SVN |
15831 | 7441 |
^ '$Id$' |
36 | 7442 |
! ! |
4112 | 7443 |
|
12475 | 7444 |
|
203 | 7445 |
SystemBrowser initialize! |