author | Claus Gittinger <cg@exept.de> |
Mon, 14 Feb 2011 18:16:30 +0100 | |
changeset 9774 | 5bde45b1c359 |
parent 9462 | 1b58e3fee05b |
child 10200 | 454d96e87e85 |
permissions | -rw-r--r-- |
5591 | 1 |
" |
2 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
BrowserList subclass:#MethodList |
|
17 |
instanceVariableNames:'classes selectedMethodNameIndices methodList lastSelectedMethods |
|
18 |
browserNameList variableFilter filterClassVars updateProcess |
|
19 |
lastShowClass lastShowCategory lastShowClassFirst |
|
20 |
showMethodInheritance lastMethodClass lastMethodClassesSubclasses |
|
6259
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
21 |
classAndSelectorsRedefinedBySubclassesOfClass showClass |
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
22 |
showMethodComplexity showMethodTypeIcon |
9438 | 23 |
showImageResourceMethodsImages showCoverageInformation' |
6271 | 24 |
classVariableNames:'ShowComplexityValue' |
5591 | 25 |
poolDictionaries:'' |
26 |
category:'Interface-Browsers-New' |
|
27 |
! |
|
28 |
||
29 |
!MethodList class methodsFor:'documentation'! |
|
30 |
||
31 |
copyright |
|
32 |
" |
|
33 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
34 |
All Rights Reserved |
|
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
38 |
inclusion of the above copyright notice. This software may not |
|
39 |
be provided or otherwise made available to, or used by, any |
|
40 |
other person. No title to or ownership of the software is |
|
41 |
hereby transferred. |
|
42 |
" |
|
43 |
! ! |
|
44 |
||
45 |
!MethodList class methodsFor:'interface specs'! |
|
46 |
||
47 |
singleMethodWindowSpec |
|
48 |
"This resource specification was automatically generated |
|
49 |
by the UIPainter of ST/X." |
|
50 |
||
51 |
"Do not manually edit this!! If it is corrupted, |
|
52 |
the UIPainter may not be able to read the specification." |
|
53 |
||
54 |
" |
|
55 |
UIPainter new openOnClass:MethodList andSelector:#singleMethodWindowSpec |
|
56 |
MethodList new openInterface:#singleMethodWindowSpec |
|
57 |
" |
|
58 |
||
59 |
<resource: #canvas> |
|
60 |
||
61 |
^ |
|
62 |
#(#FullSpec |
|
63 |
#name: #singleMethodWindowSpec |
|
64 |
#window: |
|
65 |
#(#WindowSpec |
|
66 |
#label: 'SingleSelectorList' |
|
67 |
#name: 'SingleSelectorList' |
|
68 |
#min: #(#Point 0 0) |
|
69 |
#max: #(#Point 1024 721) |
|
70 |
#bounds: #(#Rectangle 12 22 312 322) |
|
71 |
) |
|
72 |
#component: |
|
73 |
#(#SpecCollection |
|
74 |
#collection: #( |
|
75 |
#(#LabelSpec |
|
76 |
#label: 'MethodName' |
|
77 |
#name: 'MethodLabel' |
|
78 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 25 0) |
|
79 |
#translateLabel: true |
|
80 |
#labelChannel: #methodLabelHolder |
|
81 |
#menu: #menuHolder |
|
82 |
) |
|
83 |
) |
|
84 |
||
85 |
) |
|
86 |
) |
|
87 |
||
88 |
"Modified: / 1.3.2000 / 20:50:15 / cg" |
|
89 |
! |
|
90 |
||
91 |
windowSpec |
|
92 |
"This resource specification was automatically generated |
|
93 |
by the UIPainter of ST/X." |
|
94 |
||
95 |
"Do not manually edit this!! If it is corrupted, |
|
96 |
the UIPainter may not be able to read the specification." |
|
97 |
||
98 |
" |
|
99 |
UIPainter new openOnClass:MethodList andSelector:#windowSpec |
|
100 |
MethodList new openInterface:#windowSpec |
|
101 |
MethodList open |
|
102 |
" |
|
103 |
||
104 |
<resource: #canvas> |
|
105 |
||
106 |
^ |
|
107 |
#(#FullSpec |
|
108 |
#name: #windowSpec |
|
109 |
#window: |
|
110 |
#(#WindowSpec |
|
111 |
#label: 'SelectorList' |
|
112 |
#name: 'SelectorList' |
|
113 |
#min: #(#Point 0 0) |
|
114 |
#bounds: #(#Rectangle 12 22 312 322) |
|
115 |
) |
|
116 |
#component: |
|
117 |
#(#SpecCollection |
|
118 |
#collection: #( |
|
119 |
#(#SequenceViewSpec |
|
120 |
#name: 'List' |
|
121 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
122 |
#tabable: true |
|
123 |
#model: #selectedMethodNameIndices |
|
124 |
#menu: #menuHolder |
|
125 |
#hasHorizontalScrollBar: true |
|
126 |
#hasVerticalScrollBar: true |
|
127 |
#miniScrollerHorizontal: true |
|
128 |
#isMultiSelect: true |
|
129 |
#valueChangeSelector: #selectionChangedByClick |
|
130 |
#useIndex: true |
|
131 |
#sequenceList: #browserNameList |
|
132 |
#doubleClickChannel: #doubleClickChannel |
|
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
133 |
#properties: |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
134 |
#(#PropertyListDictionary |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
135 |
#dragArgument: nil |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
136 |
#dropArgument: nil |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
137 |
#canDropSelector: #canDropContext: |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
138 |
#dropSelector: #doDropContext: |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
139 |
) |
5591 | 140 |
) |
141 |
) |
|
142 |
||
143 |
) |
|
144 |
) |
|
145 |
! ! |
|
146 |
||
147 |
!MethodList class methodsFor:'plugIn spec'! |
|
148 |
||
149 |
aspectSelectors |
|
150 |
"This resource specification was automatically generated |
|
151 |
by the UIPainter of ST/X." |
|
152 |
||
153 |
"Do not manually edit this. If it is corrupted, |
|
154 |
the UIPainter may not be able to read the specification." |
|
155 |
||
156 |
"Return a description of exported aspects; |
|
157 |
these can be connected to aspects of an embedding application |
|
158 |
(if this app is embedded in a subCanvas)." |
|
159 |
||
160 |
^ #( |
|
9421 | 161 |
"/ #classHolder |
6259
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
162 |
#(#doubleClickChannel #action ) |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
163 |
#forceGeneratorTrigger |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
164 |
#immediateUpdate |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
165 |
#inGeneratorHolder |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
166 |
#menuHolder |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
167 |
#methodCategoryHolder |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
168 |
#packageFilter |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
169 |
#selectedMethods |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
170 |
#selectionChangeCondition |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
171 |
#updateTrigger |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
172 |
#variableFilter |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
173 |
#filterClassVars |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
174 |
#showMethodInheritance |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
175 |
#showMethodComplexity |
6268 | 176 |
#showMethodTypeIcon |
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
177 |
#showImageResourceMethodsImages |
6259
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
178 |
#sortBy |
9438 | 179 |
#showCoverageInformation |
5591 | 180 |
). |
9421 | 181 |
|
9438 | 182 |
"Modified: / 27-04-2010 / 16:13:57 / cg" |
5591 | 183 |
! ! |
184 |
||
185 |
!MethodList methodsFor:'aspects'! |
|
186 |
||
187 |
browserNameList |
|
188 |
browserNameList isNil ifTrue:[ |
|
189 |
browserNameList := List new. |
|
190 |
]. |
|
191 |
^ browserNameList. |
|
192 |
||
193 |
"Modified: / 31.1.2000 / 00:42:44 / cg" |
|
194 |
"Created: / 5.2.2000 / 22:38:32 / cg" |
|
195 |
! |
|
196 |
||
197 |
defaultSlaveModeValue |
|
198 |
^ false. |
|
199 |
! |
|
200 |
||
201 |
filterClassVars |
|
202 |
filterClassVars isNil ifTrue:[ |
|
203 |
filterClassVars := false asValue. |
|
204 |
filterClassVars addDependent:self |
|
205 |
]. |
|
206 |
^ filterClassVars |
|
207 |
! |
|
208 |
||
209 |
filterClassVars:aValueHolder |
|
210 |
filterClassVars notNil ifTrue:[ |
|
211 |
filterClassVars removeDependent:self |
|
212 |
]. |
|
213 |
filterClassVars := aValueHolder. |
|
214 |
filterClassVars notNil ifTrue:[ |
|
215 |
filterClassVars addDependent:self |
|
216 |
]. |
|
217 |
! |
|
218 |
||
219 |
methodLabelHolder |
|
220 |
^ self pseudoListLabelHolder |
|
221 |
||
222 |
"Created: / 1.3.2000 / 20:50:07 / cg" |
|
223 |
! |
|
224 |
||
225 |
methodList |
|
226 |
^ methodList |
|
227 |
! |
|
228 |
||
229 |
selectedMethodNameIndices |
|
230 |
selectedMethodNameIndices isNil ifTrue:[ |
|
231 |
selectedMethodNameIndices := ValueHolder new. |
|
232 |
selectedMethodNameIndices addDependent:self |
|
233 |
]. |
|
234 |
^ selectedMethodNameIndices. |
|
235 |
||
236 |
"Modified: / 5.2.2000 / 00:31:48 / cg" |
|
237 |
"Created: / 5.2.2000 / 22:59:31 / cg" |
|
238 |
! |
|
239 |
||
240 |
selectedMethods |
|
241 |
^ self selectionHolder |
|
242 |
! |
|
243 |
||
244 |
selectedMethods:aValueHolder |
|
245 |
^ self selectionHolder:aValueHolder |
|
246 |
! |
|
247 |
||
9438 | 248 |
showCoverageInformation |
249 |
showCoverageInformation isNil ifTrue:[ |
|
250 |
showCoverageInformation := false asValue. |
|
251 |
showCoverageInformation addDependent:self |
|
9430 | 252 |
]. |
9438 | 253 |
^ showCoverageInformation |
9430 | 254 |
|
9438 | 255 |
"Created: / 27-04-2010 / 16:13:28 / cg" |
9430 | 256 |
! |
257 |
||
9438 | 258 |
showCoverageInformation:aValueHolder |
259 |
showCoverageInformation notNil ifTrue:[ |
|
260 |
showCoverageInformation removeDependent:self |
|
9430 | 261 |
]. |
9438 | 262 |
showCoverageInformation := aValueHolder. |
263 |
showCoverageInformation notNil ifTrue:[ |
|
264 |
showCoverageInformation addDependent:self |
|
9430 | 265 |
]. |
266 |
||
9438 | 267 |
"Created: / 27-04-2010 / 16:13:35 / cg" |
9430 | 268 |
! |
269 |
||
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
270 |
showImageResourceMethodsImages |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
271 |
showImageResourceMethodsImages isNil ifTrue:[ |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
272 |
showImageResourceMethodsImages := false asValue. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
273 |
showImageResourceMethodsImages addDependent:self |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
274 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
275 |
^ showImageResourceMethodsImages |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
276 |
! |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
277 |
|
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
278 |
showImageResourceMethodsImages:aValueHolder |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
279 |
showImageResourceMethodsImages notNil ifTrue:[ |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
280 |
showImageResourceMethodsImages removeDependent:self |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
281 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
282 |
showImageResourceMethodsImages := aValueHolder. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
283 |
showImageResourceMethodsImages notNil ifTrue:[ |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
284 |
showImageResourceMethodsImages addDependent:self |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
285 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
286 |
! |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
287 |
|
6259
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
288 |
showMethodComplexity |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
289 |
showMethodComplexity isNil ifTrue:[ |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
290 |
showMethodComplexity := false asValue. |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
291 |
showMethodComplexity addDependent:self |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
292 |
]. |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
293 |
^ showMethodComplexity |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
294 |
! |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
295 |
|
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
296 |
showMethodComplexity:aValueHolder |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
297 |
showMethodComplexity notNil ifTrue:[ |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
298 |
showMethodComplexity removeDependent:self |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
299 |
]. |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
300 |
showMethodComplexity := aValueHolder. |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
301 |
showMethodComplexity notNil ifTrue:[ |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
302 |
showMethodComplexity addDependent:self |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
303 |
]. |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
304 |
! |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
305 |
|
5591 | 306 |
showMethodInheritance |
307 |
showMethodInheritance isNil ifTrue:[ |
|
308 |
showMethodInheritance := false asValue. |
|
309 |
showMethodInheritance addDependent:self |
|
310 |
]. |
|
311 |
^ showMethodInheritance |
|
312 |
! |
|
313 |
||
314 |
showMethodInheritance:aValueHolder |
|
315 |
showMethodInheritance notNil ifTrue:[ |
|
316 |
showMethodInheritance removeDependent:self |
|
317 |
]. |
|
318 |
showMethodInheritance := aValueHolder. |
|
319 |
showMethodInheritance notNil ifTrue:[ |
|
320 |
showMethodInheritance addDependent:self |
|
321 |
]. |
|
322 |
! |
|
323 |
||
6268 | 324 |
showMethodTypeIcon |
325 |
showMethodTypeIcon isNil ifTrue:[ |
|
326 |
showMethodTypeIcon := true asValue. |
|
327 |
showMethodTypeIcon addDependent:self |
|
328 |
]. |
|
329 |
^ showMethodTypeIcon |
|
330 |
! |
|
331 |
||
332 |
showMethodTypeIcon:aValueHolder |
|
333 |
showMethodTypeIcon notNil ifTrue:[ |
|
334 |
showMethodTypeIcon removeDependent:self |
|
335 |
]. |
|
336 |
showMethodTypeIcon := aValueHolder. |
|
337 |
showMethodTypeIcon notNil ifTrue:[ |
|
338 |
showMethodTypeIcon addDependent:self |
|
339 |
]. |
|
340 |
! |
|
341 |
||
5591 | 342 |
variableFilter |
343 |
variableFilter isNil ifTrue:[ |
|
344 |
variableFilter := nil asValue. |
|
345 |
variableFilter addDependent:self |
|
346 |
]. |
|
347 |
^ variableFilter |
|
348 |
! |
|
349 |
||
350 |
variableFilter:aValueHolder |
|
351 |
variableFilter notNil ifTrue:[ |
|
352 |
variableFilter removeDependent:self |
|
353 |
]. |
|
354 |
variableFilter := aValueHolder. |
|
355 |
variableFilter notNil ifTrue:[ |
|
356 |
variableFilter addDependent:self |
|
357 |
]. |
|
358 |
! ! |
|
359 |
||
360 |
!MethodList methodsFor:'change & update'! |
|
361 |
||
362 |
delayedUpdate:something with:aParameter from:changedObject |
|
363 |
|cls sel oldMethod newMethod methods newSelection |
|
364 |
selectionHolder selection needSelectionChange| |
|
365 |
||
366 |
selectionHolder := self selectedMethods. |
|
367 |
selection := selectionHolder value. |
|
368 |
||
369 |
changedObject == Smalltalk ifTrue:[ |
|
5998 | 370 |
classes notNil ifTrue:[ |
371 |
something == #methodCategory ifTrue:[ |
|
372 |
"/ ignore here - methodCategoryList will tell me if required |
|
373 |
^ self |
|
374 |
]. |
|
6663
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
375 |
(something == #classOrganization |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
376 |
or:[ something == #methodCategoryAdded |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
377 |
or:[ something == #methodCategoryRemoved |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
378 |
or:[ something == #methodCategoriesRemoved |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
379 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
5998 | 380 |
"/ ignore here - methodCategoryList will tell me if required |
381 |
^ self |
|
382 |
]. |
|
5591 | 383 |
|
5998 | 384 |
something == #methodInClass ifTrue:[ |
385 |
"/ a method has been added/changed |
|
386 |
cls := aParameter at:1. |
|
387 |
(classes includesIdentical:cls) ifTrue:[ |
|
388 |
sel := aParameter at:2. |
|
389 |
oldMethod := aParameter at:3. |
|
390 |
newMethod := cls compiledMethodAt:sel. |
|
391 |
(oldMethod notNil and:[newMethod notNil]) ifTrue:[ |
|
392 |
"a method was changed & acccepted; |
|
393 |
No need for a rescan of the methodDictionary; |
|
394 |
however, ensure that the refs to the old method are updated |
|
395 |
" |
|
396 |
methods := selection. |
|
397 |
methods size > 0 ifTrue:[ |
|
398 |
(methods includesIdentical:oldMethod) ifTrue:[ |
|
399 |
needSelectionChange := true. |
|
400 |
] |
|
401 |
]. |
|
402 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
403 |
lastSelectedMethods notNil ifTrue:[ |
|
404 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
405 |
]. |
|
406 |
methods size > 0 ifTrue:[ |
|
407 |
methods := methods asOrderedCollection. |
|
408 |
methods replaceAllIdentical:oldMethod with:newMethod. |
|
409 |
]. |
|
5591 | 410 |
|
5998 | 411 |
needSelectionChange == true ifTrue:[ |
412 |
selectionHolder setValue:methods. |
|
6575
94f336bcb07b
update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents:
6490
diff
changeset
|
413 |
"/ self enqueueDelayedMethodsSelectionChanged. |
94f336bcb07b
update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents:
6490
diff
changeset
|
414 |
"/ need this to inform my browser that method was changed |
94f336bcb07b
update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents:
6490
diff
changeset
|
415 |
"/ by someone else. |
94f336bcb07b
update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents:
6490
diff
changeset
|
416 |
selectionHolder changed. |
5998 | 417 |
]. |
418 |
(variableFilter value size > 0 |
|
419 |
or:[oldMethod package ~= newMethod package |
|
6260 | 420 |
or:[oldMethod resources ~= newMethod resources |
6694 | 421 |
or:[showMethodComplexity value == true]]]) ifTrue:[ |
5998 | 422 |
"/ only update that methods entry |
423 |
self updateListEntryFor:newMethod. |
|
424 |
"/ sigh - must invalidate |
|
425 |
"/ self invalidateList. |
|
426 |
]. |
|
427 |
^ self. |
|
428 |
]. |
|
429 |
"/ method was added - update the methodList |
|
430 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
431 |
self invalidateList. |
|
432 |
]. |
|
433 |
^ self. |
|
434 |
]. |
|
435 |
||
436 |
something == #methodInClassRemoved ifTrue:[ |
|
437 |
cls := aParameter at:1. |
|
438 |
(classes includesIdentical:cls) ifTrue:[ |
|
439 |
sel := aParameter at:2. |
|
440 |
"/ method was removed - update the methodList |
|
441 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
442 |
self invalidateList. |
|
443 |
]. |
|
444 |
^ self. |
|
445 |
]. |
|
5591 | 446 |
|
5998 | 447 |
(something == #methodTrap |
448 |
or:[ something == #privacyOfMethod ]) ifTrue:[ |
|
449 |
cls := aParameter at:1. |
|
450 |
sel := aParameter at:2. |
|
451 |
(classes includesIdentical:cls) ifFalse:[ ^ self]. |
|
452 |
newMethod := cls compiledMethodAt:sel. |
|
453 |
newMethod isNil ifTrue:[ |
|
454 |
self invalidateList. |
|
455 |
^ self |
|
456 |
]. |
|
5591 | 457 |
|
5998 | 458 |
(something == #privacyOfMethod) ifTrue:[ |
459 |
self updateListEntryFor:newMethod. |
|
460 |
]. |
|
461 |
||
462 |
(something == #methodTrap) ifTrue:[ |
|
463 |
newMethod isWrapped ifTrue:[ |
|
464 |
oldMethod := newMethod originalMethod |
|
465 |
] ifFalse:[ |
|
466 |
selection size > 0 ifTrue:[ |
|
467 |
oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil. |
|
468 |
] |
|
469 |
]. |
|
5591 | 470 |
|
5998 | 471 |
selection size > 0 ifTrue:[ |
472 |
(selection includesIdentical:oldMethod) ifTrue:[ |
|
473 |
needSelectionChange := true. |
|
474 |
] |
|
475 |
]. |
|
476 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
477 |
lastSelectedMethods notNil ifTrue:[ |
|
478 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
479 |
]. |
|
480 |
selection size > 0 ifTrue:[ |
|
481 |
selection := selection asOrderedCollection. |
|
482 |
selection replaceAllIdentical:oldMethod with:newMethod. |
|
483 |
]. |
|
484 |
needSelectionChange == true ifTrue:[ |
|
485 |
selectionHolder changed. |
|
486 |
]. |
|
5591 | 487 |
|
5998 | 488 |
"/ actually, could just change that single item ... |
489 |
"/ ... might be cheaper, if list is huge. |
|
490 |
"/ only update that methods entry |
|
491 |
self updateListEntryFor:newMethod. |
|
492 |
"/ self invalidateList. |
|
493 |
]. |
|
494 |
^ self |
|
495 |
]. |
|
5591 | 496 |
|
6846 | 497 |
(something == #projectOrganization |
498 |
or:[something == #lastTestRunResult]) ifTrue:[ |
|
5998 | 499 |
aParameter notNil ifTrue:[ |
500 |
cls := aParameter at:1. |
|
501 |
cls notNil ifTrue:[ |
|
502 |
((classes includesIdentical:cls theNonMetaclass) |
|
503 |
or:[(classes includesIdentical:cls theMetaclass)]) ifTrue:[ |
|
504 |
self invalidateList. |
|
505 |
]. |
|
506 |
]. |
|
507 |
] ifFalse:[ |
|
508 |
self invalidateList. |
|
509 |
]. |
|
510 |
^ self |
|
511 |
]. |
|
6846 | 512 |
|
5998 | 513 |
"/ everything else is ignored |
514 |
"/ self halt. |
|
515 |
]. |
|
516 |
^ self |
|
5591 | 517 |
]. |
518 |
||
519 |
"/ something == #organization ifTrue:[ |
|
520 |
"/self halt:'no longer'. |
|
521 |
"/^ self. |
|
522 |
"/ "/ a methods cateory has changed |
|
523 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
|
524 |
"/ aParameter isSymbol ifTrue:[ |
|
525 |
"/ "/ a method with a new category |
|
526 |
"/ (self methodList includesIdentical:(changedObject compiledMethodAt:aParameter)) ifTrue:[ |
|
527 |
"/ self invalidateList. |
|
528 |
"/ ]. |
|
529 |
"/ ^ self. |
|
530 |
"/ ]. |
|
531 |
"/ "/ a new category (no method yet) |
|
532 |
"/ self invalidateList |
|
533 |
"/ ]. |
|
534 |
"/ ^ self |
|
535 |
"/ ]. |
|
536 |
||
537 |
"/ something == #methodDictionary ifTrue:[ |
|
538 |
"/self halt:'no longer'. |
|
539 |
"/^ self. |
|
540 |
"/ "/ a method has been added/removed |
|
541 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
|
542 |
"/ aParameter isArray ifTrue:[ |
|
543 |
"/ sel := aParameter at:1. |
|
544 |
"/ oldMethod := aParameter at:2. |
|
545 |
"/ newMethod := changedObject compiledMethodAt:sel. |
|
546 |
"/ oldMethod notNil ifTrue:[ |
|
547 |
"/ "a method was changed & acccepted; |
|
548 |
"/ No need for a rescan of the methodDictionary; |
|
549 |
"/ however, ensure that the refs to the old method are updated |
|
550 |
"/ " |
|
551 |
"/ methods := selection. |
|
552 |
"/ methods size > 0 ifTrue:[ |
|
553 |
"/ (methods includesIdentical:oldMethod) ifTrue:[ |
|
554 |
"/ needSelectionChange := true. |
|
555 |
"/ ] |
|
556 |
"/ ]. |
|
557 |
"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
|
558 |
"/ lastSelectedMethods notNil ifTrue:[ |
|
559 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
560 |
"/ ]. |
|
561 |
"/ methods size > 0 ifTrue:[ |
|
562 |
"/ methods := methods asOrderedCollection. |
|
563 |
"/ methods replaceAllIdentical:oldMethod with:newMethod. |
|
564 |
"/ ]. |
|
565 |
"/ needSelectionChange == true ifTrue:[ |
|
566 |
"/ selectionHolder setValue:methods. |
|
567 |
"/ selectionHolder changed. |
|
568 |
"/ ]. |
|
569 |
"/ ^ self. |
|
570 |
"/ ] |
|
571 |
"/ ]. |
|
572 |
"/ "/ class has changed must update the methodList |
|
573 |
"/ self invalidateList. |
|
574 |
"/ ]. |
|
575 |
"/ ^ self. |
|
576 |
"/ ]. |
|
577 |
||
578 |
"/ something == #projectOrganization ifTrue:[ |
|
579 |
"/ ((classes includesIdentical:changedObject theNonMetaclass) |
|
580 |
"/ or:[(classes includesIdentical:changedObject theMetaclass)]) ifTrue:[ |
|
581 |
"/ self invalidateList. |
|
582 |
"/ ]. |
|
583 |
"/ ^ self |
|
584 |
"/ ]. |
|
585 |
||
586 |
changedObject == sortBy ifTrue:[ |
|
5998 | 587 |
listValid ~~ true ifTrue:[ "/ could be nil |
588 |
inGeneratorHolder value isNil ifTrue:[ |
|
589 |
"/ ok, no need to react on that one |
|
590 |
"/ (will invalidate anyway, once I have more info at hand) |
|
591 |
^ self |
|
592 |
]. |
|
593 |
]. |
|
594 |
self invalidateList. |
|
595 |
^ self |
|
5591 | 596 |
]. |
597 |
||
598 |
(changedObject == variableFilter |
|
599 |
or:[changedObject == filterClassVars |
|
6259
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
600 |
or:[changedObject == showMethodInheritance |
e440c14b02aa
experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents:
5998
diff
changeset
|
601 |
or:[changedObject == showMethodComplexity]]]) ifTrue:[ |
5998 | 602 |
self invalidateList. |
603 |
^ self |
|
5591 | 604 |
]. |
605 |
||
606 |
changedObject == selectedMethodNameIndices ifTrue:[ |
|
5998 | 607 |
newSelection := self selectedMethodNameIndices value collect:[:idx | methodList at:idx]. |
608 |
newSelection ~= selection ifTrue:[ |
|
609 |
selectionHolder value:newSelection. |
|
610 |
lastSelectedMethods := newSelection. |
|
611 |
lastSelectedMethods notNil ifTrue:[ |
|
612 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
613 |
]. |
|
614 |
] ifFalse:[ |
|
615 |
"/ a reselect - force update |
|
5591 | 616 |
"/ selection size == 1 ifTrue:[ |
5998 | 617 |
selectionHolder setValue:newSelection. |
618 |
selectionHolder changed:#value. |
|
5591 | 619 |
"/ ]. |
5998 | 620 |
]. |
621 |
^ self |
|
5591 | 622 |
]. |
623 |
changedObject == selectionHolder ifTrue:[ |
|
5998 | 624 |
self selectedMethodsChanged. |
625 |
lastSelectedMethods := selectionHolder value. |
|
626 |
lastSelectedMethods notNil ifTrue:[ |
|
627 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
628 |
]. |
|
629 |
^ self |
|
5591 | 630 |
]. |
631 |
"/ something == #methodTrap ifTrue:[ |
|
632 |
"/self halt:'no longer'. |
|
633 |
"/^ self. |
|
634 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
|
635 |
"/ newMethod := changedObject compiledMethodAt:aParameter. |
|
636 |
"/ newMethod isNil ifTrue:[ |
|
637 |
"/ self invalidateList. |
|
638 |
"/ ^ self |
|
639 |
"/ ]. |
|
640 |
"/ newMethod isWrapped ifTrue:[ |
|
641 |
"/ oldMethod := newMethod originalMethod |
|
642 |
"/ ] ifFalse:[ |
|
643 |
"/ selection size > 0 ifTrue:[ |
|
644 |
"/ oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil. |
|
645 |
"/ ] |
|
646 |
"/ ]. |
|
647 |
"/ |
|
648 |
"/ selection size > 0 ifTrue:[ |
|
649 |
"/ (selection includesIdentical:oldMethod) ifTrue:[ |
|
650 |
"/ needSelectionChange := true. |
|
651 |
"/ ] |
|
652 |
"/ ]. |
|
653 |
"/"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
|
654 |
"/ lastSelectedMethods notNil ifTrue:[ |
|
655 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
656 |
"/ ]. |
|
657 |
"/ selection size > 0 ifTrue:[ |
|
658 |
"/ selection := selection asOrderedCollection. |
|
659 |
"/ selection replaceAllIdentical:oldMethod with:newMethod. |
|
660 |
"/ ]. |
|
661 |
"/ needSelectionChange == true ifTrue:[ |
|
662 |
"/ selectionHolder changed. |
|
663 |
"/ ]. |
|
664 |
"/ self invalidateList. |
|
665 |
"/ ^ self |
|
666 |
"/ ]. |
|
667 |
"/ ^ self |
|
668 |
"/ ]. |
|
669 |
super delayedUpdate:something with:aParameter from:changedObject |
|
670 |
||
6846 | 671 |
"Created: / 05-02-2000 / 13:42:14 / cg" |
672 |
"Modified: / 06-08-2006 / 10:36:49 / cg" |
|
5591 | 673 |
! |
674 |
||
675 |
selectedMethodsChanged |
|
676 |
"the set of selected methods has changed; |
|
677 |
update the selection-index collection (for the selectionInListView)" |
|
678 |
||
679 |
|indices methods reverseMap |
|
680 |
selectedMethodsHolder selectedMethods selectedMethodNameIndicesHolder| |
|
681 |
||
682 |
methods := methodList ? #(). |
|
683 |
methods size == 0 ifTrue:[ |
|
684 |
"/ this may happen during early startup, |
|
685 |
"/ when invoked with a preset methodSelection, |
|
686 |
"/ and the methodGenerator has not yet been setup |
|
687 |
"/ to not clobber the selection, defer the update |
|
688 |
"/ until the methodList arrives ... |
|
689 |
^ self |
|
690 |
]. |
|
691 |
||
692 |
selectedMethodsHolder := self selectedMethods. |
|
693 |
selectedMethods := selectedMethodsHolder value. |
|
694 |
||
695 |
"/ check if all is selected (likely) |
|
696 |
((selectedMethods size == methodList size) |
|
697 |
and:[selectedMethods = methodList]) ifTrue:[ |
|
698 |
indices := (1 to:selectedMethods size) |
|
699 |
] ifFalse:[ |
|
700 |
selectedMethods size > 100 ifTrue:[ |
|
701 |
"/ check if all is selected (likely) |
|
702 |
((selectedMethods size == methodList size) |
|
703 |
and:[selectedMethods = methodList]) ifTrue:[ |
|
704 |
indices := (1 to:selectedMethods size) |
|
705 |
] ifFalse:[ |
|
706 |
"/ for big collections, generate a reverse map |
|
707 |
reverseMap := IdentityDictionary new. |
|
708 |
methods keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx]. |
|
709 |
indices := selectedMethods collect:[:eachSelectedMethod | |
|
710 |
reverseMap at:eachSelectedMethod ifAbsent:0 |
|
711 |
] |
|
712 |
] |
|
713 |
] ifFalse:[ |
|
714 |
indices := (selectedMethods ? #()) collect:[:eachSelectedMethod | |
|
715 |
methods identityIndexOf:eachSelectedMethod. |
|
716 |
] |
|
717 |
]. |
|
718 |
indices := indices select:[:idx | idx ~= 0]. |
|
719 |
]. |
|
720 |
||
721 |
selectedMethodNameIndicesHolder := self selectedMethodNameIndices. |
|
722 |
selectedMethodNameIndicesHolder value ~= indices ifTrue:[ |
|
723 |
selectedMethodNameIndicesHolder value:indices. |
|
724 |
] |
|
725 |
! |
|
726 |
||
727 |
selectionChanged |
|
728 |
|methods| |
|
729 |
||
730 |
methods := ((self selectedMethodNameIndices value) ? #()) collect:[:idx | methodList at:idx]. |
|
731 |
methods notEmpty ifTrue:[ |
|
732 |
lastSelectedMethods := methods asOrderedCollection. |
|
733 |
]. |
|
734 |
"/ to allow reselect, change my valueHolder, even if the same collection |
|
735 |
"/ self selectedMethods value ~= methods ifTrue:[ |
|
736 |
self selectedMethods value:methods |
|
737 |
"/ ] |
|
738 |
||
739 |
"Created: / 5.2.2000 / 13:42:14 / cg" |
|
740 |
"Modified: / 5.2.2000 / 23:32:20 / cg" |
|
741 |
! |
|
742 |
||
743 |
selectionChangedByClick |
|
744 |
"we are not interested in that - get another notification |
|
745 |
via the changed valueHolder" |
|
746 |
||
747 |
! |
|
748 |
||
749 |
update:something with:aParameter from:changedObject |
|
750 |
|cls| |
|
751 |
||
752 |
"/ some can be ignored immediately |
|
753 |
changedObject == Smalltalk ifTrue:[ |
|
754 |
classes isNil ifTrue:[ |
|
755 |
^ self. |
|
756 |
]. |
|
757 |
something isNil ifTrue:[ |
|
758 |
"/ self halt "/ huh - Smalltalk changed - so what ? |
|
759 |
^ self. |
|
760 |
]. |
|
5998 | 761 |
|
5591 | 762 |
something == #classComment ifTrue:[ |
763 |
^ self. |
|
764 |
]. |
|
765 |
something == #classVariables ifTrue:[ |
|
766 |
^ self. |
|
767 |
]. |
|
768 |
something == #organization ifTrue:[ |
|
769 |
^ self. |
|
770 |
]. |
|
771 |
something == #methodCategory ifTrue:[ |
|
772 |
"/ ignore here - methodCategoryList will tell me if required |
|
773 |
^ self |
|
774 |
]. |
|
6663
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
775 |
(something == #classOrganization |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
776 |
or:[ something == #methodCategoryAdded |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
777 |
or:[ something == #methodCategoryRemoved |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
778 |
or:[ something == #methodCategoriesRemoved |
1453d4f33815
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6575
diff
changeset
|
779 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
5591 | 780 |
"/ ignore here - methodCategoryList will tell me if required |
781 |
^ self |
|
782 |
]. |
|
5998 | 783 |
(something == #methodTrap |
6846 | 784 |
or:[ something == #methodPrivacy |
785 |
or:[ something == #lastTestRunResult] ]) ifTrue:[ |
|
5998 | 786 |
self window shown ifFalse:[ |
787 |
changedObject removeDependent:self. "/ ????? |
|
788 |
^ self |
|
789 |
]. |
|
5591 | 790 |
cls := aParameter at:1. |
791 |
(classes includesIdentical:cls) ifFalse:[ |
|
5998 | 792 |
^ self "/ I dont care for that class |
5591 | 793 |
]. |
794 |
]. |
|
795 |
||
6846 | 796 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
5591 | 797 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
798 |
||
799 |
something == #classDefinition ifTrue:[ |
|
800 |
cls := aParameter. |
|
801 |
(classes contains:[:aClass | aClass name == cls name]) ifFalse:[ |
|
802 |
^ self "/ I dont care for that class |
|
803 |
]. |
|
804 |
classes := classes collect:[:eachClass | eachClass isMeta ifTrue:[ |
|
805 |
(Smalltalk at:eachClass theNonMetaclass name) class |
|
806 |
] ifFalse:[ |
|
807 |
Smalltalk at:eachClass name |
|
808 |
] |
|
809 |
]. |
|
810 |
self updateList. |
|
811 |
^ self. |
|
812 |
]. |
|
813 |
something == #newClass ifTrue:[ |
|
814 |
^ self. |
|
815 |
]. |
|
816 |
something == #classRemove ifTrue:[ |
|
817 |
^ self. |
|
818 |
]. |
|
819 |
something == #classRename ifTrue:[ |
|
820 |
^ self. |
|
821 |
]. |
|
822 |
]. |
|
823 |
||
824 |
"/ these must lead to immediate update of the selectedMethods collection |
|
825 |
"/ (otherwise, that collection might be updated too late, leading to |
|
826 |
"/ an obsolete methods code being shown by the codeView. |
|
827 |
something == #methodInClass ifTrue:[ |
|
6846 | 828 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
5591 | 829 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
830 |
cls := aParameter at:1. |
|
831 |
(classes includesIdentical:cls) ifFalse:[ |
|
832 |
^ self "/ I dont care for that class |
|
833 |
]. |
|
834 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
|
835 |
^ self |
|
836 |
]. |
|
837 |
||
838 |
something == #methodInClassRemoved ifTrue:[ |
|
839 |
cls := aParameter at:1. |
|
840 |
(classes includesIdentical:cls) ifFalse:[ |
|
841 |
^ self "/ I dont care for that class |
|
842 |
]. |
|
843 |
]. |
|
844 |
||
845 |
super update:something with:aParameter from:changedObject |
|
6846 | 846 |
|
7702 | 847 |
"Modified: / 05-03-2007 / 16:08:28 / cg" |
5591 | 848 |
! ! |
849 |
||
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
850 |
!MethodList methodsFor:'drag & drop'! |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
851 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
852 |
canDropContext:aDropContext |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
853 |
|methods| |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
854 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
855 |
aDropContext sourceWidget == aDropContext targetWidget ifTrue:[^ false]. |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
856 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
857 |
methods := aDropContext dropObjects collect:[:obj | obj theObject]. |
7122 | 858 |
(methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false]. |
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
859 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
860 |
self masterApplication theSingleSelectedClass isNil ifTrue:[^ false]. |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
861 |
^ true |
7122 | 862 |
|
863 |
"Modified: / 13-09-2006 / 11:43:54 / cg" |
|
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
864 |
! |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
865 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
866 |
doDropContext:aDropContext |
8596 | 867 |
|methods browser| |
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
868 |
|
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
869 |
methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject]. |
7122 | 870 |
(methods conform:[:something | something isMethod]) ifFalse:[^ self]. |
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
871 |
|
8596 | 872 |
browser := self masterApplication. |
873 |
aDropContext dragType == DropContext dragTypeCopy ifTrue:[ |
|
874 |
browser |
|
875 |
copyMethods:methods |
|
876 |
toClass:(browser theSingleSelectedClass). |
|
877 |
] ifFalse:[ |
|
878 |
browser |
|
879 |
moveMethods:methods |
|
880 |
toClass:(browser theSingleSelectedClass). |
|
881 |
]. |
|
7122 | 882 |
|
883 |
"Modified: / 13-09-2006 / 11:43:44 / cg" |
|
6774
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
884 |
! ! |
ae9ed5b0b548
move method via drag and drop
Claus Gittinger <cg@exept.de>
parents:
6697
diff
changeset
|
885 |
|
5591 | 886 |
!MethodList methodsFor:'private'! |
887 |
||
888 |
listOfMethodNames |
|
889 |
|methods entries selectorBag newNameList |
|
890 |
allClasses newClasses allCategories "allSelectors" generator |
|
891 |
doShowClass doShowClassFirst doShowCategory |
|
892 |
enforceClassAndProtocolInList theMethod sortByClass anyMethodToWatch mclass| |
|
893 |
||
894 |
generator := inGeneratorHolder value. |
|
895 |
generator isNil ifTrue:[^ #() ]. |
|
896 |
||
897 |
allClasses := IdentitySet new. |
|
898 |
allCategories := IdentitySet new. "/ not needed - all I need to know is if there is more than 1 category |
|
899 |
"/ allSelectors := Set new. |
|
900 |
newClasses := IdentitySet new. |
|
901 |
selectorBag := Bag new. |
|
902 |
entries := OrderedCollection new. |
|
903 |
enforceClassAndProtocolInList := false. |
|
904 |
anyMethodToWatch := false. |
|
905 |
||
906 |
"/ generator generates nil-selector entries |
|
907 |
"/ to pass multiple-class and multiple-protocol info |
|
908 |
generator do:[:cls :cat :sel :mthd | |
|
909 |
(cls isNil and:[cat isNil and:[sel isNil]]) |
|
910 |
ifTrue:[ |
|
911 |
enforceClassAndProtocolInList := true |
|
912 |
] ifFalse:[ |
|
913 |
cls notNil ifTrue:[ |
|
914 |
allClasses add:cls. |
|
915 |
]. |
|
916 |
cat notNil ifTrue:[ |
|
917 |
allCategories add:cat. |
|
918 |
]. |
|
919 |
sel notNil ifTrue:[ |
|
920 |
entries add:(Array with:cls with:sel with:mthd). |
|
921 |
selectorBag add:sel. |
|
922 |
newClasses add:cls. |
|
923 |
"/ allSelectors add:sel. |
|
924 |
] |
|
925 |
]. |
|
926 |
(mthd notNil and:[mthd isWrapped]) ifTrue:[ |
|
927 |
(mthd isTiming |
|
928 |
or:[mthd isCounting |
|
929 |
or:[mthd isCountingMemoryUsage]]) |
|
930 |
ifTrue:[ |
|
931 |
anyMethodToWatch := true |
|
932 |
] |
|
933 |
]. |
|
934 |
]. |
|
935 |
||
936 |
showMethodInheritance value ~~ false ifTrue:[ |
|
937 |
"/ collect redefinition information once (big speedup for #methodIsRedefinedbelow) |
|
938 |
classAndSelectorsRedefinedBySubclassesOfClass isNil ifTrue:[ |
|
939 |
classAndSelectorsRedefinedBySubclassesOfClass := IdentityDictionary new. |
|
940 |
]. |
|
941 |
allClasses do:[:cls | |d| |
|
942 |
d := classAndSelectorsRedefinedBySubclassesOfClass. |
|
943 |
(d notNil and:[ (d includesKey:cls) not ]) ifTrue:[ |
|
8206 | 944 |
cls isLoaded ifTrue:[ |
945 |
d at:cls put:(self setOfAllSelectorsImplementedBelow:cls) |
|
946 |
] |
|
5591 | 947 |
] |
948 |
]. |
|
949 |
]. |
|
950 |
||
951 |
"/ multiple classes must: add the className for some |
|
952 |
doShowClass := enforceClassAndProtocolInList or:[allClasses size > 1]. |
|
953 |
"/ multiple categories: must add the categorie for some |
|
954 |
doShowCategory := enforceClassAndProtocolInList or:[allCategories size > 1]. |
|
955 |
||
956 |
doShowClassFirst := doShowClass. "/ (doShowClass and:[allSelectors size == 1]). |
|
957 |
doShowClassFirst := doShowClass and:[ sortBy value == #class ]. |
|
958 |
||
959 |
sortBy value == false ifTrue:[ |
|
960 |
"/ do not sort |
|
961 |
] ifFalse:[ |
|
962 |
(doShowClass not and:[ sortBy value == #class ]) ifTrue:[ |
|
963 |
"/ multiple classes must add the className for some |
|
964 |
"/ check, if doShowClass must be enforced |
|
965 |
entries do:[:entry | |
|
966 |
|cls sel mthd s needClass| |
|
967 |
||
968 |
cls := entry at:1. |
|
969 |
sel := entry at:2. |
|
970 |
mthd := entry at:3. |
|
971 |
doShowClass ifFalse:[ |
|
972 |
doShowClass := (selectorBag occurrencesOf:sel) > 1 |
|
973 |
]. |
|
974 |
]. |
|
975 |
]. |
|
976 |
||
977 |
sortByClass := doShowClass and:[ sortBy value == #class ]. |
|
978 |
||
979 |
sortByClass ifTrue:[ |
|
980 |
entries sort:[:a :b | |nmA nmB clsNmA clsNmB| |
|
981 |
clsNmA := (a at:1) name. |
|
982 |
clsNmB := (b at:1) name. |
|
983 |
clsNmA = clsNmB ifTrue:[ |
|
984 |
nmA := (a at:2). |
|
985 |
nmB := (b at:2). |
|
986 |
nmA < nmB |
|
987 |
] ifFalse:[ |
|
988 |
clsNmA < clsNmB |
|
989 |
] |
|
990 |
]. |
|
991 |
] ifFalse:[ |
|
7610 | 992 |
sortBy value == #category ifTrue:[ |
993 |
entries sort:[:a :b | |nmA nmB catA catB clsNmA clsNmB| |
|
994 |
catA := (a at:3) category. |
|
995 |
catB := (b at:3) category. |
|
996 |
catA = catB ifTrue:[ |
|
997 |
nmA := (a at:2). |
|
998 |
nmB := (b at:2). |
|
999 |
nmA = nmB ifTrue:[ |
|
1000 |
clsNmA := (a at:1) name. |
|
1001 |
clsNmB := (b at:1) name. |
|
1002 |
clsNmA < clsNmB |
|
1003 |
] ifFalse:[ |
|
1004 |
nmA < nmB |
|
1005 |
] |
|
1006 |
] ifFalse:[ |
|
1007 |
catA < catB |
|
1008 |
] |
|
1009 |
]. |
|
1010 |
] ifFalse:[ |
|
1011 |
entries sort:[:a :b | |nmA nmB clsNmA clsNmB| |
|
1012 |
nmA := (a at:2). |
|
1013 |
nmB := (b at:2). |
|
1014 |
nmA = nmB ifTrue:[ |
|
1015 |
clsNmA := (a at:1) name. |
|
1016 |
clsNmB := (b at:1) name. |
|
1017 |
clsNmA < clsNmB |
|
1018 |
] ifFalse:[ |
|
1019 |
nmA < nmB |
|
1020 |
] |
|
1021 |
]. |
|
1022 |
]. |
|
5591 | 1023 |
]. |
1024 |
]. |
|
1025 |
||
1026 |
methods := OrderedCollection new:(entries size). |
|
1027 |
||
1028 |
"/ first generate the new methodList, and see if it is different ... |
|
1029 |
entries do:[:entry | |
|
1030 |
|sel mthd| |
|
1031 |
||
1032 |
mthd := entry at:3. |
|
1033 |
methods add:mthd. |
|
1034 |
]. |
|
1035 |
||
1036 |
false "methodList = methods" "does not care for changed icons" ifTrue:[ |
|
1037 |
"/ same list |
|
1038 |
newNameList := self browserNameList. |
|
1039 |
] ifFalse:[ |
|
1040 |
newNameList := OrderedCollection new:(entries size). |
|
1041 |
||
1042 |
"/ multiple classes must add the className for some |
|
1043 |
entries do:[:entry | |
|
1044 |
|cls sel mthd s needClass| |
|
1045 |
||
1046 |
cls := entry at:1. |
|
1047 |
sel := entry at:2. |
|
1048 |
mthd := entry at:3. |
|
1049 |
needClass := doShowClass. |
|
1050 |
"/ needClass ifFalse:[ |
|
1051 |
"/ needClass := (selectorBag occurrencesOf:sel) > 1 |
|
1052 |
"/ ]. |
|
1053 |
s := self |
|
1054 |
listEntryForMethod:mthd |
|
1055 |
selector:sel |
|
1056 |
class:cls |
|
1057 |
showClass:needClass |
|
1058 |
showCategory:doShowCategory |
|
1059 |
classFirst:doShowClassFirst. |
|
1060 |
||
1061 |
"/ s := mthd printStringForBrowserWithSelector:sel inClass:cls. |
|
1062 |
"/ needClass ifTrue:[ |
|
1063 |
"/ s := s , ' [' , cls name , ']'. |
|
1064 |
"/ ]. |
|
1065 |
"/ doShowCategory ifTrue:[ |
|
1066 |
"/ s := s , ' {' , mthd category "asText allItalic" , '}' |
|
1067 |
"/ ]. |
|
1068 |
newNameList add:s. |
|
1069 |
]. |
|
1070 |
]. |
|
1071 |
||
1072 |
self makeIndependent. |
|
1073 |
classes := newClasses. |
|
1074 |
self makeDependent. |
|
1075 |
||
1076 |
methodList := methods. |
|
1077 |
methods size == 1 ifTrue:[ |
|
1078 |
theMethod := methods first. |
|
1079 |
mclass := theMethod mclass. |
|
1080 |
mclass isNil ifTrue:[ |
|
1081 |
theMethod isWrapped ifTrue:[ |
|
1082 |
theMethod := theMethod originalMethod. |
|
1083 |
mclass := theMethod mclass. |
|
1084 |
]. |
|
1085 |
]. |
|
6697 | 1086 |
self methodLabelHolder value:( |
1087 |
mclass isNil |
|
1088 |
ifTrue:[('???' , ' ' , '???')] |
|
1089 |
ifFalse:[(mclass name , ' ' , theMethod selector)]) |
|
5591 | 1090 |
]. |
1091 |
||
1092 |
anyMethodToWatch ifTrue:[ |
|
1093 |
self startWatchProcess. |
|
1094 |
] ifFalse:[ |
|
1095 |
self stopWatchProcess. |
|
1096 |
]. |
|
1097 |
||
1098 |
"/ remember these, in case of an incremental (single method only) |
|
1099 |
"/ update in the future. |
|
1100 |
lastShowClass := doShowClass. |
|
1101 |
lastShowClassFirst := doShowClassFirst. |
|
1102 |
lastShowCategory := doShowCategory. |
|
1103 |
||
1104 |
^ newNameList. |
|
1105 |
||
7610 | 1106 |
"Created: / 05-02-2000 / 22:43:40 / cg" |
1107 |
"Modified: / 26-01-2007 / 14:58:59 / cg" |
|
5591 | 1108 |
! |
1109 |
||
1110 |
makeDependent |
|
1111 |
Smalltalk addDependent:self. |
|
7502 | 1112 |
"/ ChangeSet addDependent:self. |
1113 |
||
1114 |
"Modified: / 10-11-2006 / 17:57:01 / cg" |
|
5591 | 1115 |
! |
1116 |
||
1117 |
makeIndependent |
|
1118 |
Smalltalk removeDependent:self. |
|
8218 | 1119 |
"/ ChangeSet removeDependent:self. |
5591 | 1120 |
! |
1121 |
||
1122 |
method:mthd includesModsOfClassVariable:variablesToHighLight |
|
1123 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars |
|
1124 |
! |
|
1125 |
||
1126 |
method:mthd includesModsOfInstanceVariable:variablesToHighLight |
|
1127 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars |
|
1128 |
! |
|
1129 |
||
1130 |
method:mthd includesRefsToClassVariable:variablesToHighLight |
|
1131 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars |
|
1132 |
! |
|
1133 |
||
1134 |
method:mthd includesRefsToInstanceVariable:variablesToHighLight |
|
1135 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars |
|
1136 |
! |
|
1137 |
||
1138 |
method:mthd includesRefsToVariable:variablesToHighLight askParserWith:querySelector |
|
1139 |
|cls src parser usedVars anyVarNameAccessable| |
|
1140 |
||
1141 |
cls := mthd mclass. |
|
5885 | 1142 |
cls isNil ifTrue:[^ false]. |
1143 |
||
5591 | 1144 |
anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight. |
1145 |
anyVarNameAccessable ifFalse:[ |
|
5885 | 1146 |
anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight. |
5591 | 1147 |
]. |
1148 |
anyVarNameAccessable ifFalse:[ |
|
5885 | 1149 |
"/ no need to parse |
1150 |
^ false |
|
5591 | 1151 |
]. |
1152 |
||
1153 |
src := mthd source. |
|
1154 |
src notNil ifTrue:[ |
|
5885 | 1155 |
" |
1156 |
before doing a slow parse, quickly scan the |
|
1157 |
methods source for the variables name ... |
|
1158 |
" |
|
1159 |
(variablesToHighLight contains:[:varName | (src findString:varName) ~~ 0]) ifTrue:[ |
|
1160 |
parser := Parser |
|
1161 |
parseMethod:src |
|
1162 |
in:cls |
|
1163 |
ignoreErrors:true |
|
1164 |
ignoreWarnings:true. |
|
1165 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
|
1166 |
usedVars := parser perform:querySelector. |
|
1167 |
(usedVars includesAny:variablesToHighLight) |
|
1168 |
ifTrue:[ |
|
1169 |
^ true |
|
1170 |
] |
|
1171 |
] |
|
1172 |
] |
|
5591 | 1173 |
]. |
1174 |
^ false |
|
1175 |
! |
|
1176 |
||
1177 |
methodIsInheritedFromAbove:aMethod |
|
1178 |
|mClass| |
|
1179 |
||
1180 |
mClass := aMethod mclass. |
|
1181 |
(mClass notNil and:[mClass superclass notNil]) ifTrue:[ |
|
6789 | 1182 |
^ (mClass superclass whichClassIncludesSelector:aMethod selector) notNil. |
5591 | 1183 |
]. |
1184 |
^ false |
|
1185 |
! |
|
1186 |
||
1187 |
methodIsRedefinedBelow:aMethod |
|
1188 |
|mclass subClasses setOfRedefinedSelectors| |
|
1189 |
||
1190 |
mclass := aMethod mclass. |
|
1191 |
mclass isNil ifTrue:[^ false]. |
|
1192 |
||
1193 |
"/ if possible, make use of info prepared by listOfMethodNames |
|
1194 |
classAndSelectorsRedefinedBySubclassesOfClass notNil |
|
1195 |
ifTrue:[ |
|
9004
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1196 |
setOfRedefinedSelectors := classAndSelectorsRedefinedBySubclassesOfClass at:mclass ifAbsent:nil. |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1197 |
setOfRedefinedSelectors notNil ifTrue:[ |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1198 |
^ setOfRedefinedSelectors includes:aMethod selector |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1199 |
] |
5591 | 1200 |
]. |
1201 |
||
1202 |
lastMethodClass == mclass ifTrue:[ |
|
9004
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1203 |
subClasses := lastMethodClassesSubclasses |
5591 | 1204 |
] ifFalse:[ |
9004
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1205 |
subClasses := aMethod mclass allSubclasses. |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1206 |
lastMethodClassesSubclasses := subClasses. |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1207 |
lastMethodClass := mclass. |
5591 | 1208 |
]. |
9004
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1209 |
^ subClasses contains:[:cls | cls includesSelector:aMethod selector]. |
5591 | 1210 |
! |
1211 |
||
1212 |
redefinedOrInheritedIconFor:aMethod |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1213 |
|inherited redefined subclassResponsibility| |
5591 | 1214 |
|
1215 |
inherited := self methodIsInheritedFromAbove:aMethod. |
|
1216 |
redefined := self methodIsRedefinedBelow:aMethod. |
|
1217 |
||
1218 |
inherited ifTrue:[ |
|
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1219 |
redefined ifTrue:[ |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1220 |
^ self methodInheritedFromAboveAndRedefinedBelowIcon. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1221 |
]. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1222 |
^ self methodInheritedFromAboveIcon. |
5591 | 1223 |
]. |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1224 |
|
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1225 |
subclassResponsibility := aMethod sends:#subclassResponsibility. |
5591 | 1226 |
redefined ifTrue:[ |
5761
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1227 |
subclassResponsibility ifTrue:[ |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1228 |
^ self methodIsSubclassResponsibilityAndRedefinedBelowIcon. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1229 |
]. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1230 |
^ self methodRedefinedBelowIcon. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1231 |
]. |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1232 |
subclassResponsibility ifTrue:[ |
b350e042dc9f
Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents:
5591
diff
changeset
|
1233 |
^ self methodIsSubclassResponsibilityIcon. |
5591 | 1234 |
]. |
1235 |
||
1236 |
^ self methodEmptyInheritedIcon |
|
1237 |
! |
|
1238 |
||
1239 |
release |
|
1240 |
super release. |
|
1241 |
||
1242 |
filterClassVars removeDependent:self. |
|
1243 |
selectedMethodNameIndices removeDependent:self. |
|
1244 |
showMethodInheritance removeDependent:self. |
|
1245 |
variableFilter removeDependent:self. |
|
1246 |
! |
|
1247 |
||
1248 |
resourceIconForMethod:aMethod |
|
6903 | 1249 |
^ SystemBrowser resourceIconForMethod:aMethod |
5591 | 1250 |
|
6903 | 1251 |
"Modified: / 17-08-2006 / 09:09:01 / cg" |
5591 | 1252 |
! |
1253 |
||
1254 |
setOfAllSelectorsImplementedBelow:aClass |
|
1255 |
|set| |
|
1256 |
||
1257 |
set := IdentitySet new. |
|
1258 |
aClass allSubclassesDo:[:eachSubclass | |
|
1259 |
set addAll:(eachSubclass methodDictionary keys). |
|
1260 |
]. |
|
1261 |
^ set |
|
1262 |
! |
|
1263 |
||
1264 |
updateList |
|
1265 |
|prevSelection newList newSelection newSelIdx reverseMap sameContents newListSize oldListSize |
|
1266 |
prevClasses methodSet selectedMethodsHolder| |
|
1267 |
||
1268 |
selectedMethodsHolder := self selectedMethods. |
|
1269 |
prevSelection := selectedMethodsHolder value ? #(). |
|
1270 |
||
1271 |
prevClasses := classes ifNil:[ #() ] ifNotNil:[ classes copy ]. |
|
1272 |
||
1273 |
oldListSize := self browserNameList size. |
|
1274 |
||
8644 | 1275 |
self topApplication withWaitCursorDo:[ |
1276 |
newList := self listOfMethodNames. |
|
1277 |
]. |
|
7702 | 1278 |
newListSize := newList size. |
1279 |
sameContents := self updateListFor:newList. |
|
5591 | 1280 |
|
7702 | 1281 |
sameContents ifFalse:[ |
5591 | 1282 |
"/ self browserNameList value:newList. |
1283 |
||
7702 | 1284 |
(prevSelection size == 0 |
1285 |
and:[selectedMethodsHolder value size ~~ 0]) ifTrue:[ |
|
1286 |
"/ this happens during early startup time, |
|
1287 |
"/ when the selection is already (pre-)set, |
|
1288 |
"/ and the methodList is generated the first time |
|
1289 |
"/ (i.e. when opened with preset selection |
|
5591 | 1290 |
|
7702 | 1291 |
"/ do not clobber the selection in this case. |
1292 |
prevSelection := selectedMethodsHolder value. |
|
1293 |
]. |
|
5591 | 1294 |
|
7702 | 1295 |
(methodList size == 0 or:[prevSelection size == 0]) ifTrue:[ |
1296 |
newSelection := #() |
|
1297 |
] ifFalse:[ |
|
1298 |
methodSet := methodList. |
|
5591 | 1299 |
|
7702 | 1300 |
"/ inclusion test is much faster with sets, if the number of items is large |
1301 |
methodList size > 30 ifTrue:[ |
|
1302 |
"/ however, only if its worth building the set ... |
|
1303 |
prevSelection size > 5 ifTrue:[ |
|
1304 |
methodSet := methodSet asIdentitySet. |
|
1305 |
] |
|
1306 |
]. |
|
1307 |
newSelection := prevSelection select:[:item | methodSet includesIdentical:item]. |
|
1308 |
]. |
|
1309 |
newSelection size > 0 ifTrue:[ |
|
1310 |
newSelection size > 100 ifTrue:[ |
|
1311 |
"/ need selection indices - might be expensive if done straight forward... |
|
1312 |
reverseMap := IdentityDictionary new. |
|
1313 |
methodList keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx]. |
|
1314 |
newSelIdx := newSelection collect:[:mthd | reverseMap at:mthd]. |
|
1315 |
] ifFalse:[ |
|
1316 |
newSelIdx := newSelection collect:[:mthd | methodList identityIndexOf:mthd] |
|
1317 |
]. |
|
5591 | 1318 |
"/ self halt. |
7702 | 1319 |
"/ force change (for dependents) |
1320 |
newSelIdx ~= selectedMethodNameIndices value ifTrue:[ |
|
1321 |
selectedMethodNameIndices value:newSelIdx. |
|
1322 |
]. |
|
1323 |
] ifFalse:[ |
|
1324 |
lastSelectedMethods := selectedMethodsHolder value. |
|
1325 |
lastSelectedMethods notNil ifTrue:[ |
|
1326 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
1327 |
]. |
|
1328 |
selectedMethodNameIndices value size > 0 ifTrue:[ |
|
1329 |
selectedMethodNameIndices value:#(). |
|
1330 |
] |
|
1331 |
]. |
|
5591 | 1332 |
|
7702 | 1333 |
newSelection ~= prevSelection ifTrue:[ |
1334 |
self selectionChanged. |
|
1335 |
] |
|
1336 |
] ifTrue:[ |
|
1337 |
"/ same list - but classes might have changed |
|
1338 |
"/ that is the case, if the class selection has been changed, |
|
1339 |
"/ to another class which has the same categories. |
|
5591 | 1340 |
|
7702 | 1341 |
(prevClasses size ~= classes size |
1342 |
or:[prevClasses asOrderedCollection ~= (classes ? #()) asOrderedCollection ]) ifTrue:[ |
|
1343 |
(newListSize > 0 or:[oldListSize > 0]) ifTrue:[ |
|
1344 |
self selectionChanged. |
|
1345 |
] |
|
1346 |
] |
|
1347 |
] |
|
5591 | 1348 |
"/ ]. |
1349 |
||
7702 | 1350 |
"Modified: / 05-03-2007 / 16:07:24 / cg" |
5591 | 1351 |
! |
1352 |
||
1353 |
updateListEntryFor:aMethod |
|
1354 |
"update my list for a single method. |
|
1355 |
(used when a single methods package, code or whatever changes, and a full udpate |
|
1356 |
would be too slow)" |
|
1357 |
||
1358 |
|s idx| |
|
1359 |
||
1360 |
s := self |
|
6268 | 1361 |
listEntryForMethod:aMethod |
1362 |
selector:aMethod selector |
|
1363 |
class:aMethod mclass |
|
1364 |
showClass:lastShowClass |
|
1365 |
showCategory:lastShowCategory |
|
1366 |
classFirst:lastShowClassFirst. |
|
5591 | 1367 |
|
1368 |
idx := methodList identityIndexOf:aMethod. |
|
1369 |
idx == 0 ifTrue:[ |
|
6268 | 1370 |
aMethod isWrapped ifTrue:[ |
1371 |
idx := methodList identityIndexOf:aMethod originalMethod. |
|
1372 |
] |
|
5591 | 1373 |
]. |
1374 |
idx == 0 ifTrue:[ |
|
6268 | 1375 |
self invalidateList |
5591 | 1376 |
] ifFalse:[ |
6268 | 1377 |
self browserNameList at:idx put:s. |
5591 | 1378 |
] |
1379 |
! ! |
|
1380 |
||
6271 | 1381 |
!MethodList methodsFor:'private-presentation'! |
1382 |
||
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1383 |
colorForCoverageInformationOfMethod:aMethod |
9430 | 1384 |
aMethod isInstrumented ifFalse:[^ nil]. |
9448
f9258f99d465
changed: #emphasisForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9438
diff
changeset
|
1385 |
aMethod category = 'documentation' ifTrue:[^ nil]. |
9430 | 1386 |
|
1387 |
aMethod hasBeenCalled ifTrue:[ |
|
1388 |
aMethod haveAllBlocksBeenExecuted ifTrue:[ |
|
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1389 |
^ UserPreferences current colorForInstrumentedFullyCoveredCode |
9430 | 1390 |
]. |
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1391 |
^ UserPreferences current colorForInstrumentedPartiallyCoveredCode |
9430 | 1392 |
]. |
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1393 |
^ UserPreferences current colorForInstrumentedNeverCalledCode |
9430 | 1394 |
|
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1395 |
"Created: / 30-04-2010 / 11:53:38 / cg" |
9430 | 1396 |
! |
1397 |
||
6271 | 1398 |
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst |
1399 |
"answer a method list entry |
|
1400 |
gimmics: |
|
1401 |
adding a little image to breakPointed methods, |
|
1402 |
inheritance indicators, |
|
1403 |
highlight accessors of variable" |
|
1404 |
||
1405 |
|clsName s icn variablesToHighlight classVarsToHighLight |
|
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1406 |
doHighLight doHighLightRed clr emp cat l redefIcon |
7502 | 1407 |
metrics complexity complexityString complexityIcon mark| |
6271 | 1408 |
|
9038
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1409 |
aMethod isNil ifTrue:[ |
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1410 |
"/ a non-existing (pseudo) method (such as required protocol) |
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1411 |
^ selector colorizeAllWith:Color red. |
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1412 |
]. |
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1413 |
|
6271 | 1414 |
aMethod isAssociation ifTrue:[ |
1415 |
self halt:'should not happen'. |
|
1416 |
]. |
|
1417 |
||
8638 | 1418 |
selector isNil ifTrue:[ |
1419 |
s := '???' |
|
1420 |
] ifFalse:[ |
|
1421 |
s := aMethod printStringForBrowserWithSelector:selector inClass:cls. |
|
1422 |
]. |
|
6271 | 1423 |
showClassFirst ifTrue:[ |
1424 |
clsName := cls nameInBrowser. |
|
1425 |
s := clsName , ' ' , s allBold |
|
1426 |
]. |
|
1427 |
||
1428 |
"/ |
|
1429 |
"/ wrap icons (i.e. break- or trace points) |
|
1430 |
"/ have higher prio ... |
|
1431 |
"/ |
|
9038
9b56d0b8c38e
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
9004
diff
changeset
|
1432 |
(aMethod notNil and:[aMethod isWrapped]) ifTrue:[ |
6271 | 1433 |
(s endsWith:' !!') ifTrue:[ |
1434 |
s := s copyWithoutLast:2 |
|
1435 |
]. |
|
1436 |
aMethod isBreakpointed ifTrue:[ |
|
1437 |
icn := self stopIcon |
|
1438 |
] ifFalse:[ |
|
1439 |
aMethod isTimed ifTrue:[ |
|
1440 |
icn := self timeIcon |
|
1441 |
] ifFalse:[ |
|
1442 |
icn := self traceIcon |
|
1443 |
] |
|
1444 |
]. |
|
1445 |
]. |
|
1446 |
||
1447 |
icn isNil ifTrue:[ |
|
8198 | 1448 |
self showImageResourceMethodsImages value ~~ false ifTrue:[ |
9252
ee7770f155ca
changed: #listEntryForMethod:selector:class:showClass:showCategory:classFirst:
Claus Gittinger <cg@exept.de>
parents:
9038
diff
changeset
|
1449 |
(aMethod hasImageResource) ifTrue:[ |
8474 | 1450 |
aMethod mclass isMeta ifTrue:[ |
1451 |
icn := aMethod valueWithReceiver:nil arguments:nil . |
|
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1452 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1453 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1454 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1455 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1456 |
|
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1457 |
icn isNil ifTrue:[ |
6271 | 1458 |
showMethodTypeIcon value ~~ false ifTrue:[ |
1459 |
icn := self resourceIconForMethod:aMethod. |
|
1460 |
]. |
|
1461 |
icn isNil ifTrue:[ |
|
1462 |
aMethod isProtected ifTrue:[ |
|
1463 |
icn := self protectedMethodIcon |
|
1464 |
] ifFalse:[ |
|
1465 |
aMethod isPrivate ifTrue:[ |
|
1466 |
icn := self privateMethodIcon |
|
1467 |
] ifFalse:[ |
|
1468 |
(aMethod isIgnored) ifTrue:[ |
|
1469 |
icn := self ignoredMethodIcon |
|
1470 |
] ifFalse:[ |
|
1471 |
(aMethod isJavaMethod and:[aMethod isAbstract]) ifTrue:[ |
|
1472 |
icn := self abstractMethodIcon |
|
1473 |
] |
|
1474 |
] |
|
1475 |
] |
|
1476 |
]. |
|
1477 |
]. |
|
1478 |
]. |
|
1479 |
icn isNil ifTrue:[ |
|
1480 |
(selector startsWith:'test') ifTrue:[ |
|
1481 |
((cls isSubclassOf:TestCase) |
|
1482 |
and:[cls isAbstract not]) ifTrue:[ |
|
1483 |
cls lastTestRunResultOrNil == false ifTrue:[ |
|
1484 |
(cls testSelectorFailed:selector) ifTrue:[ |
|
1485 |
icn := SystemBrowser testCaseFailedIcon |
|
1486 |
] ifFalse:[ |
|
1487 |
"/ icn := SystemBrowser testCasePassedIcon |
|
1488 |
]. |
|
1489 |
] |
|
1490 |
]. |
|
1491 |
] |
|
1492 |
]. |
|
1493 |
||
1494 |
showClass ifTrue:[ |
|
1495 |
showClassFirst ifFalse:[ |
|
1496 |
s := s , ' [' , cls name allBold , ']'. |
|
1497 |
] |
|
1498 |
]. |
|
1499 |
showCategory ifTrue:[ |
|
1500 |
cat := aMethod category. |
|
1501 |
cat notNil ifTrue:[ |
|
1502 |
s := s , ' {' , cat "asText allItalic" , '}' |
|
1503 |
] |
|
1504 |
]. |
|
7502 | 1505 |
|
9438 | 1506 |
self showCoverageInformation value ifTrue:[ |
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1507 |
clr := self colorForCoverageInformationOfMethod:aMethod. |
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1508 |
clr notNil ifTrue:[ |
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1509 |
s := self colorize:s with:(#color->clr). |
9430 | 1510 |
"/ aMethod isInstrumented ifTrue:[ |
1511 |
"/ icn := self instrumentationIcon |
|
1512 |
"/ ]. |
|
1513 |
]. |
|
1514 |
] ifFalse:[ |
|
1515 |
(ChangeSet current includesChangeForClass:cls selector:selector) ifTrue:[ |
|
1516 |
mark := self class markForBeingInChangeList. |
|
1517 |
"/ mark := self colorizeForChangedCode:mark. |
|
1518 |
s := s , mark. |
|
1519 |
"/ cg: I dont know why this was disabled - it is req'd to |
|
1520 |
"/ see changed methods in a method list (implementors...) |
|
1521 |
s := self colorizeForChangedCode:s. |
|
1522 |
]. |
|
1523 |
||
1524 |
(SmallTeam notNil and:[SmallTeam includesChangeForClass:cls selector:selector]) ifTrue:[ |
|
1525 |
s := (self colorizeForChangedCodeInSmallTeam:'!! '),s |
|
1526 |
]. |
|
6841
6d72f92ed6cd
mark changed methods with a '*'
Claus Gittinger <cg@exept.de>
parents:
6789
diff
changeset
|
1527 |
]. |
6271 | 1528 |
|
1529 |
variablesToHighlight := variableFilter value. |
|
1530 |
variablesToHighlight size > 0 ifTrue:[ |
|
1531 |
classVarsToHighLight := filterClassVars value. |
|
1532 |
classVarsToHighLight ifTrue:[ |
|
1533 |
doHighLight := self method:aMethod includesRefsToClassVariable:variablesToHighlight. |
|
1534 |
doHighLight ifTrue:[ |
|
1535 |
doHighLightRed := self method:aMethod includesModsOfClassVariable:variablesToHighlight. |
|
1536 |
]. |
|
1537 |
] ifFalse:[ |
|
1538 |
doHighLight := self method:aMethod includesRefsToInstanceVariable:variablesToHighlight. |
|
1539 |
doHighLight ifTrue:[ |
|
1540 |
doHighLightRed := self method:aMethod includesModsOfInstanceVariable:variablesToHighlight |
|
1541 |
] |
|
1542 |
]. |
|
1543 |
doHighLight ifTrue:[ |
|
1544 |
s := s allBold. |
|
1545 |
doHighLightRed ifTrue:[ |
|
1546 |
emp := (UserPreferences current emphasisForWrittenVariable) |
|
1547 |
] ifFalse:[ |
|
1548 |
emp := (UserPreferences current emphasisForReadVariable) |
|
1549 |
]. |
|
1550 |
s := s emphasisAllAdd:emp |
|
1551 |
] |
|
1552 |
]. |
|
1553 |
||
6694 | 1554 |
(showMethodComplexity value == true |
6271 | 1555 |
and:[ OOM::MethodMetrics notNil ]) ifTrue:[ |
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1556 |
icn isNil ifTrue:[ |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1557 |
metrics := OOM::MethodMetrics forMethod:aMethod. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1558 |
complexity := metrics complexity ? 0. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1559 |
complexityIcon := OOM::MethodMetrics iconForComplexity:complexity. |
6271 | 1560 |
|
8197
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1561 |
ShowComplexityValue == true ifTrue:[ |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1562 |
complexityString := '{' , complexity printString , '}'. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1563 |
s := complexityString , ' ' , s. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1564 |
]. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1565 |
"/ icn := icn ? complexityIcon. |
3b1c5bd94fdd
preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents:
7994
diff
changeset
|
1566 |
s := LabelAndIcon icon:complexityIcon string:s. |
6271 | 1567 |
]. |
1568 |
]. |
|
1569 |
||
1570 |
showMethodInheritance value ~~ false ifTrue:[ |
|
1571 |
redefIcon := self redefinedOrInheritedIconFor:aMethod. |
|
1572 |
]. |
|
1573 |
||
1574 |
(icn notNil or:[redefIcon notNil]) ifTrue:[ |
|
1575 |
l := LabelAndIcon icon:redefIcon string:s. |
|
1576 |
l image:icn. |
|
1577 |
l gap:2. |
|
1578 |
^ l |
|
1579 |
]. |
|
1580 |
^ s |
|
1581 |
||
6841
6d72f92ed6cd
mark changed methods with a '*'
Claus Gittinger <cg@exept.de>
parents:
6789
diff
changeset
|
1582 |
"Created: / 22-10-1996 / 19:51:00 / cg" |
9451
79d033f585b9
added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents:
9448
diff
changeset
|
1583 |
"Modified: / 30-04-2010 / 11:54:32 / cg" |
6271 | 1584 |
! ! |
1585 |
||
5591 | 1586 |
!MethodList methodsFor:'private-watching'! |
1587 |
||
1588 |
startWatchProcess |
|
1589 |
updateProcess notNil ifTrue:[ |
|
1590 |
^ self |
|
1591 |
]. |
|
1592 |
updateProcess := [ |
|
1593 |
[true] whileTrue:[ |
|
1594 |
Delay waitForSeconds:1. |
|
1595 |
self enqueueDelayedUpdateList |
|
1596 |
] |
|
1597 |
] fork. |
|
1598 |
! |
|
1599 |
||
1600 |
stopWatchProcess |
|
1601 |
|p| |
|
1602 |
||
1603 |
(p := updateProcess) notNil ifTrue:[ |
|
1604 |
updateProcess := nil. |
|
1605 |
p terminate |
|
1606 |
]. |
|
1607 |
! ! |
|
1608 |
||
1609 |
!MethodList methodsFor:'setup'! |
|
1610 |
||
1611 |
postBuildWith:aBuilder |
|
1612 |
|methodListView| |
|
1613 |
||
1614 |
super postBuildWith:aBuilder. |
|
1615 |
||
1616 |
methodListView := aBuilder componentAt:'List'. |
|
1617 |
methodListView notNil ifTrue:[ |
|
6277 | 1618 |
methodListView allowDrag:true. |
1619 |
methodListView dragObjectConverter:[:obj | |
|
1620 |
|nm method idx| |
|
5591 | 1621 |
|
6277 | 1622 |
nm := obj theObject asString string string. |
1623 |
idx := browserNameList value findFirst:[:item | item string string = nm]. |
|
1624 |
method := methodList value at:idx. |
|
1625 |
DropObject newMethod:method. |
|
1626 |
]. |
|
5591 | 1627 |
] |
1628 |
! ! |
|
1629 |
||
1630 |
!MethodList class methodsFor:'documentation'! |
|
1631 |
||
1632 |
version |
|
9462 | 1633 |
^ '$Header: /cvs/stx/stx/libtool/Tools_MethodList.st,v 1.48 2010-05-07 12:27:25 cg Exp $' |
9004
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1634 |
! |
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1635 |
|
fbd6a4c325f6
changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents:
8644
diff
changeset
|
1636 |
version_CVS |
9462 | 1637 |
^ '$Header: /cvs/stx/stx/libtool/Tools_MethodList.st,v 1.48 2010-05-07 12:27:25 cg Exp $' |
5591 | 1638 |
! ! |