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