author | Claus Gittinger <cg@exept.de> |
Mon, 11 Sep 2017 09:07:18 +0200 | |
changeset 17684 | ad637949d97a |
parent 14018 | 37fd90f67acb |
permissions | -rw-r--r-- |
5591 | 1 |
" |
2 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
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 |
" |
|
5592 | 12 |
"{ Package: 'stx:libtool' }" |
5591 | 13 |
|
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
BrowserList subclass:#MethodCategoryList |
|
9243 | 17 |
instanceVariableNames:'variableFilter filterClassVars lastSelectedProtocols classes |
18 |
leafClasses protocolList rawProtocolList selectedProtocolIndices |
|
19 |
lastGeneratedProtocols packageFilterOnInput |
|
20 |
methodVisibilityHolder noAllItem noPseudoItems |
|
10231 | 21 |
showPseudoProtocols' |
9243 | 22 |
classVariableNames:'AdditionalEmptyCategoriesPerClassName MethodInfoCache |
23 |
MethodInfoCacheAccessLock' |
|
24 |
poolDictionaries:'' |
|
25 |
category:'Interface-Browsers-New' |
|
5591 | 26 |
! |
27 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
28 |
Object subclass:#CachedMethodInfo |
9243 | 29 |
instanceVariableNames:'flags' |
30 |
classVariableNames:'FlagObsolete FlagSendsSuper FlagIsUncommented |
|
31 |
FlagIsDocumentationMethod FlagIsLongMethod FlagIsExtension |
|
11865 | 32 |
FlagIsRedefine FlagIsRedefined FlagIsOverride |
33 |
FlagIsSubclassResponsibility FlagIsTest FlagIsAnnotated' |
|
9243 | 34 |
poolDictionaries:'' |
35 |
privateIn:MethodCategoryList |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
36 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
37 |
|
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
38 |
Method variableSubclass:#MissingMethod |
9243 | 39 |
instanceVariableNames:'selector' |
40 |
classVariableNames:'' |
|
41 |
poolDictionaries:'' |
|
42 |
privateIn:MethodCategoryList |
|
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
43 |
! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
44 |
|
5591 | 45 |
!MethodCategoryList class methodsFor:'documentation'! |
46 |
||
47 |
copyright |
|
48 |
" |
|
49 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
50 |
All Rights Reserved |
5591 | 51 |
|
52 |
This software is furnished under a license and may be used |
|
53 |
only in accordance with the terms of that license and with the |
|
54 |
inclusion of the above copyright notice. This software may not |
|
55 |
be provided or otherwise made available to, or used by, any |
|
56 |
other person. No title to or ownership of the software is |
|
57 |
hereby transferred. |
|
58 |
" |
|
11875 | 59 |
! |
60 |
||
61 |
documentation |
|
62 |
" |
|
63 |
I implement the method category (= protocol) list in the new system browser |
|
64 |
" |
|
5591 | 65 |
! ! |
66 |
||
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
67 |
!MethodCategoryList class methodsFor:'initialization'! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
68 |
|
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
69 |
flushMethodInfo |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
70 |
MethodInfoCache := Dictionary new. |
8867 | 71 |
|
72 |
" |
|
73 |
self flushMethodInfo |
|
74 |
" |
|
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
75 |
! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
76 |
|
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
77 |
initialize |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
78 |
MethodInfoCache := Dictionary new. |
12400
32a9d286d90f
add user friendly name to semaphores
Stefan Vogel <sv@exept.de>
parents:
12049
diff
changeset
|
79 |
MethodInfoCacheAccessLock := RecursionLock new name:'MethodInfoCacheAccessLock'. |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
80 |
! ! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
81 |
|
10551 | 82 |
!MethodCategoryList class methodsFor:'cleanup'! |
83 |
||
84 |
lowSpaceCleanup |
|
10552 | 85 |
self flushMethodInfo |
10551 | 86 |
|
87 |
"Created: / 08-08-2011 / 19:15:25 / cg" |
|
88 |
! ! |
|
89 |
||
5591 | 90 |
!MethodCategoryList class methodsFor:'interface specs'! |
91 |
||
92 |
singleProtocolWindowSpec |
|
93 |
"This resource specification was automatically generated |
|
94 |
by the UIPainter of ST/X." |
|
95 |
||
96 |
"Do not manually edit this!! If it is corrupted, |
|
97 |
the UIPainter may not be able to read the specification." |
|
98 |
||
99 |
" |
|
100 |
UIPainter new openOnClass:MethodCategoryList andSelector:#singleProtocolWindowSpec |
|
101 |
MethodCategoryList new openInterface:#singleProtocolWindowSpec |
|
102 |
" |
|
103 |
||
104 |
<resource: #canvas> |
|
105 |
||
106 |
^ |
|
107 |
#(#FullSpec |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
108 |
#name: #singleProtocolWindowSpec |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
109 |
#window: |
5591 | 110 |
#(#WindowSpec |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
111 |
#label: 'ProtocolList' |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
112 |
#name: 'ProtocolList' |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
113 |
#min: #(#Point 0 0) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
114 |
#max: #(#Point 1024 721) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
115 |
#bounds: #(#Rectangle 12 22 312 322) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
116 |
) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
117 |
#component: |
5591 | 118 |
#(#SpecCollection |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
119 |
#collection: #( |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
120 |
#(#LabelSpec |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
121 |
#label: 'ProtocolName' |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
122 |
#name: 'ProtocolLabel' |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
123 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 25 0) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
124 |
#translateLabel: true |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
125 |
#labelChannel: #protocolLabelHolder |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
126 |
#menu: #menuHolder |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
127 |
) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
128 |
) |
5591 | 129 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
130 |
) |
5591 | 131 |
) |
132 |
! |
|
133 |
||
134 |
windowSpec |
|
135 |
"This resource specification was automatically generated |
|
136 |
by the UIPainter of ST/X." |
|
137 |
||
138 |
"Do not manually edit this!! If it is corrupted, |
|
139 |
the UIPainter may not be able to read the specification." |
|
140 |
||
141 |
" |
|
142 |
UIPainter new openOnClass:MethodCategoryList andSelector:#windowSpec |
|
143 |
MethodCategoryList new openInterface:#windowSpec |
|
144 |
MethodCategoryList open |
|
145 |
" |
|
146 |
||
147 |
<resource: #canvas> |
|
148 |
||
149 |
^ |
|
150 |
#(#FullSpec |
|
6469 | 151 |
#name: #windowSpec |
152 |
#window: |
|
5591 | 153 |
#(#WindowSpec |
6469 | 154 |
#label: 'ProtocolList' |
155 |
#name: 'ProtocolList' |
|
156 |
#min: #(#Point 0 0) |
|
157 |
#bounds: #(#Rectangle 16 46 316 346) |
|
158 |
) |
|
159 |
#component: |
|
5591 | 160 |
#(#SpecCollection |
6469 | 161 |
#collection: #( |
162 |
#(#SequenceViewSpec |
|
163 |
#name: 'List' |
|
164 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
165 |
#tabable: true |
|
166 |
#model: #selectedProtocolIndices |
|
167 |
#menu: #menuHolder |
|
168 |
#hasHorizontalScrollBar: true |
|
169 |
#hasVerticalScrollBar: true |
|
170 |
#miniScrollerHorizontal: true |
|
171 |
#isMultiSelect: true |
|
172 |
#valueChangeSelector: #selectionChangedByClick |
|
173 |
#useIndex: true |
|
174 |
#sequenceList: #protocolList |
|
175 |
#doubleClickChannel: #doubleClickChannel |
|
176 |
#properties: |
|
177 |
#(#PropertyListDictionary |
|
178 |
#dragArgument: nil |
|
179 |
#dropArgument: nil |
|
180 |
#canDropSelector: #canDropContext: |
|
181 |
#dropSelector: #doDropContext: |
|
182 |
) |
|
183 |
) |
|
184 |
) |
|
5591 | 185 |
|
6469 | 186 |
) |
5591 | 187 |
) |
188 |
! ! |
|
189 |
||
190 |
!MethodCategoryList class methodsFor:'plugIn spec'! |
|
191 |
||
192 |
aspectSelectors |
|
193 |
"This resource specification was automatically generated |
|
194 |
by the UIPainter of ST/X." |
|
195 |
||
196 |
"Do not manually edit this. If it is corrupted, |
|
197 |
the UIPainter may not be able to read the specification." |
|
198 |
||
199 |
"Return a description of exported aspects; |
|
200 |
these can be connected to aspects of an embedding application |
|
201 |
(if this app is embedded in a subCanvas)." |
|
202 |
||
203 |
^ #( |
|
14018
37fd90f67acb
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13874
diff
changeset
|
204 |
environmentHolder |
8694 | 205 |
#(#doubleClickChannel #action ) |
206 |
#filterClassVars |
|
207 |
#forceGeneratorTrigger |
|
208 |
#immediateUpdate |
|
209 |
#inGeneratorHolder |
|
210 |
#menuHolder |
|
211 |
#noAllItem |
|
212 |
#showPseudoProtocols |
|
213 |
#outGeneratorHolder |
|
214 |
#packageFilter |
|
215 |
#packageFilterOnInput |
|
216 |
#selectedProtocols |
|
217 |
#selectionChangeCondition |
|
218 |
#updateTrigger |
|
219 |
#variableFilter |
|
220 |
#methodVisibilityHolder |
|
9445 | 221 |
#showCoverageInformation |
5591 | 222 |
). |
9445 | 223 |
|
224 |
"Modified: / 27-04-2010 / 16:40:39 / cg" |
|
14018
37fd90f67acb
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13874
diff
changeset
|
225 |
"Modified: / 24-02-2014 / 10:37:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5591 | 226 |
! ! |
227 |
||
13194
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
228 |
!MethodCategoryList class methodsFor:'queries'! |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
229 |
|
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
230 |
isPseudoCategory:cat |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
231 |
^ (super isPseudoCategory:cat) |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
232 |
or:[ (cat startsWith:'* ') |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
233 |
and:[ (cat endsWith:' *') |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
234 |
and:[ (cat includesString:'%1') ]]] |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
235 |
! ! |
88b4309ba680
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
13192
diff
changeset
|
236 |
|
5591 | 237 |
!MethodCategoryList methodsFor:'aspects'! |
238 |
||
239 |
browserNameList |
|
240 |
^ self protocolList |
|
241 |
! |
|
242 |
||
243 |
defaultSlaveModeValue |
|
244 |
^ false. |
|
245 |
! |
|
246 |
||
247 |
filterClassVars |
|
248 |
filterClassVars isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
249 |
filterClassVars := false asValue. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
250 |
filterClassVars addDependent:self |
5591 | 251 |
]. |
252 |
^ filterClassVars |
|
253 |
||
254 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
255 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
256 |
! |
|
257 |
||
258 |
filterClassVars:aValueHolder |
|
259 |
filterClassVars notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
260 |
filterClassVars removeDependent:self |
5591 | 261 |
]. |
262 |
filterClassVars := aValueHolder. |
|
263 |
filterClassVars notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
264 |
filterClassVars addDependent:self |
5591 | 265 |
]. |
266 |
||
267 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
268 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
269 |
! |
|
270 |
||
271 |
methodVisibilityHolder |
|
272 |
methodVisibilityHolder isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
273 |
methodVisibilityHolder := false asValue. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
274 |
methodVisibilityHolder addDependent:self |
5591 | 275 |
]. |
276 |
^ methodVisibilityHolder |
|
277 |
! |
|
278 |
||
279 |
methodVisibilityHolder:aValueHolder |
|
280 |
methodVisibilityHolder notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
281 |
methodVisibilityHolder removeDependent:self |
5591 | 282 |
]. |
283 |
methodVisibilityHolder := aValueHolder. |
|
284 |
methodVisibilityHolder notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
285 |
methodVisibilityHolder addDependent:self |
5591 | 286 |
]. |
287 |
||
288 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
289 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
290 |
! |
|
291 |
||
292 |
noAllItem |
|
293 |
noAllItem isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
294 |
noAllItem := false asValue. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
295 |
noAllItem addDependent:self |
5591 | 296 |
]. |
297 |
^ noAllItem |
|
298 |
! |
|
299 |
||
300 |
noAllItem:aValueHolder |
|
301 |
noAllItem notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
302 |
noAllItem removeDependent:self |
5591 | 303 |
]. |
304 |
noAllItem := aValueHolder. |
|
305 |
noAllItem notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
306 |
noAllItem addDependent:self |
5591 | 307 |
]. |
308 |
! |
|
309 |
||
310 |
packageFilterOnInput |
|
311 |
packageFilterOnInput isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
312 |
packageFilterOnInput := nil asValue. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
313 |
packageFilterOnInput addDependent:self |
5591 | 314 |
]. |
315 |
^ packageFilterOnInput |
|
316 |
! |
|
317 |
||
318 |
packageFilterOnInput:aValueHolder |
|
319 |
|prevFilter| |
|
320 |
||
321 |
prevFilter := packageFilterOnInput value. |
|
322 |
packageFilterOnInput notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
323 |
packageFilterOnInput removeDependent:self |
5591 | 324 |
]. |
325 |
packageFilterOnInput := aValueHolder. |
|
326 |
packageFilterOnInput notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
327 |
packageFilterOnInput addDependent:self |
5591 | 328 |
]. |
329 |
prevFilter ~= packageFilterOnInput value ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
330 |
self enqueueDelayedUpdateList |
5591 | 331 |
]. |
332 |
! |
|
333 |
||
334 |
protocolLabelHolder |
|
335 |
^ self pseudoListLabelHolder |
|
336 |
! |
|
337 |
||
338 |
protocolList |
|
339 |
protocolList isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
340 |
protocolList := List new. "/ ValueHolder new |
5591 | 341 |
]. |
342 |
^ protocolList |
|
343 |
||
344 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
345 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
346 |
! |
|
347 |
||
348 |
rawProtocolList |
|
349 |
rawProtocolList isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
350 |
rawProtocolList := List new. |
5591 | 351 |
]. |
352 |
^ rawProtocolList |
|
353 |
! |
|
354 |
||
355 |
selectedProtocolIndices |
|
356 |
selectedProtocolIndices isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
357 |
selectedProtocolIndices := ValueHolder new. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
358 |
selectedProtocolIndices addDependent:self |
5591 | 359 |
]. |
360 |
^ selectedProtocolIndices. |
|
361 |
! |
|
362 |
||
363 |
selectedProtocols |
|
364 |
^ self selectionHolder |
|
365 |
! |
|
366 |
||
367 |
selectedProtocols:aValueHolder |
|
368 |
^ self selectionHolder:aValueHolder |
|
369 |
! |
|
370 |
||
8694 | 371 |
showPseudoProtocols |
372 |
showPseudoProtocols isNil ifTrue:[ |
|
373 |
showPseudoProtocols := true asValue. |
|
374 |
showPseudoProtocols addDependent:self |
|
375 |
]. |
|
376 |
^ showPseudoProtocols |
|
377 |
! |
|
378 |
||
379 |
showPseudoProtocols:aValueHolder |
|
380 |
showPseudoProtocols notNil ifTrue:[ |
|
381 |
showPseudoProtocols removeDependent:self |
|
382 |
]. |
|
383 |
showPseudoProtocols := aValueHolder. |
|
384 |
showPseudoProtocols notNil ifTrue:[ |
|
385 |
showPseudoProtocols addDependent:self |
|
386 |
]. |
|
387 |
! |
|
388 |
||
5591 | 389 |
variableFilter |
390 |
variableFilter isNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
391 |
variableFilter := false asValue. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
392 |
variableFilter addDependent:self |
5591 | 393 |
]. |
394 |
^ variableFilter |
|
395 |
||
396 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
397 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
398 |
! |
|
399 |
||
400 |
variableFilter:aValueHolder |
|
401 |
variableFilter notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
402 |
variableFilter removeDependent:self |
5591 | 403 |
]. |
404 |
variableFilter := aValueHolder. |
|
405 |
variableFilter notNil ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
406 |
variableFilter addDependent:self |
5591 | 407 |
]. |
408 |
||
409 |
"Modified: / 31.1.2000 / 00:56:31 / cg" |
|
410 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
411 |
! ! |
|
412 |
||
413 |
!MethodCategoryList methodsFor:'change & update'! |
|
414 |
||
415 |
classDefinitionChanged:aClass |
|
416 |
|refetch anyChange| |
|
417 |
||
418 |
anyChange := false. |
|
419 |
refetch := [:oldClass | |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
420 |
|nm cls newClass| |
5591 | 421 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
422 |
nm := oldClass theNonMetaclass name. |
13874 | 423 |
newClass := Smalltalk at:nm. |
13524
9783ab7e24d6
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
424 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
425 |
oldClass isMeta ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
426 |
newClass isNil ifTrue:[ |
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
427 |
"/ Transcript showCR:'oops - browser lost class ' , nm. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
428 |
newClass := oldClass |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
429 |
] ifFalse:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
430 |
newClass := newClass theMetaclass |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
431 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
432 |
]. |
13524
9783ab7e24d6
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
433 |
|
9783ab7e24d6
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
434 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
435 |
newClass ~~ oldClass ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
436 |
anyChange := true. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
437 |
]. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
438 |
newClass |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
439 |
]. |
5591 | 440 |
|
13524
9783ab7e24d6
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
441 |
classes := classes collect:[:oldClass | oldClass notNil ifTrue:[refetch value: oldClass] ifFalse:[nil]]. |
9783ab7e24d6
Fixes required by Java class browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
442 |
leafClasses := leafClasses collect:[:oldClass | oldClass notNil ifTrue:[refetch value: oldClass] ifFalse:[nil]]. |
5591 | 443 |
anyChange ifTrue:[ |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
444 |
self updateOutputGenerator |
5591 | 445 |
]. |
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
446 |
|
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
447 |
"Modified: / 06-07-2011 / 11:44:13 / cg" |
13874 | 448 |
"Modified: / 15-10-2013 / 01:19:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5591 | 449 |
! |
450 |
||
451 |
delayedUpdate:something with:aParameter from:changedObject |
|
452 |
|sel oldMethod newMethod mthd selectedCategories selectedProtocolsHolder oldProtocol newProtocol |
|
453 |
rawProtocolListHolder rawProtocolList oldSelectedProtocols newSelectedProtocols newIndices idx cls listView| |
|
454 |
||
455 |
selectedProtocolsHolder := self selectedProtocols. |
|
456 |
rawProtocolListHolder := self rawProtocolList. |
|
457 |
||
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
458 |
changedObject == environment ifTrue:[ |
6412 | 459 |
classes notNil ifTrue:[ |
460 |
something == #methodCategory ifTrue:[ |
|
461 |
cls := aParameter at:1. |
|
462 |
(cls notNil and:[classes includesIdentical:cls]) ifTrue:[ |
|
463 |
mthd := aParameter at:2. |
|
464 |
newProtocol := mthd category. |
|
465 |
oldProtocol := aParameter at:3. |
|
5591 | 466 |
|
10356 | 467 |
listValid == true ifTrue:[ self invalidateList ]. |
5591 | 468 |
|
6412 | 469 |
selectedCategories := selectedProtocolsHolder value. |
470 |
selectedCategories size > 0 ifTrue:[ |
|
471 |
selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]]. |
|
472 |
selectedCategories := selectedCategories collect:[:each | each string]. |
|
5591 | 473 |
|
6412 | 474 |
((selectedCategories includes:oldProtocol) |
475 |
or:[ (selectedCategories includes:newProtocol) |
|
476 |
or:[ selectedCategories includes:(self class nameListEntryForALL) ]]) |
|
477 |
ifTrue:[ |
|
10720
82b4939aafc5
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10712
diff
changeset
|
478 |
self enqueueDelayedUpdateOutputGenerator "/ updateOutputGenerator. |
6412 | 479 |
]. |
480 |
]. |
|
5591 | 481 |
|
6412 | 482 |
]. |
483 |
^ self |
|
484 |
]. |
|
5591 | 485 |
|
6412 | 486 |
something == #methodInClass ifTrue:[ |
487 |
"/ a method has been added/removed/changed |
|
488 |
cls := aParameter at:1. |
|
489 |
(classes includesIdentical:cls) ifTrue:[ |
|
490 |
sel := aParameter at:2. |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
491 |
self flushMethodInfoForClassNamed:cls name selector:sel. |
6412 | 492 |
oldMethod := aParameter at:3. |
493 |
newMethod := cls compiledMethodAt:sel. |
|
494 |
oldMethod notNil ifTrue:[ |
|
495 |
variableFilter value size > 0 ifTrue:[ |
|
496 |
"/ sigh - must invalidate |
|
10356 | 497 |
listValid == true ifTrue:[ self invalidateList ]. |
6412 | 498 |
]. |
499 |
^ self. |
|
500 |
]. |
|
501 |
"/ method was added - update the methodList |
|
502 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
10356 | 503 |
listValid == true ifTrue:[ self invalidateList ]. |
5591 | 504 |
|
6412 | 505 |
"/ if its category is selected, updateOutputGenerator |
506 |
selectedCategories := selectedProtocolsHolder value. |
|
507 |
selectedCategories size > 0 ifTrue:[ |
|
508 |
selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]]. |
|
509 |
selectedCategories := selectedCategories collect:[:each | each string]. |
|
5591 | 510 |
|
6412 | 511 |
((oldMethod notNil and:[selectedCategories includes:(oldMethod category)]) |
512 |
or:[ (newMethod notNil and:[selectedCategories includes:(newMethod category)])]) |
|
513 |
ifTrue:[ |
|
10720
82b4939aafc5
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10712
diff
changeset
|
514 |
self enqueueDelayedUpdateOutputGenerator "/ updateOutputGenerator. |
6412 | 515 |
]. |
516 |
]. |
|
517 |
]. |
|
518 |
^ self. |
|
519 |
]. |
|
5591 | 520 |
|
6412 | 521 |
something == #methodInClassRemoved ifTrue:[ |
522 |
cls := aParameter at:1. |
|
523 |
(classes includesIdentical:cls) ifTrue:[ |
|
524 |
sel := aParameter at:2. |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
525 |
self flushMethodInfoForClassNamed:cls name selector:sel. |
6412 | 526 |
"/ method was removed - update the list and output generator |
527 |
self invalidateList. |
|
528 |
"/ self updateOutputGenerator. |
|
529 |
self slaveMode value == true ifFalse:[ |
|
530 |
self enqueueDelayedUpdateOutputGenerator. |
|
531 |
] |
|
532 |
]. |
|
533 |
^ self. |
|
534 |
]. |
|
5591 | 535 |
|
6664
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
536 |
(something == #classOrganization |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
537 |
or:[ something == #methodCategoryAdded |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
538 |
or:[ something == #methodCategoryRemoved |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
539 |
or:[ something == #methodCategoriesRemoved |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
540 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
541 |
cls := (something == #classOrganization) ifTrue:aParameter ifFalse:[aParameter first]. |
6412 | 542 |
(classes includesIdentical:cls) ifTrue:[ |
10356 | 543 |
listValid == true ifTrue:[ self invalidateList ]. |
6412 | 544 |
] ifFalse:[ |
545 |
(classes contains:[:aClass | aClass name = cls name]) ifTrue:[ |
|
10356 | 546 |
listValid == true ifTrue:[ self invalidateList ]. |
6412 | 547 |
"/ self error:'obsolete class: should not happen'. |
548 |
] |
|
549 |
]. |
|
550 |
^ self. |
|
551 |
]. |
|
5591 | 552 |
|
6412 | 553 |
something == #projectOrganization ifTrue:[ |
554 |
aParameter notNil ifTrue:[ |
|
555 |
cls := aParameter at:1. |
|
556 |
cls notNil ifTrue:[ |
|
557 |
((classes includes:cls theMetaclass) |
|
558 |
or:[(classes includes:cls theNonMetaclass)]) ifTrue:[ |
|
559 |
self invalidateList. |
|
560 |
self slaveMode value == true ifFalse:[ |
|
561 |
self enqueueDelayedUpdateOutputGenerator. |
|
562 |
] |
|
563 |
]. |
|
564 |
]. |
|
565 |
] ifFalse:[ |
|
10356 | 566 |
listValid == true ifTrue:[ self invalidateList ]. |
6412 | 567 |
]. |
568 |
^ self |
|
569 |
]. |
|
5591 | 570 |
|
10356 | 571 |
(something == #methodCoverageInformation) ifTrue:[ |
572 |
"/ already checked if it is one of my classes |
|
573 |
listValid == true ifTrue:[ self invalidateList ]. |
|
574 |
^ self |
|
575 |
]. |
|
576 |
||
6412 | 577 |
(something == #classDefinition or:[something == #classVariables]) |
578 |
ifTrue:[ |
|
579 |
self classDefinitionChanged:aParameter. |
|
580 |
^ self |
|
581 |
]. |
|
5591 | 582 |
|
6412 | 583 |
"/ everything else is ignored |
584 |
"/ self halt. |
|
585 |
]. |
|
586 |
^ self |
|
5591 | 587 |
]. |
588 |
||
589 |
changedObject == self selectedProtocolIndices ifTrue:[ |
|
6412 | 590 |
oldSelectedProtocols := selectedProtocolsHolder value ? #(). |
591 |
oldSelectedProtocols := oldSelectedProtocols collect:[:each | each ifNil:[self class nameListEntryForNILCategory]]. |
|
592 |
oldSelectedProtocols := oldSelectedProtocols collect:[:each | each string]. |
|
593 |
newSelectedProtocols := self getSelectedProtocolsFromIndices. |
|
594 |
oldSelectedProtocols ~= newSelectedProtocols ifTrue:[ |
|
595 |
selectedProtocolsHolder value:newSelectedProtocols. |
|
596 |
]. |
|
597 |
newSelectedProtocols size > 1 ifTrue:[ |
|
598 |
(newSelectedProtocols includes:(self class nameListEntryForALL)) ifTrue:[ |
|
599 |
rawProtocolList := rawProtocolListHolder value. |
|
600 |
idx := rawProtocolList indexOf: (newSelectedProtocols copy remove:(self class nameListEntryForALL); yourself) first. |
|
601 |
idx ~~ 0 ifTrue:[ |
|
8742 | 602 |
(listView := self componentAt:#List) notNil ifTrue:[ |
6412 | 603 |
listView makeLineVisible:idx. |
604 |
] |
|
605 |
] |
|
606 |
] |
|
607 |
]. |
|
5591 | 608 |
|
6412 | 609 |
^ self |
5591 | 610 |
]. |
611 |
||
612 |
changedObject == selectedProtocolsHolder ifTrue:[ |
|
6412 | 613 |
rawProtocolList := rawProtocolListHolder value. |
614 |
rawProtocolList size == 0 ifTrue:[ |
|
10712
da12d4dac8b9
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10687
diff
changeset
|
615 |
lastGeneratedProtocols := nil. |
6412 | 616 |
self updateList. |
617 |
rawProtocolList := rawProtocolListHolder value. |
|
618 |
]. |
|
619 |
rawProtocolList notNil ifTrue:[ |
|
620 |
selectedCategories := selectedProtocolsHolder value ? #(). |
|
621 |
selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]]. |
|
622 |
newIndices := selectedCategories |
|
623 |
collect:[:each | rawProtocolList findFirst:[:p | p string = each string]]. |
|
624 |
newIndices := newIndices select:[:each | each ~~ 0]. |
|
625 |
newIndices ~= self selectedProtocolIndices value ifTrue:[ |
|
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
626 |
self selectedProtocolIndices |
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
627 |
setValue:nil; "/ to force update |
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
628 |
value:newIndices. |
6412 | 629 |
]. |
10712
da12d4dac8b9
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10687
diff
changeset
|
630 |
"/ cg: does not work (selecting all with testcase classes) |
da12d4dac8b9
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10687
diff
changeset
|
631 |
"/ don't see why, at the moment, but.... |
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
632 |
(lastGeneratedProtocols notNil |
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
633 |
and:[(lastGeneratedProtocols includes:self class nameListEntryForALL) |
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
634 |
and:[(selectedCategories ? #()) includes:self class nameListEntryForALL]]) |
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
635 |
ifTrue:[ |
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
636 |
"/ no need to update generator |
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
637 |
] ifFalse:[ |
6412 | 638 |
self updateOutputGenerator. |
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
639 |
] |
6412 | 640 |
]. |
641 |
^ self |
|
5591 | 642 |
]. |
643 |
||
644 |
(changedObject == variableFilter |
|
645 |
or:[changedObject == filterClassVars |
|
646 |
or:[changedObject == packageFilterOnInput]]) ifTrue:[ |
|
6412 | 647 |
self invalidateList. |
648 |
^ self |
|
5591 | 649 |
]. |
650 |
||
651 |
changedObject == methodVisibilityHolder ifTrue:[ |
|
6412 | 652 |
self invalidateList. |
653 |
self updateOutputGenerator. |
|
654 |
^ self |
|
5591 | 655 |
]. |
656 |
||
657 |
lastGeneratedProtocols := nil. |
|
658 |
||
659 |
changedObject == inGeneratorHolder ifTrue:[ |
|
6412 | 660 |
selectedCategories := selectedProtocolsHolder value. |
5591 | 661 |
|
6412 | 662 |
selectedCategories size > 0 ifTrue:[ |
663 |
oldSelectedProtocols := selectedCategories ? #(). |
|
664 |
oldSelectedProtocols := oldSelectedProtocols collect:[:each | each ifNil:[self class nameListEntryForNILCategory]]. |
|
665 |
oldSelectedProtocols := oldSelectedProtocols collect:[:each | each string]. |
|
666 |
self updateList. |
|
667 |
rawProtocolList := rawProtocolListHolder value. |
|
668 |
newSelectedProtocols := oldSelectedProtocols select:[:each | rawProtocolList includes:each]. |
|
5591 | 669 |
"/ selectedProtocolsHolder setValue:nil. "/ to force update |
6412 | 670 |
selectedProtocolsHolder value:newSelectedProtocols. |
671 |
^ self |
|
672 |
]. |
|
5591 | 673 |
]. |
674 |
||
675 |
super delayedUpdate:something with:aParameter from:changedObject |
|
676 |
||
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
677 |
"Created: / 05-02-2000 / 13:42:10 / cg" |
10720
82b4939aafc5
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10712
diff
changeset
|
678 |
"Modified: / 23-09-2011 / 20:37:31 / cg" |
5591 | 679 |
! |
680 |
||
681 |
getSelectedProtocolsFromIndices |
|
682 |
|l| |
|
683 |
||
684 |
l := self rawProtocolList value. |
|
685 |
^ self selectedProtocolIndices value collect:[:idx | l at:idx]. |
|
686 |
! |
|
687 |
||
688 |
selectionChanged |
|
689 |
|newSelectedCategories allEntry| |
|
690 |
||
691 |
newSelectedCategories := self selectedProtocols value. |
|
692 |
||
693 |
"/ the outputGenerator is only to be updated, if the output would really |
|
694 |
"/ change ... |
|
695 |
allEntry := self class nameListEntryForALL. |
|
696 |
||
697 |
(lastSelectedProtocols notNil |
|
698 |
and:[newSelectedCategories notNil |
|
699 |
and:[(lastSelectedProtocols includes:(allEntry)) |
|
700 |
and:[newSelectedCategories includes:(allEntry)]]]) ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
701 |
"/ no change ... |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
702 |
^ self |
5591 | 703 |
]. |
704 |
||
705 |
super selectionChanged. |
|
706 |
||
707 |
"Created: / 5.2.2000 / 13:42:10 / cg" |
|
708 |
"Modified: / 24.2.2000 / 14:12:12 / cg" |
|
709 |
! |
|
710 |
||
711 |
selectionChangedByClick |
|
712 |
"we are not interested in that - get another notification |
|
713 |
via the changed valueHolder" |
|
714 |
||
715 |
lastSelectedProtocols := self getSelectedProtocolsFromIndices |
|
716 |
! |
|
717 |
||
718 |
update:something with:aParameter from:changedObject |
|
10356 | 719 |
|cls sel mthd oldMethod newMethod| |
5591 | 720 |
|
721 |
"/ some can be ignored immediately |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
722 |
changedObject == environment ifTrue:[ |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
723 |
something isNil ifTrue:[ |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
724 |
"/ self halt "/ huh - environment changed - so what ? |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
725 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
726 |
]. |
6880 | 727 |
|
728 |
something == #currentChangeSet ifTrue:[ |
|
10356 | 729 |
listValid == true ifTrue:[ self invalidateList ]. |
6880 | 730 |
^ self. |
731 |
]. |
|
732 |
||
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
733 |
something == #methodInClass ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
734 |
"/ a method has been added/removed/changed |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
735 |
cls := aParameter at:1. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
736 |
(classes notNil and:[classes includesIdentical:cls]) ifFalse:[^ self]. |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
737 |
|
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
738 |
sel := aParameter at:2. |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
739 |
self flushMethodInfoForClassNamed:cls name selector:sel. |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
740 |
oldMethod := aParameter at:3. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
741 |
newMethod := cls compiledMethodAt:sel. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
742 |
oldMethod notNil ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
743 |
variableFilter value size > 0 ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
744 |
"/ sigh - must invalidate |
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
745 |
listValid ifTrue:[ self invalidateList ]. |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
746 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
747 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
748 |
oldMethod category ~= newMethod category ifTrue:[ |
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
749 |
listValid ifTrue:[ self invalidateList ]. |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
750 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
751 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
752 |
"/ mhmh - its now changed (so coloring will change). |
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
753 |
listValid ifTrue:[ self invalidateList ]. |
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
754 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
755 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
756 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
757 |
|
5591 | 758 |
"/ something == #classDefinition ifTrue:[ |
759 |
"/ ^ self. |
|
760 |
"/ ]. |
|
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
761 |
something == #newClass ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
762 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
763 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
764 |
something == #classRemove ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
765 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
766 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
767 |
something == #classRename ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
768 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
769 |
]. |
5591 | 770 |
"/ something == #classVariables ifTrue:[ |
771 |
"/ ^ self. |
|
772 |
"/ ]. |
|
6855
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
773 |
something == #classComment ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
774 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
775 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
776 |
something == #organization ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
777 |
^ self. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
778 |
]. |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
779 |
something == #methodTrap ifTrue:[ |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
780 |
^ self |
93bacd7fcf14
much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents:
6706
diff
changeset
|
781 |
]. |
10356 | 782 |
|
783 |
something == #methodCoverageInfo ifTrue:[ |
|
784 |
self showCoverageInformation value ifFalse:[^ self]. |
|
10368 | 785 |
listValid ifFalse:[^ self ]. |
786 |
||
10356 | 787 |
mthd := aParameter. |
788 |
(classes notNil and:[classes includesIdentical:mthd mclass]) ifFalse:[^ self]. |
|
10368 | 789 |
|
790 |
self enqueueDelayedUpdateList. |
|
791 |
^ self |
|
10356 | 792 |
]. |
5591 | 793 |
]. |
794 |
||
11850
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
795 |
something == #coverageInfo ifTrue:[ |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
796 |
listValid == true ifTrue:[ |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
797 |
self enqueueDelayedUpdateList |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
798 |
]. |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
799 |
^ self. |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
800 |
]. |
aa9240d74afa
changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
11717
diff
changeset
|
801 |
|
5591 | 802 |
super update:something with:aParameter from:changedObject. |
6880 | 803 |
|
11560 | 804 |
"Modified: / 05-06-2012 / 23:38:31 / cg" |
5591 | 805 |
! ! |
806 |
||
807 |
!MethodCategoryList methodsFor:'drag & drop'! |
|
808 |
||
6469 | 809 |
canDropContext:aDropContext |
5591 | 810 |
|cat methods| |
811 |
||
812 |
methods := aDropContext dropObjects collect:[:obj | obj theObject]. |
|
7123 | 813 |
(methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false]. |
5591 | 814 |
|
815 |
cat := self categoryAtTargetPointOf:aDropContext. |
|
13874 | 816 |
cat isNil ifTrue:[^ false]. |
5591 | 817 |
|
818 |
(methods contains:[:aMethod | aMethod category ~= cat]) ifFalse:[^ false]. |
|
6492 | 819 |
^ true |
7123 | 820 |
|
821 |
"Modified: / 13-09-2006 / 11:44:02 / cg" |
|
5591 | 822 |
! |
823 |
||
824 |
categoryAtTargetPointOf:aDropContext |
|
825 |
|p methodListView lineNr cat| |
|
826 |
||
827 |
p := aDropContext targetPoint. |
|
828 |
||
829 |
methodListView := aDropContext targetWidget. |
|
830 |
||
831 |
lineNr := methodListView lineAtY:p y. |
|
832 |
lineNr isNil ifTrue:[^ nil]. |
|
833 |
||
834 |
cat := rawProtocolList at:lineNr. |
|
835 |
cat := cat string. |
|
836 |
cat = self class nameListEntryForALL ifTrue:[^ nil]. |
|
837 |
||
838 |
^ cat |
|
839 |
! |
|
840 |
||
6469 | 841 |
doDropContext:aDropContext |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
842 |
"handle dropping of a method as a category change" |
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
843 |
|
5591 | 844 |
|cat methods| |
845 |
||
846 |
methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject]. |
|
7123 | 847 |
(methods conform:[:something | something isMethod]) ifFalse:[^ self]. |
5591 | 848 |
|
849 |
cat := self categoryAtTargetPointOf:aDropContext. |
|
13874 | 850 |
cat notNil ifTrue:[ |
6469 | 851 |
self masterApplication moveMethods:methods toProtocol:cat. |
5591 | 852 |
]. |
7123 | 853 |
|
854 |
"Modified: / 13-09-2006 / 11:43:23 / cg" |
|
5591 | 855 |
! ! |
856 |
||
857 |
!MethodCategoryList methodsFor:'generators'! |
|
858 |
||
859 |
makeGenerator |
|
860 |
"return a generator which enumerates the methods from the selected protocol; |
|
861 |
that generator generates 4-element elements (includes the class and protocol), |
|
862 |
in order to make the consumers only depend on one input |
|
863 |
(i.e. to pass multiple-class and multiple-protocol info |
|
864 |
without a need for another classHolder/protocolHolder in the methodList)." |
|
865 |
||
12472
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
866 |
|protocols noPackage noCat static notStatic| |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
867 |
|
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
868 |
noPackage := PackageId noProjectID. |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
869 |
noCat := (self class nameListEntryForNILCategory). |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
870 |
static := (self class nameListEntryForStatic). |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
871 |
notStatic := (self class nameListEntryForNonStatic). |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
872 |
|
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
873 |
protocols := self selectedProtocols value ? #(). |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
874 |
protocols := protocols collect:[:each | (each ifNil:[noCat]) string]. |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
875 |
lastGeneratedProtocols := protocols. |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
876 |
protocols := protocols asSet. |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
877 |
|
8694 | 878 |
^ Iterator |
879 |
on:[:whatToDo | |
|
12472
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
880 |
| |
8867 | 881 |
allProtocols superSendProtocols uncommentedProtocols obsoleteProtocols |
11865 | 882 |
documentationProtocols longProtocols extensionProtocols redefinedProtocols |
883 |
redefineProtocols overrideProtocols |
|
9086 | 884 |
missingRequiredProtocols subclassResponsibilities |
10679 | 885 |
notInstrumentedProtocols annotatedProtocols fullyCoveredProtocols |
886 |
partiallyCoveredProtocols uncoveredProtocols |
|
12472
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
887 |
classSelectorPairsAlreadyDone |
bb57c2a55f36
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12471
diff
changeset
|
888 |
packages remainingClasses remainingCategories classesAlreadyDone |
11940 | 889 |
catListed showChanged| |
5591 | 890 |
|
8694 | 891 |
(leafClasses size > 0 and:[protocols size > 0]) ifTrue:[ |
892 |
allProtocols := protocols includes:(self class nameListEntryForALL). |
|
893 |
superSendProtocols := protocols includes:(self class nameListEntryForSuperSend). |
|
894 |
uncommentedProtocols := protocols includes:(self class nameListEntryForUncommented). |
|
8718 | 895 |
obsoleteProtocols := protocols includes:(self class nameListEntryForObsolete). |
8733 | 896 |
documentationProtocols := protocols includes:(self class nameListEntryForDocumentation). |
8867 | 897 |
longProtocols := protocols includes:(self class nameListEntryForLong). |
8931 | 898 |
extensionProtocols := protocols includes:(self class nameListEntryForExtensions). |
8964 | 899 |
redefinedProtocols := protocols includes:(self class nameListEntryForRedefined). |
11865 | 900 |
redefineProtocols := protocols includes:(self class nameListEntryForRedefine). |
8931 | 901 |
overrideProtocols := protocols includes:(self class nameListEntryForOverride). |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
902 |
missingRequiredProtocols := protocols includes:(self class nameListEntryForRequired). |
9086 | 903 |
subclassResponsibilities := protocols includes:(self class nameListEntryForMustBeRedefinedInSubclass). |
10679 | 904 |
annotatedProtocols := protocols includes:(self class nameListEntryForAnnotated). |
905 |
||
906 |
fullyCoveredProtocols := protocols includes:(self class nameListEntryForFullyCovered). |
|
907 |
partiallyCoveredProtocols := protocols includes:(self class nameListEntryForPartiallyCovered). |
|
908 |
uncoveredProtocols := protocols includes:(self class nameListEntryForUncovered). |
|
909 |
notInstrumentedProtocols := protocols includes:(self class nameListEntryForNotInstrumented). |
|
10360 | 910 |
|
10679 | 911 |
packages := packageFilter value value. |
912 |
(packages notNil and:[packages includes:(self class nameListEntryForALL)]) ifTrue:[ |
|
913 |
packages := nil. |
|
914 |
]. |
|
11940 | 915 |
showChanged := packages notNil and:[packages includes:(self class nameListEntryForChanged)]. |
5591 | 916 |
|
12614 | 917 |
remainingClasses := leafClasses asNewIdentitySet. |
918 |
remainingCategories := protocols asNewSet. |
|
5591 | 919 |
|
8694 | 920 |
classesAlreadyDone := IdentitySet new. |
921 |
classSelectorPairsAlreadyDone := Set new. |
|
5591 | 922 |
|
8694 | 923 |
leafClasses do:[:aLeafClass | |
924 |
(self classesToProcessForClasses:(Array with:aLeafClass)) do:[:aClass | |
|
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
925 |
|supportsMethodCategories isJavaClass anyInThisClass requiredProtocolForClass| |
5591 | 926 |
|
8694 | 927 |
(classesAlreadyDone includes:aClass) ifFalse:[ |
928 |
classesAlreadyDone add:aClass. |
|
5591 | 929 |
|
8694 | 930 |
supportsMethodCategories := aClass supportsMethodCategories. |
931 |
isJavaClass := aClass isJavaClass. |
|
932 |
anyInThisClass := false. |
|
5591 | 933 |
|
8694 | 934 |
aClass methodDictionary keysAndValuesDo:[:sel :mthd | |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
935 |
|cat mPkg includeIt info| |
5591 | 936 |
|
10679 | 937 |
"/ sel == #metacelloCleanup ifTrue:[self halt]. |
8694 | 938 |
supportsMethodCategories ifTrue:[ |
939 |
cat := mthd category. |
|
940 |
] ifFalse:[ |
|
941 |
isJavaClass ifTrue:[ |
|
942 |
cat := mthd isStatic ifTrue:[static] ifFalse:[notStatic] |
|
943 |
] ifFalse:[ |
|
944 |
cat := noCat. |
|
945 |
] |
|
946 |
]. |
|
10679 | 947 |
catListed := cat. |
948 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
949 |
mPkg := mthd package. |
10679 | 950 |
(packages isNil |
951 |
or:[ mPkg = noPackage |
|
952 |
or:[ (packages includes:mPkg) |
|
11913 | 953 |
or:[ allProtocols "(extensionProtocols and:[ mthd isExtension ])" |
11940 | 954 |
or:[ showChanged |
955 |
]]]] |
|
10679 | 956 |
) ifTrue:[ |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
957 |
"/ used to be a more readable or, but to reuse info, I've splitted it. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
958 |
"/ because we should use the parser only once, we reuse the same methodInfo. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
959 |
"/ otherwise, the list update becomes too slow for long classes (NewSystemBrowser) |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
960 |
includeIt := allProtocols. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
961 |
includeIt ifFalse:[ includeIt := protocols includes:cat ]. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
962 |
includeIt ifFalse:[ |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
963 |
superSendProtocols ifTrue:[ |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
964 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
965 |
includeIt := info sendsSuper ]]. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
966 |
includeIt ifFalse:[ |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
967 |
uncommentedProtocols ifTrue:[ |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
968 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
10679 | 969 |
includeIt := info isUncommented. |
970 |
catListed := self class nameListEntryForUncommented ]]. |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
971 |
includeIt ifFalse:[ |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
972 |
obsoleteProtocols ifTrue:[ |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
973 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
974 |
includeIt := info isObsolete ]]. |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
975 |
includeIt ifFalse:[ |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
976 |
documentationProtocols ifTrue:[ |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
977 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
978 |
includeIt := info isDocumentationMethod ]]. |
8867 | 979 |
includeIt ifFalse:[ |
980 |
longProtocols ifTrue:[ |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
981 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8867 | 982 |
includeIt := info isLongMethod ]]. |
8931 | 983 |
includeIt ifFalse:[ |
984 |
extensionProtocols ifTrue:[ |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
985 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
10679 | 986 |
includeIt := info isExtensionMethod. |
987 |
catListed := self class nameListEntryForExtensions ]]. |
|
8931 | 988 |
includeIt ifFalse:[ |
989 |
overrideProtocols ifTrue:[ |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
990 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8931 | 991 |
includeIt := info isOverride ]]. |
11865 | 992 |
"/ includeIt ifFalse:[ |
993 |
"/ redefinedProtocols ifTrue:[ |
|
994 |
"/ info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
|
995 |
"/ includeIt := info isRedefined ]]. |
|
8964 | 996 |
includeIt ifFalse:[ |
11865 | 997 |
redefineProtocols ifTrue:[ |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
998 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
8964 | 999 |
includeIt := info isRedefine ]]. |
9086 | 1000 |
includeIt ifFalse:[ |
1001 |
subclassResponsibilities ifTrue:[ |
|
1002 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
|
1003 |
includeIt := info isSubclassResponsibility ]]. |
|
10679 | 1004 |
includeIt ifFalse:[ |
1005 |
annotatedProtocols ifTrue:[ |
|
1006 |
info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ]. |
|
1007 |
includeIt := info isAnnotated ]]. |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1008 |
|
10360 | 1009 |
includeIt ifFalse:[ |
1010 |
mthd isInstrumented ifTrue:[ |
|
1011 |
mthd hasBeenCalled ifTrue:[ |
|
1012 |
mthd haveAllBlocksBeenExecuted ifTrue:[ |
|
10679 | 1013 |
includeIt := fullyCoveredProtocols. |
10360 | 1014 |
] ifFalse:[ |
10679 | 1015 |
includeIt := partiallyCoveredProtocols |
10360 | 1016 |
] |
1017 |
] ifFalse:[ |
|
10679 | 1018 |
includeIt := uncoveredProtocols |
10360 | 1019 |
]. |
1020 |
] ifFalse:[ |
|
10679 | 1021 |
includeIt := notInstrumentedProtocols |
10360 | 1022 |
]. |
1023 |
]. |
|
1024 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1025 |
includeIt ifTrue:[ |
8694 | 1026 |
(methodVisibilityHolder value == #class) ifTrue:[ |
10679 | 1027 |
whatToDo value:aClass value:catListed value:sel value:mthd. |
8694 | 1028 |
] ifFalse:[ |
1029 |
(classSelectorPairsAlreadyDone includes:(aLeafClass->sel)) ifFalse:[ |
|
1030 |
classSelectorPairsAlreadyDone add:(aLeafClass->sel). |
|
10679 | 1031 |
whatToDo value:aClass value:catListed value:sel value:mthd. |
8694 | 1032 |
]. |
1033 |
]. |
|
1034 |
anyInThisClass := true. |
|
10679 | 1035 |
remainingCategories remove:catListed ifAbsent:nil. |
9086 | 1036 |
]. |
8694 | 1037 |
] |
7296
dfea12500274
do not suppress loose methods
Claus Gittinger <cg@exept.de>
parents:
7123
diff
changeset
|
1038 |
]. |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1039 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1040 |
missingRequiredProtocols ifTrue:[ |
9729
0d29623f7e10
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
9465
diff
changeset
|
1041 |
requiredProtocolForClass := SmalltalkCodeGeneratorTool missingRequiredProtocolFor:aClass. |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1042 |
requiredProtocolForClass do:[:sel | |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1043 |
|selectorInRed missingMethodPlaceHolder| |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1044 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1045 |
selectorInRed := sel colorizeAllWith:Color red. |
9043 | 1046 |
missingMethodPlaceHolder := MissingMethod mclass:aClass selector:sel. |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1047 |
whatToDo value:aClass value:'required' value:selectorInRed value:missingMethodPlaceHolder. |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1048 |
]. |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1049 |
]. |
8694 | 1050 |
anyInThisClass ifTrue:[ remainingClasses remove:aClass ifAbsent:nil. ]. |
1051 |
]. |
|
1052 |
]. |
|
1053 |
]. |
|
1054 |
remainingClasses do:[:aClass | |
|
1055 |
whatToDo value:aClass value:nil value:nil value:nil. |
|
1056 |
]. |
|
1057 |
remainingCategories do:[:cat | |
|
1058 |
whatToDo value:nil value:cat value:nil value:nil. |
|
1059 |
] |
|
1060 |
] |
|
1061 |
] |
|
5591 | 1062 |
|
7296
dfea12500274
do not suppress loose methods
Claus Gittinger <cg@exept.de>
parents:
7123
diff
changeset
|
1063 |
"Created: / 05-02-2000 / 13:42:10 / cg" |
10712
da12d4dac8b9
changed: #delayedUpdate:with:from:
Claus Gittinger <cg@exept.de>
parents:
10687
diff
changeset
|
1064 |
"Modified: / 18-09-2011 / 12:51:45 / cg" |
5591 | 1065 |
! ! |
1066 |
||
1067 |
!MethodCategoryList methodsFor:'private'! |
|
1068 |
||
1069 |
class:cls protocol:cat includesMethodsInAnyPackage:packageFilter |
|
1070 |
cls methodDictionary keysAndValuesDo:[:sel :mthd | |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1071 |
mthd category == cat ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1072 |
(packageFilter includes:mthd package) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1073 |
^ true |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1074 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1075 |
] |
5591 | 1076 |
]. |
1077 |
^ false |
|
1078 |
! |
|
1079 |
||
1080 |
class:cls protocol:cat includesModsOfClassVariable:variablesToHighLight |
|
9243 | 1081 |
"are there any methods in the protocol cat which modify any class variable in variablesToHighLight ?" |
1082 |
||
5591 | 1083 |
^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars |
1084 |
! |
|
1085 |
||
1086 |
class:cls protocol:cat includesModsOfInstanceVariable:variablesToHighLight |
|
9243 | 1087 |
"are there any methods in the protocol cat which modify any inst variable in variablesToHighLight ?" |
1088 |
||
5591 | 1089 |
^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars |
1090 |
! |
|
1091 |
||
1092 |
class:cls protocol:cat includesRefsToClassVariable:variablesToHighLight |
|
9243 | 1093 |
"are there any methods in the protocol cat which reference any class variable in variablesToHighLight ?" |
1094 |
||
5591 | 1095 |
^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars |
1096 |
! |
|
1097 |
||
1098 |
class:cls protocol:cat includesRefsToInstanceVariable:variablesToHighLight |
|
9243 | 1099 |
"are there any methods in the protocol cat which reference any inst variable in variablesToHighLight ?" |
1100 |
||
5591 | 1101 |
^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars |
1102 |
! |
|
1103 |
||
1104 |
class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:querySelector |
|
9243 | 1105 |
"are there any methods in the protocol cat which reference/modify any inst/class variable in variablesToHighLight ?" |
1106 |
||
5591 | 1107 |
|anyVarNameAccessable| |
1108 |
||
1109 |
anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight. |
|
1110 |
anyVarNameAccessable ifFalse:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1111 |
anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight. |
5591 | 1112 |
]. |
1113 |
anyVarNameAccessable ifFalse:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1114 |
"/ no need to parse |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1115 |
^ false |
5591 | 1116 |
]. |
1117 |
||
1118 |
cls selectorsAndMethodsDo:[:sel :mthd | |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1119 |
|src parser usedVars| |
5591 | 1120 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1121 |
mthd category = cat ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1122 |
src := mthd source. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1123 |
src notNil ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1124 |
" |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1125 |
before doing a slow parse, quickly scan the |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1126 |
methods source for the variables name ... |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1127 |
" |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1128 |
(variablesToHighLight contains:[:varName | (src findString:varName) ~~ 0]) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1129 |
parser := Parser |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1130 |
parseMethod:src |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1131 |
in:cls |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1132 |
ignoreErrors:true |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1133 |
ignoreWarnings:true. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1134 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1135 |
usedVars := parser perform:querySelector. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1136 |
(usedVars includesAny:variablesToHighLight) |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1137 |
ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1138 |
^ true |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1139 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1140 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1141 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1142 |
] ifFalse:[ |
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
1143 |
Transcript showCR:'Oops - cannot access method source'. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1144 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1145 |
] |
5591 | 1146 |
]. |
1147 |
^ false |
|
10185
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
1148 |
|
6428d75e11bb
comment/format in: #makeGenerator
Claus Gittinger <cg@exept.de>
parents:
10180
diff
changeset
|
1149 |
"Modified: / 06-07-2011 / 11:44:25 / cg" |
5591 | 1150 |
! |
1151 |
||
1152 |
classesToProcessForClasses:classes |
|
1153 |
^ self classesToProcessForClasses:classes withVisibility:methodVisibilityHolder value. |
|
1154 |
! |
|
1155 |
||
8961 | 1156 |
commonPostOpen |
1157 |
super commonPostOpen. |
|
1158 |
||
1159 |
self showPseudoProtocols ifTrue:[ |
|
1160 |
"/ revalidate my list, because it was only shown lazy |
|
1161 |
self invalidateList. |
|
1162 |
]. |
|
1163 |
! |
|
1164 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1165 |
flushMethodInfoForClassNamed:className selector:selector |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1166 |
MethodInfoCacheAccessLock critical:[ |
10552 | 1167 |
MethodInfoCache notNil ifTrue:[ |
1168 |
MethodInfoCache |
|
1169 |
removeKey:(className,'>>',selector) |
|
1170 |
ifAbsent:[] |
|
1171 |
]. |
|
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1172 |
] |
10552 | 1173 |
|
1174 |
"Modified: / 08-08-2011 / 19:16:32 / cg" |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1175 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1176 |
|
5591 | 1177 |
listOfMethodCategories |
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1178 |
|categoryList categoryBag plainCategories classesProcessed leafClassesProcessed |
5591 | 1179 |
generator nm variablesToHighlight classVarsToHighLight |
1180 |
itemsWithVarRefs itemsWithVarMods itemsWithExtensions itemsWithSuppressedExtensions |
|
7501 | 1181 |
itemsInChangeSet itemsInRemoteChangeSet |
9445 | 1182 |
itemsWithInstrumentedMethods itemsWithCalledMethods itemsWithUncalledMethods |
1183 |
itemsWithPartiallyCoveredMethods itemsWithFullyCoveredMethods |
|
11940 | 1184 |
packageFilterOnInput packageFilter showChanges nameListEntryForALL changeSet |
8723 | 1185 |
emphasizedPlus emphasisForRef emphasisForMod |
9086 | 1186 |
numAll numObsolete numSuper numUncommented numDocumentation numLong numOverride |
11865 | 1187 |
numRedefine numRedefined numExtension numMissingRequired numSubclassResponsibility |
10679 | 1188 |
numAnnotated numFullyCovered numPartiallyCovered numUncovered numNotInstrumented |
9445 | 1189 |
showPseudoProtocols showCoverageInformation |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1190 |
addPseudoEntry addPseudoEntryWithColor countAll pseudoEntryColor userPreferences |
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1191 |
startTime suppressPseudoProtocolsNow needsSpecialColoring| |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1192 |
|
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1193 |
userPreferences := UserPreferences current. |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1194 |
countAll := true. |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1195 |
startTime := Timestamp now. |
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1196 |
suppressPseudoProtocolsNow := false. |
5591 | 1197 |
|
1198 |
generator := inGeneratorHolder value. |
|
1199 |
generator isNil ifTrue:[ ^ #() ]. |
|
1200 |
||
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1201 |
showPseudoProtocols := self showPseudoProtocols value. |
10348
523f025190ff
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
10297
diff
changeset
|
1202 |
showCoverageInformation := self showCoverageInformation value. |
8961 | 1203 |
|
5591 | 1204 |
nameListEntryForALL := self class nameListEntryForALL. |
1205 |
||
1206 |
packageFilterOnInput := self packageFilterOnInput value. |
|
1207 |
(packageFilterOnInput notNil and:[packageFilterOnInput includes:nameListEntryForALL]) ifTrue:[ |
|
5814 | 1208 |
packageFilterOnInput := nil |
5591 | 1209 |
]. |
1210 |
packageFilter := self packageFilter value. |
|
1211 |
(packageFilter notNil and:[packageFilter includes:nameListEntryForALL]) ifTrue:[ |
|
5814 | 1212 |
packageFilter := nil |
5591 | 1213 |
]. |
11940 | 1214 |
showChanges := false. |
1215 |
(packageFilter notNil and:[packageFilter includes:self class nameListEntryForChanged]) ifTrue:[ |
|
1216 |
showChanges := true |
|
1217 |
]. |
|
5591 | 1218 |
|
1219 |
categoryList := Set new. |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1220 |
categoryBag := Bag new. |
5591 | 1221 |
itemsWithVarRefs := Set new. |
1222 |
itemsWithVarMods := Set new. |
|
1223 |
itemsWithExtensions := Set new. |
|
1224 |
itemsWithSuppressedExtensions := Set new. |
|
1225 |
itemsInChangeSet := Set new. |
|
7501 | 1226 |
itemsInRemoteChangeSet := Set new. |
9445 | 1227 |
|
1228 |
itemsWithInstrumentedMethods := Set new. |
|
1229 |
itemsWithCalledMethods := Set new. |
|
1230 |
itemsWithUncalledMethods := Set new. |
|
1231 |
itemsWithPartiallyCoveredMethods := Set new. |
|
1232 |
itemsWithFullyCoveredMethods := Set new. |
|
1233 |
||
5591 | 1234 |
plainCategories := Set new. |
1235 |
classesProcessed := IdentitySet new. |
|
1236 |
leafClassesProcessed := IdentitySet new. |
|
1237 |
variablesToHighlight := variableFilter value. |
|
1238 |
classVarsToHighLight := filterClassVars value. |
|
8867 | 1239 |
numObsolete := numSuper := numUncommented := numDocumentation := numLong := 0. |
11865 | 1240 |
numRedefine := numRedefined := numOverride := numExtension := numMissingRequired := numSubclassResponsibility := 0. |
10360 | 1241 |
numNotInstrumented := numFullyCovered := numPartiallyCovered := numUncovered := 0. |
10679 | 1242 |
numAnnotated := 0. |
12471
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1243 |
numAll := 0. |
5591 | 1244 |
|
1245 |
generator do:[:clsIn :catIn | |
|
11913 | 1246 |
|emptyProtocols clsName doHighLight doHighLightRed includedCats| |
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1247 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1248 |
includedCats := Set new. |
5591 | 1249 |
|
5814 | 1250 |
leafClassesProcessed add:clsIn. |
1251 |
(self classesToProcessForClasses:(Array with:clsIn)) do:[:cls | |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1252 |
|cats processCategory| |
5591 | 1253 |
|
5814 | 1254 |
classesProcessed add:cls. |
5591 | 1255 |
|
5814 | 1256 |
cls ~~ clsIn ifTrue:[ |
1257 |
cats := cls categories |
|
1258 |
] ifFalse:[ |
|
1259 |
cats := Array with:catIn. |
|
1260 |
]. |
|
11913 | 1261 |
cats do:[:cat | |
1262 |
|suppress| |
|
1263 |
||
5814 | 1264 |
cat notNil ifTrue:[ |
1265 |
suppress := packageFilterOnInput notNil |
|
1266 |
and:[ (self class:cls protocol:cat includesMethodsInAnyPackage:packageFilterOnInput) not ]. |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1267 |
suppress ifFalse:[ |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1268 |
includedCats add:cat. |
5591 | 1269 |
|
8723 | 1270 |
variablesToHighlight notEmptyOrNil ifTrue:[ |
5814 | 1271 |
(itemsWithVarRefs includes:cat) ifFalse:[ |
1272 |
classVarsToHighLight ifTrue:[ |
|
1273 |
doHighLight := self class:cls protocol:cat includesRefsToClassVariable:variablesToHighlight. |
|
1274 |
doHighLight ifTrue:[ |
|
1275 |
doHighLightRed := self class:cls protocol:cat includesModsOfClassVariable:variablesToHighlight. |
|
1276 |
]. |
|
1277 |
] ifFalse:[ |
|
1278 |
doHighLight := self class:cls protocol:cat includesRefsToInstanceVariable:variablesToHighlight. |
|
1279 |
doHighLight ifTrue:[ |
|
1280 |
doHighLightRed := self class:cls protocol:cat includesModsOfInstanceVariable:variablesToHighlight. |
|
1281 |
]. |
|
1282 |
]. |
|
1283 |
doHighLight ifTrue:[ |
|
1284 |
itemsWithVarRefs add:cat. |
|
1285 |
doHighLightRed ifTrue:[ |
|
1286 |
itemsWithVarMods add:cat. |
|
1287 |
]. |
|
1288 |
] |
|
1289 |
] |
|
9086 | 1290 |
]. |
1291 |
||
5814 | 1292 |
AdditionalEmptyCategoriesPerClassName size > 0 ifTrue:[ |
1293 |
clsName := cls name. |
|
1294 |
emptyProtocols := AdditionalEmptyCategoriesPerClassName at:clsName ifAbsent:nil. |
|
1295 |
emptyProtocols size > 0 ifTrue:[ |
|
1296 |
emptyProtocols remove:cat ifAbsent:nil. |
|
1297 |
]. |
|
1298 |
emptyProtocols size == 0 ifTrue:[ |
|
1299 |
AdditionalEmptyCategoriesPerClassName removeKey:clsName ifAbsent:nil |
|
1300 |
]. |
|
1301 |
]. |
|
1302 |
] |
|
1303 |
] |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1304 |
]. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1305 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1306 |
cats := cats asSet. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1307 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1308 |
cls selectorsAndMethodsDo:[:sel :mthd | |
11913 | 1309 |
|info cat suppress| |
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1310 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1311 |
(includedCats includes:(cat := mthd category)) ifTrue:[ |
11940 | 1312 |
suppress := packageFilter notNil |
1313 |
and:[ (packageFilter includes:mthd package) not |
|
1314 |
and:[ showChanges not ]]. |
|
11913 | 1315 |
suppress ifFalse:[ |
12471
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1316 |
numAll := numAll + 1. |
11913 | 1317 |
categoryBag add:cat. |
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1318 |
suppressPseudoProtocolsNow ifFalse:[ |
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1319 |
info := self methodInfoFor:mthd in:cls selector:sel lazy:suppressPseudoProtocolsNow. |
11913 | 1320 |
info notNil ifTrue:[ |
1321 |
info isObsolete ifTrue:[ numObsolete := numObsolete + 1 ]. |
|
1322 |
info sendsSuper ifTrue:[ numSuper := numSuper + 1 ]. |
|
1323 |
info isUncommented ifTrue:[ numUncommented := numUncommented + 1 ]. |
|
1324 |
info isDocumentationMethod ifTrue:[ numDocumentation := numDocumentation + 1 ]. |
|
1325 |
info isLongMethod ifTrue:[ numLong := numLong + 1 ]. |
|
1326 |
info isExtensionMethod ifTrue:[ numExtension := numExtension + 1 ]. |
|
1327 |
info isOverride ifTrue:[ numOverride := numOverride + 1 ]. |
|
1328 |
info isRedefine ifTrue:[ numRedefine := numRedefine + 1 ]. |
|
1329 |
info isRedefined ifTrue:[ numRedefined := numRedefined + 1 ]. |
|
1330 |
info isSubclassResponsibility ifTrue:[ numSubclassResponsibility := numSubclassResponsibility + 1]. |
|
1331 |
info isAnnotated ifTrue:[ numAnnotated := numAnnotated + 1]. |
|
1332 |
]. |
|
1333 |
(Timestamp now deltaFrom:startTime) > 5 seconds ifTrue:[ |
|
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1334 |
suppressPseudoProtocolsNow := true. |
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1335 |
"/ because we already computed for 5 seconds, more and more will be found in |
11913 | 1336 |
"/ the cache, and eventually, pseudo protocols will be shown anyway |
1337 |
masterApplication showInfo:'suppress pseudo protocols - parsing took too long'. |
|
12049
da944de8de06
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12013
diff
changeset
|
1338 |
"/ self enqueueDelayedUpdateList. |
11913 | 1339 |
]. |
1340 |
] |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1341 |
] |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1342 |
]. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1343 |
]. |
5814 | 1344 |
] |
1345 |
]. |
|
1346 |
||
1347 |
changeSet := ChangeSet current. |
|
5591 | 1348 |
|
1349 |
classesProcessed do:[:eachClass | |
|
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1350 |
|classPackage required| |
5591 | 1351 |
|
5814 | 1352 |
classPackage := eachClass package. |
6706 | 1353 |
eachClass methodDictionary keysAndValuesDo:[:mSelector :mthd | |
5814 | 1354 |
|mPackage mCategory| |
5591 | 1355 |
|
5814 | 1356 |
mPackage := mthd package. |
1357 |
mCategory := mthd category. |
|
5591 | 1358 |
|
5814 | 1359 |
#fixme. |
1360 |
mPackage = classPackage ifTrue:[ |
|
1361 |
mPackage ~~ classPackage ifTrue:[ |
|
1362 |
mthd setPackage:(mPackage := mPackage string asSymbol). |
|
1363 |
] |
|
1364 |
]. |
|
1365 |
mPackage ~~ classPackage ifTrue:[ |
|
10659
4157482b811c
Fix in listOfMethodCategories for methods with nil category (non-smalltalk methods)
vrany
parents:
10652
diff
changeset
|
1366 |
(mCategory notNil and:[mPackage ~= PackageId noProjectID]) ifTrue:[ |
6877 | 1367 |
(packageFilter notNil |
1368 |
and:[ (packageFilter includes:mPackage) not]) |
|
1369 |
ifTrue:[ |
|
1370 |
itemsWithSuppressedExtensions add:mCategory. |
|
12471
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1371 |
] ifFalse:[ |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1372 |
itemsWithExtensions add:mCategory. |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1373 |
] |
5814 | 1374 |
]. |
1375 |
]. |
|
9445 | 1376 |
|
1377 |
showCoverageInformation ifTrue:[ |
|
1378 |
mthd isInstrumented ifTrue:[ |
|
9449
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1379 |
mthd category = 'documentation' ifFalse:[ |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1380 |
itemsWithInstrumentedMethods add:mCategory. |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1381 |
mthd hasBeenCalled ifTrue:[ |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1382 |
itemsWithCalledMethods add:mCategory. |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1383 |
mthd haveAllBlocksBeenExecuted ifTrue:[ |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1384 |
itemsWithFullyCoveredMethods add:mCategory. |
10356 | 1385 |
numFullyCovered := numFullyCovered + 1. |
9449
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1386 |
] ifFalse:[ |
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1387 |
itemsWithPartiallyCoveredMethods add:mCategory. |
10356 | 1388 |
numPartiallyCovered := numPartiallyCovered + 1. |
9449
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1389 |
]. |
9445 | 1390 |
] ifFalse:[ |
9449
db3be2a21d55
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9445
diff
changeset
|
1391 |
itemsWithUncalledMethods add:mCategory. |
10356 | 1392 |
numUncovered := numUncovered + 1. |
9445 | 1393 |
]. |
1394 |
]. |
|
10360 | 1395 |
] ifFalse:[ |
1396 |
numNotInstrumented := numNotInstrumented + 1. |
|
9445 | 1397 |
]. |
11956
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1398 |
]. |
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1399 |
(changeSet includesChangeForClass:eachClass selector:mSelector) ifTrue:[ |
12471
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1400 |
(packageFilter notNil |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1401 |
and:[ (packageFilter includes:mPackage) not]) |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1402 |
ifTrue:[ |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1403 |
"/ itemsInChangeSetSuppressed add:mCategory. |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1404 |
] ifFalse:[ |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1405 |
itemsInChangeSet add:mCategory. |
cf02312d4d7a
class: Tools::MethodCategoryList
Claus Gittinger <cg@exept.de>
parents:
12400
diff
changeset
|
1406 |
] |
11956
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1407 |
]. |
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1408 |
(SmallTeam notNil and:[ SmallTeam includesChangeForClass:eachClass selector:mSelector] ) ifTrue:[ |
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1409 |
itemsInRemoteChangeSet add:mCategory. |
7501 | 1410 |
]. |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1411 |
]. |
11913 | 1412 |
|
1413 |
(packageFilter isNil or:[ packageFilter includes:eachClass package ]) ifTrue:[ |
|
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1414 |
(suppressPseudoProtocolsNow not and:[showPseudoProtocols]) ifTrue:[ |
11913 | 1415 |
"/ see if there is a subclassResponsibility in a superclass |
1416 |
required := SmalltalkCodeGeneratorTool missingRequiredProtocolFor:eachClass. |
|
1417 |
numMissingRequired := numMissingRequired + required size. |
|
1418 |
]. |
|
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
1419 |
]. |
5591 | 1420 |
]. |
1421 |
||
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1422 |
pseudoEntryColor := self class pseudoEntryForegroundColor. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1423 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1424 |
categoryList := categoryBag asSet asOrderedCollection. |
5591 | 1425 |
self rawProtocolList removeAll. |
1426 |
rawProtocolList addAll:categoryList. |
|
1427 |
||
6698 | 1428 |
emphasizedPlus := (self colorizeForDifferentPackage:' [ + ]'). |
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1429 |
emphasisForRef := userPreferences emphasisForReadVariable. |
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1430 |
emphasisForMod := userPreferences emphasisForWrittenVariable. |
6698 | 1431 |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1432 |
needsSpecialColoring := |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1433 |
(itemsInChangeSet notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1434 |
or:[itemsInRemoteChangeSet notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1435 |
or:[itemsWithExtensions notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1436 |
or:[itemsWithVarRefs notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1437 |
or:[itemsWithInstrumentedMethods notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1438 |
or:[itemsWithCalledMethods notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1439 |
or:[itemsWithUncalledMethods notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1440 |
or:[itemsWithFullyCoveredMethods notEmpty |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1441 |
or:[itemsWithPartiallyCoveredMethods notEmpty]]]]]]]]). |
5591 | 1442 |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1443 |
rawProtocolList keysAndValuesDo:[:idx :cat | |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1444 |
|item inChangeSet inRemoteChangeSet hasExtensions hasVarRef hasVarMod |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1445 |
clr| |
7501 | 1446 |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1447 |
item := cat. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1448 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1449 |
needsSpecialColoring ifTrue:[ |
9445 | 1450 |
inChangeSet := false. |
6701 | 1451 |
|
9445 | 1452 |
showCoverageInformation ifTrue:[ |
1453 |
(itemsWithInstrumentedMethods includes:cat) ifTrue:[ |
|
1454 |
(itemsWithCalledMethods includes:cat) ifTrue:[ |
|
1455 |
(itemsWithPartiallyCoveredMethods includes:cat) ifTrue:[ |
|
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1456 |
clr := (userPreferences colorForInstrumentedPartiallyCoveredCode). |
9445 | 1457 |
] ifFalse:[ |
1458 |
(itemsWithUncalledMethods includes:cat) ifTrue:[ |
|
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1459 |
clr := (userPreferences colorForInstrumentedPartiallyCoveredCode). |
9445 | 1460 |
] ifFalse:[ |
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1461 |
clr := (userPreferences colorForInstrumentedFullyCoveredCode). |
10356 | 1462 |
] |
9445 | 1463 |
] |
1464 |
] ifFalse:[ |
|
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1465 |
clr := (userPreferences colorForInstrumentedNeverCalledCode). |
9445 | 1466 |
]. |
9452
750e55a24967
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9449
diff
changeset
|
1467 |
item := self colorize:cat with:(#color -> clr). |
9445 | 1468 |
] |
11956
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1469 |
]. |
8d7fc34726f6
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11940
diff
changeset
|
1470 |
clr isNil ifTrue:[ |
9445 | 1471 |
inChangeSet := itemsInChangeSet includes:cat. |
1472 |
inChangeSet ifTrue:[ |
|
1473 |
item := self colorizeForChangedCode:cat. |
|
1474 |
]. |
|
1475 |
||
1476 |
inRemoteChangeSet := itemsInRemoteChangeSet includes:cat. |
|
1477 |
inRemoteChangeSet ifTrue:[ |
|
1478 |
item := (self colorizeForChangedCodeInSmallTeam:'!! '),item. |
|
1479 |
]. |
|
7501 | 1480 |
]. |
1481 |
||
6698 | 1482 |
hasVarRef := itemsWithVarRefs includes:cat. |
1483 |
hasVarRef ifTrue:[ |
|
1484 |
hasVarMod := itemsWithVarMods includes:cat. |
|
6701 | 1485 |
item := item asText |
10180
d765319efec9
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9729
diff
changeset
|
1486 |
emphasisAllAdd:(hasVarMod ifTrue:[emphasisForMod] ifFalse:[emphasisForRef]). |
6701 | 1487 |
]. |
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1488 |
]. |
5591 | 1489 |
|
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1490 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1491 |
item := item , ((' (%1)' bindWith:(categoryBag occurrencesOf:cat)) |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1492 |
colorizeAllWith:pseudoEntryColor). |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1493 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1494 |
needsSpecialColoring ifTrue:[ |
6701 | 1495 |
hasExtensions := itemsWithExtensions includes:cat. |
1496 |
hasExtensions ifTrue:[ |
|
1497 |
item := item , emphasizedPlus. |
|
6698 | 1498 |
]. |
6877 | 1499 |
inChangeSet ifTrue:[ |
7056 | 1500 |
item := item , self class markForBeingInChangeList. |
6877 | 1501 |
]. |
11861
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1502 |
]. |
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1503 |
|
d4f6399526ac
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11850
diff
changeset
|
1504 |
categoryList at:idx put:item. |
5591 | 1505 |
]. |
1506 |
||
1507 |
classesProcessed size > 0 ifTrue:[ |
|
5814 | 1508 |
"/ those are simulated - in ST/X, empty categories do not |
1509 |
"/ really exist; however, during browsing, it makes sense. |
|
1510 |
AdditionalEmptyCategoriesPerClassName size > 0 ifTrue:[ |
|
1511 |
AdditionalEmptyCategoriesPerClassName keysAndValuesDo:[:clsName :protocols | |
|
1512 |
(classesProcessed contains:[:cls | cls name = clsName]) ifTrue:[ |
|
1513 |
categoryList addAll:protocols. |
|
1514 |
rawProtocolList addAll:protocols. |
|
1515 |
] |
|
1516 |
] |
|
1517 |
]. |
|
5591 | 1518 |
]. |
1519 |
||
1520 |
self makeIndependent. |
|
1521 |
classes := classesProcessed. |
|
1522 |
leafClasses := leafClassesProcessed. |
|
1523 |
self makeDependent. |
|
1524 |
||
1525 |
rawProtocolList sortWith:categoryList. |
|
1526 |
categoryList size == 1 ifTrue:[ |
|
5814 | 1527 |
nm := categoryList first string. |
1528 |
classes size == 1 ifTrue:[ |
|
1529 |
nm := classes first name , '-' , nm |
|
1530 |
]. |
|
1531 |
self protocolLabelHolder value:nm |
|
5591 | 1532 |
]. |
9086 | 1533 |
|
5591 | 1534 |
categoryList notEmpty ifTrue:[ |
5814 | 1535 |
noAllItem value ~~ true ifTrue:[ |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1536 |
|allName| |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1537 |
|
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1538 |
countAll ifTrue:[ |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1539 |
allName := self class nameListEntryForALLWithCount bindWith:numAll. |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1540 |
] ifFalse:[ |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1541 |
allName := nameListEntryForALL. |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1542 |
]. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1543 |
categoryList addFirst:(allName allItalic colorizeAllWith:pseudoEntryColor). |
5814 | 1544 |
rawProtocolList addFirst:nameListEntryForALL. |
8694 | 1545 |
]. |
9042
90d6e1c9ad5b
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9039
diff
changeset
|
1546 |
]. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1547 |
|
12013
b25c25ff6211
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
11956
diff
changeset
|
1548 |
(suppressPseudoProtocolsNow not and:[showPseudoProtocols]) ifTrue:[ |
10356 | 1549 |
addPseudoEntryWithColor := [:s :n :clr | |
9086 | 1550 |
n > 0 ifTrue:[ |
9126
9ad8ea73b635
comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents:
9122
diff
changeset
|
1551 |
categoryList |
10356 | 1552 |
add:((s bindWith:n) allItalic colorizeAllWith:clr). |
9086 | 1553 |
rawProtocolList add:s. |
1554 |
]. |
|
1555 |
]. |
|
1556 |
||
10356 | 1557 |
addPseudoEntry := [:s :n | addPseudoEntryWithColor value:s value:n value:pseudoEntryColor]. |
1558 |
||
11865 | 1559 |
addPseudoEntry value:self class nameListEntryForAnnotated value:numAnnotated. |
9086 | 1560 |
addPseudoEntry value:self class nameListEntryForDocumentation value:numDocumentation. |
11865 | 1561 |
addPseudoEntry value:self class nameListEntryForExtensions value:numExtension. |
9086 | 1562 |
addPseudoEntry value:self class nameListEntryForLong value:numLong. |
1563 |
addPseudoEntry value:self class nameListEntryForMustBeRedefinedInSubclass value:numSubclassResponsibility. |
|
11865 | 1564 |
addPseudoEntry value:self class nameListEntryForObsolete value:numObsolete. |
1565 |
addPseudoEntry value:self class nameListEntryForOverride value:numOverride. |
|
1566 |
addPseudoEntry value:self class nameListEntryForRedefine value:numRedefine. |
|
1567 |
addPseudoEntry value:self class nameListEntryForRedefined value:numRedefined. |
|
9086 | 1568 |
"/ I think red is too much of an alert color (and we get more of them as we think...) |
1569 |
"/ numMissingRequired > 0 ifTrue:[ |
|
1570 |
"/ categoryList add:((self class nameListEntryForRequired bindWith:numMissingRequired) allItalic "colorizeAllWith:Color red"). |
|
1571 |
"/ rawProtocolList add:self class nameListEntryForRequired. |
|
1572 |
"/ ]. |
|
1573 |
addPseudoEntry value:self class nameListEntryForRequired value:numMissingRequired. |
|
11865 | 1574 |
addPseudoEntry value:self class nameListEntryForSuperSend value:numSuper. |
1575 |
addPseudoEntry value:self class nameListEntryForUncommented value:numUncommented. |
|
1576 |
||
1577 |
showCoverageInformation ifTrue:[ |
|
1578 |
addPseudoEntry value:self class nameListEntryForNotInstrumented value:numNotInstrumented. |
|
1579 |
addPseudoEntryWithColor value:self class nameListEntryForUncovered value:numUncovered value:userPreferences colorForInstrumentedNeverCalledCode. |
|
1580 |
addPseudoEntryWithColor value:self class nameListEntryForPartiallyCovered value:numPartiallyCovered value:userPreferences colorForInstrumentedPartiallyCoveredCode. |
|
1581 |
addPseudoEntryWithColor value:self class nameListEntryForFullyCovered value:numFullyCovered value:userPreferences colorForInstrumentedFullyCoveredCode. |
|
1582 |
]. |
|
1583 |
||
5591 | 1584 |
]. |
1585 |
^ categoryList |
|
1586 |
||
6877 | 1587 |
"Created: / 05-02-2000 / 13:42:11 / cg" |
10659
4157482b811c
Fix in listOfMethodCategories for methods with nil category (non-smalltalk methods)
vrany
parents:
10652
diff
changeset
|
1588 |
"Modified: / 31-08-2011 / 16:26:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10687
b10e596f7d9b
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
10679
diff
changeset
|
1589 |
"Modified: / 08-09-2011 / 04:56:47 / cg" |
5591 | 1590 |
! |
1591 |
||
1592 |
makeDependent |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1593 |
environment addDependent:self. |
7501 | 1594 |
"/ ChangeSet addDependent:self. |
1595 |
||
1596 |
"Modified: / 10-11-2006 / 17:57:13 / cg" |
|
5591 | 1597 |
! |
1598 |
||
1599 |
makeIndependent |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1600 |
environment removeDependent:self. |
8219 | 1601 |
"/ ChangeSet removeDependent:self. |
5591 | 1602 |
! |
1603 |
||
1604 |
release |
|
1605 |
super release. |
|
1606 |
||
1607 |
filterClassVars removeDependent:self. |
|
1608 |
methodVisibilityHolder removeDependent:self. |
|
1609 |
noAllItem removeDependent:self. |
|
1610 |
packageFilterOnInput removeDependent:self. |
|
1611 |
selectedProtocolIndices removeDependent:self. |
|
1612 |
variableFilter removeDependent:self. |
|
1613 |
! |
|
1614 |
||
1615 |
updateList |
|
1616 |
|prevClasses prevSelection newSelection newList oldList sameContents selectedProtocolsHolder rawList| |
|
1617 |
||
1618 |
selectedProtocolsHolder := self selectedProtocols. |
|
1619 |
||
10297
69e003b25399
comment/format in: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
10250
diff
changeset
|
1620 |
prevClasses := classes isNil ifTrue:[ #() ] ifFalse:[ classes copy ]. |
5591 | 1621 |
oldList := self protocolList value copy. |
1622 |
newList := self listOfMethodCategories. |
|
1623 |
||
1624 |
"/ oldListSize := self browserNameList size. |
|
1625 |
"/ newListSize := newList size. |
|
1626 |
self selectedProtocolIndices removeDependent:self. |
|
1627 |
sameContents := self updateListFor:newList. |
|
1628 |
self selectedProtocolIndices addDependent:self. |
|
1629 |
sameContents ifFalse:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1630 |
prevSelection := lastSelectedProtocols ? (selectedProtocolsHolder value) ? #(). |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1631 |
"/ prevSelection := selectedProtocolsHolder value ? lastSelectedProtocols ? #(). |
5591 | 1632 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1633 |
rawList := self rawProtocolList value. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1634 |
newSelection := prevSelection select:[:item | rawList includes:item string]. |
5591 | 1635 |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1636 |
newSelection size > 0 ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1637 |
"/ force change (for dependents) |
5591 | 1638 |
"/ selectedProtocolsHolder value:nil. |
1639 |
"/ selectedProtocolsHolder value:newSelection. |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1640 |
selectedProtocolsHolder setValue:newSelection. |
11462 | 1641 |
selectedProtocolsHolder removeDependent:self. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1642 |
selectedProtocolsHolder changed:#value. |
11462 | 1643 |
selectedProtocolsHolder addDependent:self. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1644 |
] ifFalse:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1645 |
prevSelection := selectedProtocolsHolder value. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1646 |
selectedProtocolsHolder value:nil. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1647 |
]. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1648 |
(prevSelection size > 0 or:[newSelection size > 0]) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1649 |
self enqueueDelayedUpdateOutputGenerator. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1650 |
"/ self updateOutputGenerator. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1651 |
]. |
5591 | 1652 |
|
1653 |
"/ prevSelection notNil ifTrue:[ |
|
1654 |
"/ lastSelectedProtocols := prevSelection. |
|
1655 |
"/ ]. |
|
1656 |
] ifTrue:[ |
|
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1657 |
"/ same list - but classes might have changed |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1658 |
"/ that is the case, if the class selection has been changed, |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1659 |
"/ to another class which has the same categories. |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1660 |
(prevClasses size ~= classes size |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1661 |
or:[prevClasses asOrderedCollection ~= (classes ? #()) asOrderedCollection ]) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1662 |
(newList size > 0 or:[oldList size > 0]) ifTrue:[ |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1663 |
self updateOutputGenerator |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1664 |
] |
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1665 |
] ifFalse:[ |
5591 | 1666 |
"/ self protocolList value:newList. |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1667 |
] |
5591 | 1668 |
]. |
1669 |
listValid := true. |
|
1670 |
||
10297
69e003b25399
comment/format in: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
10250
diff
changeset
|
1671 |
"Created: / 05-02-2000 / 13:42:11 / cg" |
11462 | 1672 |
"Modified: / 23-03-2012 / 15:53:41 / cg" |
5591 | 1673 |
! ! |
1674 |
||
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1675 |
!MethodCategoryList methodsFor:'private-info'! |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1676 |
|
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1677 |
methodInfoFor:aMethod in:mclass selector:selector |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1678 |
^ self methodInfoFor:aMethod in:mclass selector:selector lazy:false |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1679 |
|
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1680 |
"Modified: / 08-08-2011 / 18:21:03 / cg" |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1681 |
! |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1682 |
|
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1683 |
methodInfoFor:aMethod in:mclass selector:selector lazy:lazy |
10652
fb29722569ac
changed: #methodInfoFor:in:selector:lazy:
Claus Gittinger <cg@exept.de>
parents:
10585
diff
changeset
|
1684 |
|info isDocumentationMethod isVersionMethod def methodsPackage| |
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1685 |
|
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1686 |
"/ the first at:ifAbsent: is aktually not needed - it is here to |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1687 |
"/ reduce the average blocking time, and to allow for debugging the info generating |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1688 |
"/ code without deadlock |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1689 |
MethodInfoCacheAccessLock critical:[ |
11865 | 1690 |
info := MethodInfoCache at:aMethod "(mclass name,'>>',selector)" ifAbsent:nil. |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1691 |
]. |
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1692 |
info isNil ifTrue:[ |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1693 |
lazy ifTrue:[ |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1694 |
"/ TODO: start a background thread to compute the stuff below, |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1695 |
"/ notify me to update the list, when all the lazy info is avail... |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1696 |
] ifFalse:[ |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1697 |
true "aMethod mclass language isenvironment" ifTrue:[ |
10652
fb29722569ac
changed: #methodInfoFor:in:selector:lazy:
Claus Gittinger <cg@exept.de>
parents:
10585
diff
changeset
|
1698 |
methodsPackage := aMethod package. |
fb29722569ac
changed: #methodInfoFor:in:selector:lazy:
Claus Gittinger <cg@exept.de>
parents:
10585
diff
changeset
|
1699 |
|
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1700 |
isVersionMethod := aMethod isVersionMethod. |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1701 |
isDocumentationMethod := isVersionMethod not and:[aMethod isDocumentationMethod]. |
10679 | 1702 |
|
1703 |
info := CachedMethodInfo new. |
|
1704 |
info isObsolete:(aMethod isObsolete). "/ (aMethod isObsolete). |
|
1705 |
info sendsSuper:(aMethod superMessages notEmptyOrNil). "/ (aMethod superMessages notEmptyOrNil). |
|
1706 |
info isUncommented:(self methodIsMarkedAsUncommented:aMethod). "/ (self methodIsMarkedAsUncommented:aMethod). |
|
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1707 |
info isDocumentationMethod:isDocumentationMethod. |
10679 | 1708 |
info isLongMethod:(self methodIsMarkedAsLong:aMethod). "/ (self methodIsMarkedAsLong:aMethod). |
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1709 |
|
10652
fb29722569ac
changed: #methodInfoFor:in:selector:lazy:
Claus Gittinger <cg@exept.de>
parents:
10585
diff
changeset
|
1710 |
methodsPackage ~= mclass package ifTrue:[ |
fb29722569ac
changed: #methodInfoFor:in:selector:lazy:
Claus Gittinger <cg@exept.de>
parents:
10585
diff
changeset
|
1711 |
methodsPackage ~= #'__NoProject__' ifTrue:[ |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1712 |
info isExtensionMethod:true. |
10679 | 1713 |
info isOverride:( |
1714 |
((def := methodsPackage asPackageId projectDefinitionClass) notNil |
|
1715 |
and:[ (def methodOverwrittenBy:aMethod ) notNil ]) |
|
1716 |
) |
|
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1717 |
] |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1718 |
] ifFalse:[ |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1719 |
info isExtensionMethod:false. |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1720 |
info isOverride:false. |
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1721 |
]. |
10679 | 1722 |
info isRedefine:( |
1723 |
( isVersionMethod not |
|
1724 |
and:[ isDocumentationMethod not |
|
1725 |
and:[ mclass superclass notNil |
|
1726 |
and:[ (mclass superclass whichClassIncludesSelector:selector ) notNil ]]]) |
|
1727 |
). |
|
11865 | 1728 |
"/ too expensive - makes browser slow |
1729 |
"/ info isRedefined:( |
|
1730 |
"/ ( isVersionMethod not |
|
1731 |
"/ and:[ isDocumentationMethod not |
|
1732 |
"/ and:[ mclass allSubclasses contains:[:cls | cls includesSelector:selector ]]]) |
|
1733 |
"/ ). |
|
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1734 |
|
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1735 |
info isSubclassResponsibility:( aMethod sends:#subclassResponsibility or:#subclassResponsibility: ). |
10679 | 1736 |
info isAnnotated:(aMethod hasAnnotation). |
9086 | 1737 |
|
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1738 |
MethodInfoCacheAccessLock critical:[ |
11865 | 1739 |
MethodInfoCache at:aMethod "(mclass name,'>>',selector)" put:info |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1740 |
]. |
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1741 |
]. |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1742 |
]. |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1743 |
]. |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1744 |
^ info |
10548
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1745 |
|
0797847f51de
for now: skip pseudo categories, if too slow.
Claus Gittinger <cg@exept.de>
parents:
10368
diff
changeset
|
1746 |
"Created: / 08-08-2011 / 18:18:14 / cg" |
8990
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1747 |
! |
437c2f8eb9a5
changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents:
8989
diff
changeset
|
1748 |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1749 |
methodIsMarkedAsLong:aMethod |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1750 |
"if true, it will be also categorized under the pseudo category 'long'" |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1751 |
|
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1752 |
|src ast linesWithCode visitor| |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1753 |
|
9122 | 1754 |
src := aMethod source ? ''. |
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1755 |
src asCollectionOfLines size < UserPreferences current numberOfLinesForLongMethod "~~30" ifTrue:[^ false]. |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1756 |
|
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1757 |
"/ ok, it is long; |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1758 |
"/ but do not blame the user for writing documentation (dont count comments), |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1759 |
"/ or using literal arrays |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1760 |
RBParser notNil ifTrue:[ |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1761 |
ast := RBParser parseMethod:src. |
8992 | 1762 |
ast notNil ifTrue:[ |
1763 |
visitor := RBProgramNodeVisitor new. |
|
1764 |
visitor pluggableNodeAction: |
|
1765 |
[:eachNode | |
|
1766 |
|lno| |
|
1767 |
lno := eachNode lineNumber. |
|
1768 |
lno notNil ifTrue:[ linesWithCode add:lno ]. |
|
1769 |
]. |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1770 |
|
8992 | 1771 |
linesWithCode := Set new. |
1772 |
ast acceptVisitor:visitor. |
|
1773 |
linesWithCode size < UserPreferences current numberOfLinesForLongMethod "~~30" ifTrue:[^ false]. |
|
1774 |
]. |
|
8989
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1775 |
]. |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1776 |
^ true. |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1777 |
! |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1778 |
|
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1779 |
methodIsMarkedAsUncommented:aMethod |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1780 |
"if true, it will be also categorized under the pseudo category 'undocumented'" |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1781 |
|
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1782 |
^ aMethod comment isEmptyOrNil |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1783 |
and:[aMethod isVersionMethod not] |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1784 |
! ! |
b0d23a8ca15b
dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents:
8982
diff
changeset
|
1785 |
|
5591 | 1786 |
!MethodCategoryList methodsFor:'special'! |
1787 |
||
1788 |
addAdditionalProtocol:aProtocol forClass:aClass |
|
11717 | 1789 |
"those are simulated - in ST/X, empty categories do not really exist; |
1790 |
(because the category is an attribute of the method) |
|
1791 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1792 |
remembered here" |
|
1793 |
||
5591 | 1794 |
|categories| |
1795 |
||
1796 |
AdditionalEmptyCategoriesPerClassName isNil ifTrue:[ |
|
6664
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
1797 |
AdditionalEmptyCategoriesPerClassName := Dictionary new. |
5591 | 1798 |
]. |
1799 |
categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil. |
|
1800 |
categories isNil ifTrue:[ |
|
6664
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
1801 |
categories := Set new. |
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
1802 |
AdditionalEmptyCategoriesPerClassName at:aClass name put:categories. |
5591 | 1803 |
]. |
1804 |
categories add:aProtocol. |
|
6664
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
1805 |
aClass changed:#organization. "/ not really ... to force update |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1806 |
environment changed:#methodCategoryAdded with:(Array with:aClass with:aProtocol). "/ not really ... to force update |
11717 | 1807 |
|
1808 |
"Modified (comment): / 01-08-2012 / 17:30:36 / cg" |
|
5591 | 1809 |
! |
1810 |
||
1811 |
additionalProtocolForClass:aClass |
|
11717 | 1812 |
"those are simulated - in ST/X, empty categories do not really exist; |
1813 |
(because the category is an attribute of the method) |
|
1814 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1815 |
remembered here" |
|
1816 |
||
5591 | 1817 |
AdditionalEmptyCategoriesPerClassName isNil ifTrue:[ ^ #() ]. |
1818 |
^ AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:[ #() ]. |
|
11717 | 1819 |
|
1820 |
"Modified (comment): / 01-08-2012 / 17:29:16 / cg" |
|
5591 | 1821 |
! |
1822 |
||
1823 |
clearLastSelectedProtocol |
|
1824 |
lastSelectedProtocols := nil |
|
1825 |
! |
|
1826 |
||
6342
698b45d51014
new method-category initial offer
Claus Gittinger <cg@exept.de>
parents:
5950
diff
changeset
|
1827 |
lastSelectedProtocols |
698b45d51014
new method-category initial offer
Claus Gittinger <cg@exept.de>
parents:
5950
diff
changeset
|
1828 |
^ lastSelectedProtocols |
698b45d51014
new method-category initial offer
Claus Gittinger <cg@exept.de>
parents:
5950
diff
changeset
|
1829 |
! |
698b45d51014
new method-category initial offer
Claus Gittinger <cg@exept.de>
parents:
5950
diff
changeset
|
1830 |
|
5591 | 1831 |
removeAdditionalProtocol:aListOfProtocols forClass:aClass |
11717 | 1832 |
"those are simulated - in ST/X, empty categories do not really exist; |
1833 |
(because the category is an attribute of the method) |
|
1834 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1835 |
remembered here" |
|
5591 | 1836 |
|
11717 | 1837 |
|categories| |
5591 | 1838 |
|
1839 |
AdditionalEmptyCategoriesPerClassName isNil ifTrue:[^ self]. |
|
1840 |
||
1841 |
categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil. |
|
1842 |
categories isNil ifTrue:[^ self]. |
|
1843 |
categories removeAllFoundIn:aListOfProtocols. |
|
1844 |
categories isEmpty ifTrue:[ |
|
6664
50eb2e92aaed
changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents:
6492
diff
changeset
|
1845 |
AdditionalEmptyCategoriesPerClassName removeKey:aClass name. |
5591 | 1846 |
]. |
1847 |
||
1848 |
aClass changed:#organization. "/ not really ... to force update |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1849 |
environment changed:#methodCategoriesRemoved with:(Array with:aClass with:aListOfProtocols). "/ not really ... to force update |
11717 | 1850 |
|
1851 |
"Modified (comment): / 01-08-2012 / 17:29:59 / cg" |
|
5591 | 1852 |
! |
1853 |
||
1854 |
removeAllAdditionalProtocol |
|
11717 | 1855 |
"those are simulated - in ST/X, empty categories do not really exist; |
1856 |
(because the category is an attribute of the method) |
|
1857 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1858 |
remembered here" |
|
1859 |
||
5591 | 1860 |
AdditionalEmptyCategoriesPerClassName := nil |
1861 |
||
11717 | 1862 |
"Modified (comment): / 01-08-2012 / 17:30:05 / cg" |
5591 | 1863 |
! |
1864 |
||
1865 |
removeAllAdditionalProtocolForClass:aClass |
|
11717 | 1866 |
"those are simulated - in ST/X, empty categories do not really exist; |
1867 |
(because the category is an attribute of the method) |
|
1868 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1869 |
remembered here" |
|
1870 |
||
5591 | 1871 |
AdditionalEmptyCategoriesPerClassName notNil ifTrue:[ |
9128
26fb27aa3d40
changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents:
9126
diff
changeset
|
1872 |
AdditionalEmptyCategoriesPerClassName removeKey:aClass name ifAbsent:nil |
5591 | 1873 |
]. |
1874 |
||
11717 | 1875 |
"Modified (comment): / 01-08-2012 / 17:30:10 / cg" |
5591 | 1876 |
! |
1877 |
||
1878 |
renameAdditionalProtocol:oldName to:newName forClass:aClass |
|
11717 | 1879 |
"those are simulated - in ST/X, empty categories do not really exist; |
1880 |
(because the category is an attribute of the method) |
|
1881 |
However, during browsing, it makes sense. Therefore, empty categories are |
|
1882 |
remembered here" |
|
5591 | 1883 |
|
11717 | 1884 |
|categories| |
5591 | 1885 |
|
1886 |
AdditionalEmptyCategoriesPerClassName isNil ifTrue:[^ self]. |
|
1887 |
categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil. |
|
1888 |
categories isNil ifTrue:[^ self]. |
|
1889 |
categories remove:oldName ifAbsent:nil. |
|
1890 |
categories add:newName. |
|
1891 |
||
1892 |
aClass changed:#organization. "/ not really ... to force update |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13194
diff
changeset
|
1893 |
environment changed:#methodCategoryRenamed with:(Array with:aClass with:oldName with:newName). "/ not really ... to force update |
11717 | 1894 |
|
1895 |
"Modified (comment): / 01-08-2012 / 17:30:16 / cg" |
|
5591 | 1896 |
! ! |
1897 |
||
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1898 |
!MethodCategoryList::CachedMethodInfo class methodsFor:'initialization'! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1899 |
|
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1900 |
initialize |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1901 |
FlagObsolete := 1. |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1902 |
FlagSendsSuper := 2. |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1903 |
FlagIsUncommented := 4. |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1904 |
FlagIsDocumentationMethod := 8. |
8867 | 1905 |
FlagIsLongMethod := 16. |
8931 | 1906 |
FlagIsExtension := 32. |
1907 |
FlagIsOverride := 64. |
|
8964 | 1908 |
FlagIsRedefine := 128. |
9086 | 1909 |
FlagIsSubclassResponsibility := 128. |
10250 | 1910 |
FlagIsTest := 256. |
10679 | 1911 |
FlagIsAnnotated := 512. |
11865 | 1912 |
FlagIsRedefined := 1024. |
10250 | 1913 |
|
1914 |
"Modified: / 08-03-2010 / 18:33:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10679 | 1915 |
"Modified: / 07-09-2011 / 10:04:30 / cg" |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1916 |
! ! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1917 |
|
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1918 |
!MethodCategoryList::CachedMethodInfo class methodsFor:'instance creation'! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1919 |
|
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1920 |
new |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1921 |
^ self basicNew flags:0. |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1922 |
! ! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1923 |
|
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1924 |
!MethodCategoryList::CachedMethodInfo methodsFor:'accessing'! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1925 |
|
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1926 |
flags:something |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1927 |
flags := something. |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1928 |
! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1929 |
|
10679 | 1930 |
isAnnotated |
1931 |
^ (flags ? 0) bitTest: FlagIsAnnotated |
|
1932 |
||
1933 |
"Created: / 07-09-2011 / 10:04:56 / cg" |
|
1934 |
! |
|
1935 |
||
1936 |
isAnnotated:aBoolean |
|
1937 |
flags := aBoolean |
|
1938 |
ifTrue:[ flags bitOr: FlagIsAnnotated ] |
|
1939 |
ifFalse:[ flags bitClear: FlagIsAnnotated] |
|
1940 |
||
1941 |
"Created: / 07-09-2011 / 10:04:48 / cg" |
|
1942 |
! |
|
1943 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1944 |
isDocumentationMethod |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1945 |
^ (flags ? 0) bitTest: FlagIsDocumentationMethod |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1946 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1947 |
|
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1948 |
isDocumentationMethod:aBoolean |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1949 |
flags := aBoolean |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1950 |
ifTrue:[ flags bitOr: FlagIsDocumentationMethod ] |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1951 |
ifFalse:[ flags bitClear: FlagIsDocumentationMethod] |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1952 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1953 |
|
8931 | 1954 |
isExtensionMethod |
1955 |
^ (flags ? 0) bitTest: FlagIsExtension |
|
1956 |
! |
|
1957 |
||
1958 |
isExtensionMethod:aBoolean |
|
1959 |
flags := aBoolean |
|
1960 |
ifTrue:[ flags bitOr: FlagIsExtension ] |
|
1961 |
ifFalse:[ flags bitClear: FlagIsExtension] |
|
1962 |
! |
|
1963 |
||
8867 | 1964 |
isLongMethod |
1965 |
^ (flags ? 0) bitTest: FlagIsLongMethod |
|
1966 |
! |
|
1967 |
||
1968 |
isLongMethod:aBoolean |
|
1969 |
flags := aBoolean |
|
1970 |
ifTrue:[ flags bitOr: FlagIsLongMethod ] |
|
1971 |
ifFalse:[ flags bitClear: FlagIsLongMethod] |
|
1972 |
! |
|
1973 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1974 |
isObsolete |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1975 |
^ (flags ? 0) bitTest: FlagObsolete |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1976 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1977 |
|
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1978 |
isObsolete:aBoolean |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1979 |
flags := aBoolean |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1980 |
ifTrue:[ flags bitOr: FlagObsolete ] |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
1981 |
ifFalse:[ flags bitClear: FlagObsolete] |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1982 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
1983 |
|
8931 | 1984 |
isOverride |
1985 |
^ (flags ? 0) bitTest: FlagIsOverride |
|
1986 |
! |
|
1987 |
||
1988 |
isOverride:aBoolean |
|
1989 |
flags := aBoolean |
|
1990 |
ifTrue:[ flags bitOr: FlagIsOverride ] |
|
1991 |
ifFalse:[ flags bitClear: FlagIsOverride] |
|
1992 |
! |
|
1993 |
||
8964 | 1994 |
isRedefine |
1995 |
^ (flags ? 0) bitTest: FlagIsRedefine |
|
1996 |
! |
|
1997 |
||
1998 |
isRedefine:aBoolean |
|
1999 |
flags := aBoolean |
|
2000 |
ifTrue:[ flags bitOr: FlagIsRedefine ] |
|
2001 |
ifFalse:[ flags bitClear: FlagIsRedefine] |
|
2002 |
! |
|
2003 |
||
11865 | 2004 |
isRedefined |
2005 |
^ (flags ? 0) bitTest: FlagIsRedefined |
|
2006 |
! |
|
2007 |
||
2008 |
isRedefined:aBoolean |
|
2009 |
flags := aBoolean |
|
2010 |
ifTrue:[ flags bitOr: FlagIsRedefined ] |
|
2011 |
ifFalse:[ flags bitClear: FlagIsRedefined] |
|
2012 |
! |
|
2013 |
||
9086 | 2014 |
isSubclassResponsibility |
2015 |
^ (flags ? 0) bitTest: FlagIsSubclassResponsibility |
|
2016 |
! |
|
2017 |
||
2018 |
isSubclassResponsibility:aBoolean |
|
2019 |
flags := aBoolean |
|
2020 |
ifTrue:[ flags bitOr: FlagIsSubclassResponsibility ] |
|
2021 |
ifFalse:[ flags bitClear: FlagIsSubclassResponsibility] |
|
2022 |
! |
|
2023 |
||
10250 | 2024 |
isTest |
2025 |
^ (flags ? 0) bitTest: FlagIsTest |
|
2026 |
||
2027 |
"Created: / 08-03-2010 / 18:41:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2028 |
! |
|
2029 |
||
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2030 |
isUncommented |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2031 |
^ (flags ? 0) bitTest: FlagIsUncommented |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2032 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2033 |
|
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2034 |
isUncommented:aBoolean |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2035 |
flags := aBoolean |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2036 |
ifTrue:[ flags bitOr: FlagIsUncommented ] |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2037 |
ifFalse:[ flags bitClear: FlagIsUncommented] |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2038 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2039 |
|
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2040 |
sendsSuper |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2041 |
^ (flags ? 0) bitTest: FlagSendsSuper |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2042 |
! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2043 |
|
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2044 |
sendsSuper:aBoolean |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2045 |
flags := aBoolean |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2046 |
ifTrue:[ flags bitOr: FlagSendsSuper ] |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2047 |
ifFalse:[ flags bitClear: FlagSendsSuper] |
8781
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2048 |
! ! |
385e3f19694a
cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents:
8742
diff
changeset
|
2049 |
|
9043 | 2050 |
!MethodCategoryList::MissingMethod class methodsFor:'instance creation'! |
2051 |
||
2052 |
mclass:aClass selector:aSelector |
|
2053 |
^ self new mclass:aClass selector:aSelector |
|
2054 |
! ! |
|
2055 |
||
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2056 |
!MethodCategoryList::MissingMethod methodsFor:'accessing'! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2057 |
|
9043 | 2058 |
mclass |
2059 |
^ mclass |
|
2060 |
! |
|
2061 |
||
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2062 |
mclass:aClass |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2063 |
mclass := aClass |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2064 |
! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2065 |
|
9043 | 2066 |
mclass:aClass selector:aSelector |
2067 |
mclass := aClass. |
|
2068 |
selector := aSelector. |
|
2069 |
! |
|
2070 |
||
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2071 |
selector |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2072 |
^ selector |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2073 |
! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2074 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2075 |
selector:something |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2076 |
selector := something. |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2077 |
! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2078 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2079 |
source |
9729
0d29623f7e10
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
9465
diff
changeset
|
2080 |
^ (SmalltalkCodeGeneratorTool basicNew |
9043 | 2081 |
codeFor_shouldImplementFor:selector inClass:mclass) |
2082 |
colorizeAllWith:Color red |
|
9729
0d29623f7e10
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
9465
diff
changeset
|
2083 |
|
0d29623f7e10
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
9465
diff
changeset
|
2084 |
"Modified: / 31-01-2011 / 18:29:17 / cg" |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2085 |
! ! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2086 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2087 |
!MethodCategoryList::MissingMethod methodsFor:'printing & storing'! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2088 |
|
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2089 |
printStringForBrowserWithSelector:selector inClass:aClass |
9043 | 2090 |
^ (selector,' (** missing required **)') colorizeAllWith:Color red |
9039
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2091 |
! ! |
c7c93f434394
required missing protocol display
Claus Gittinger <cg@exept.de>
parents:
8992
diff
changeset
|
2092 |
|
5591 | 2093 |
!MethodCategoryList class methodsFor:'documentation'! |
2094 |
||
10356 | 2095 |
version |
14018
37fd90f67acb
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13874
diff
changeset
|
2096 |
^ '$Header: /cvs/stx/stx/libtool/Tools_MethodCategoryList.st,v 1.99 2014-02-25 10:40:46 vrany Exp $' |
10356 | 2097 |
! |
2098 |
||
8848 | 2099 |
version_CVS |
14018
37fd90f67acb
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13874
diff
changeset
|
2100 |
^ '$Header: /cvs/stx/stx/libtool/Tools_MethodCategoryList.st,v 1.99 2014-02-25 10:40:46 vrany Exp $' |
5591 | 2101 |
! ! |
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2102 |
|
12400
32a9d286d90f
add user friendly name to semaphores
Stefan Vogel <sv@exept.de>
parents:
12049
diff
changeset
|
2103 |
|
8860
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2104 |
MethodCategoryList initialize! |
d8ce6a00a43f
use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents:
8848
diff
changeset
|
2105 |
MethodCategoryList::CachedMethodInfo initialize! |