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