author | Claus Gittinger <cg@exept.de> |
Tue, 14 Mar 2017 20:30:21 +0100 | |
changeset 17465 | 27a2e4012a0a |
parent 16707 | 88a409fbc3b0 |
child 16709 | ff5b5c8d8549 |
child 17598 | af37a090e067 |
permissions | -rw-r--r-- |
16707 | 1 |
"{ Encoding: utf8 }" |
2 |
||
5591 | 3 |
" |
4 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
5592 | 14 |
"{ Package: 'stx:libtool' }" |
5591 | 15 |
|
16 |
"{ NameSpace: Tools }" |
|
17 |
||
18 |
BrowserList subclass:#VariableList |
|
16537 | 19 |
instanceVariableNames:'classHolder groupVariablesByInheritance selectedVariableEntries |
20 |
showClassVars showWarningAboutMissingEntryInXmlSpec |
|
21 |
sortVariablesByName variableList' |
|
5591 | 22 |
classVariableNames:'' |
23 |
poolDictionaries:'' |
|
24 |
category:'Interface-Browsers-New' |
|
25 |
! |
|
26 |
||
10255 | 27 |
Object subclass:#VariableEntry |
15455 | 28 |
instanceVariableNames:'label application class name type icon sortingByNameHolder |
16537 | 29 |
classShown groupByInheritanceHolder' |
10255 | 30 |
classVariableNames:'' |
31 |
poolDictionaries:'' |
|
32 |
privateIn:VariableList |
|
33 |
! |
|
34 |
||
5591 | 35 |
!VariableList class methodsFor:'documentation'! |
36 |
||
37 |
copyright |
|
38 |
" |
|
39 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
40 |
All Rights Reserved |
|
41 |
||
42 |
This software is furnished under a license and may be used |
|
43 |
only in accordance with the terms of that license and with the |
|
44 |
inclusion of the above copyright notice. This software may not |
|
45 |
be provided or otherwise made available to, or used by, any |
|
46 |
other person. No title to or ownership of the software is |
|
47 |
hereby transferred. |
|
48 |
" |
|
11878 | 49 |
! |
50 |
||
51 |
documentation |
|
52 |
" |
|
53 |
I implement the variable list (below class list) in the new system browser |
|
54 |
" |
|
5591 | 55 |
! ! |
56 |
||
57 |
!VariableList class methodsFor:'interface specs'! |
|
58 |
||
59 |
windowSpec |
|
60 |
"This resource specification was automatically generated |
|
61 |
by the UIPainter of ST/X." |
|
62 |
||
63 |
"Do not manually edit this!! If it is corrupted, |
|
64 |
the UIPainter may not be able to read the specification." |
|
65 |
||
66 |
" |
|
10287 | 67 |
UIPainter new openOnClass:Tools::VariableList andSelector:#windowSpec |
68 |
Tools::VariableList new openInterface:#windowSpec |
|
69 |
Tools::VariableList open |
|
5591 | 70 |
" |
71 |
||
72 |
<resource: #canvas> |
|
73 |
||
74 |
^ |
|
10287 | 75 |
#(FullSpec |
76 |
name: windowSpec |
|
77 |
window: |
|
78 |
(WindowSpec |
|
79 |
label: 'VariableList' |
|
80 |
name: 'VariableList' |
|
81 |
min: (Point 0 0) |
|
82 |
bounds: (Rectangle 0 0 300 300) |
|
9461 | 83 |
) |
10287 | 84 |
component: |
85 |
(SpecCollection |
|
86 |
collection: ( |
|
87 |
(SequenceViewSpec |
|
88 |
name: 'List' |
|
89 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
90 |
tabable: true |
|
91 |
model: selectedVariableEntries |
|
92 |
menu: menuHolder |
|
93 |
hasHorizontalScrollBar: true |
|
94 |
hasVerticalScrollBar: true |
|
95 |
miniScrollerHorizontal: true |
|
96 |
isMultiSelect: true |
|
97 |
valueChangeSelector: selectionChangedByClick |
|
98 |
useIndex: false |
|
99 |
sequenceList: variableList |
|
100 |
doubleClickChannel: doubleClickChannel |
|
9461 | 101 |
) |
102 |
) |
|
5591 | 103 |
|
9461 | 104 |
) |
5591 | 105 |
) |
106 |
! ! |
|
107 |
||
108 |
!VariableList class methodsFor:'plugIn spec'! |
|
109 |
||
110 |
aspectSelectors |
|
111 |
"This resource specification was automatically generated |
|
112 |
by the UIPainter of ST/X." |
|
113 |
||
114 |
"Do not manually edit this. If it is corrupted, |
|
115 |
the UIPainter may not be able to read the specification." |
|
116 |
||
117 |
"Return a description of exported aspects; |
|
118 |
these can be connected to aspects of an embedding application |
|
119 |
(if this app is embedded in a subCanvas)." |
|
120 |
||
121 |
^ #( |
|
14021
ff0b42e2c251
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13827
diff
changeset
|
122 |
environmentHolder |
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
123 |
#(#doubleClickChannel #action ) |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
124 |
#classHolder |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
125 |
#forceGeneratorTrigger |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
126 |
#immediateUpdate |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
127 |
#inGeneratorHolder |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
128 |
#menuHolder |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
129 |
#outGeneratorHolder |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
130 |
#packageFilter |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
131 |
#selectedVariables |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
132 |
#selectionChangeCondition |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
133 |
#updateTrigger |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
134 |
#showClassVarsInVariableList |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
135 |
#slaveMode |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
136 |
#sortVariablesByName |
16537 | 137 |
#groupVariablesByInheritance |
5591 | 138 |
). |
14021
ff0b42e2c251
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13827
diff
changeset
|
139 |
|
ff0b42e2c251
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13827
diff
changeset
|
140 |
"Modified: / 24-02-2014 / 10:37:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5591 | 141 |
! ! |
142 |
||
143 |
!VariableList methodsFor:'aspects'! |
|
144 |
||
145 |
classHolder |
|
146 |
classHolder isNil ifTrue:[ |
|
147 |
classHolder := #() asValue. |
|
148 |
classHolder addDependent:self |
|
149 |
]. |
|
150 |
^ classHolder |
|
151 |
! |
|
152 |
||
153 |
classHolder:aValueHolder |
|
154 |
classHolder notNil ifTrue:[ |
|
10308 | 155 |
classHolder removeDependent:self |
5591 | 156 |
]. |
157 |
classHolder := aValueHolder. |
|
158 |
classHolder notNil ifTrue:[ |
|
10308 | 159 |
classHolder isBehavior ifTrue:[self error:'should not happen']. |
160 |
classHolder addDependent:self |
|
5591 | 161 |
]. |
10308 | 162 |
|
163 |
"Modified: / 11-07-2011 / 17:04:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5591 | 164 |
! |
165 |
||
166 |
defaultSlaveModeValue |
|
167 |
^ false. |
|
168 |
! |
|
169 |
||
16537 | 170 |
groupVariablesByInheritance |
171 |
"/ groupVariablesByInheritance and sortVariablesByName form a 3-state value |
|
172 |
"/ groupVariablesByInheritance sortVariablesByName |
|
173 |
"/ T T - sort within each defining class |
|
174 |
"/ T F - by inst-order grouped by defining class |
|
175 |
"/ F T - show all of them in one big sorted list |
|
176 |
"/ F F - useless - show all of them by inst-order |
|
177 |
groupVariablesByInheritance isNil ifTrue:[ |
|
178 |
groupVariablesByInheritance := true asValue. |
|
179 |
groupVariablesByInheritance addDependent:self |
|
180 |
]. |
|
181 |
^ groupVariablesByInheritance |
|
182 |
! |
|
183 |
||
184 |
groupVariablesByInheritance:aValueHolder |
|
185 |
"/ self assert:(aValueHolder value isBoolean). |
|
186 |
||
187 |
groupVariablesByInheritance notNil ifTrue:[ |
|
188 |
groupVariablesByInheritance removeDependent:self |
|
189 |
]. |
|
190 |
groupVariablesByInheritance := aValueHolder. |
|
191 |
groupVariablesByInheritance notNil ifTrue:[ |
|
192 |
groupVariablesByInheritance addDependent:self |
|
193 |
]. |
|
194 |
! |
|
195 |
||
10255 | 196 |
selectedVariableEntries |
197 |
<resource: #uiAspect> |
|
198 |
||
199 |
"automatically generated by UIPainter ..." |
|
200 |
||
201 |
selectedVariableEntries isNil ifTrue:[ |
|
202 |
selectedVariableEntries := #() asValue. |
|
16192 | 203 |
selectedVariableEntries addDependent:self. |
10255 | 204 |
]. |
205 |
^ selectedVariableEntries. |
|
206 |
||
207 |
"Modified: / 12-04-2011 / 15:49:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
208 |
! |
|
209 |
||
5591 | 210 |
selectedVariables |
211 |
^ self selectionHolder |
|
212 |
||
213 |
! |
|
214 |
||
215 |
selectedVariables:aValueHolder |
|
216 |
^ self selectionHolder:aValueHolder |
|
217 |
||
218 |
! |
|
219 |
||
220 |
showClassVarsInVariableList |
|
221 |
showClassVars isNil ifTrue:[ |
|
222 |
showClassVars := false asValue. |
|
223 |
showClassVars addDependent:self |
|
224 |
]. |
|
225 |
^ showClassVars |
|
226 |
! |
|
227 |
||
228 |
showClassVarsInVariableList:aValueHolder |
|
229 |
showClassVars notNil ifTrue:[ |
|
230 |
showClassVars removeDependent:self |
|
231 |
]. |
|
232 |
showClassVars := aValueHolder. |
|
233 |
showClassVars notNil ifTrue:[ |
|
234 |
showClassVars addDependent:self |
|
235 |
]. |
|
236 |
! |
|
237 |
||
238 |
showingInheritedClassVars |
|
239 |
^ false |
|
240 |
"/ ^ true |
|
241 |
! |
|
242 |
||
243 |
sortVariablesByName |
|
16537 | 244 |
"/ groupVariablesByInheritance and sortVariablesByName form a 3-state value |
245 |
"/ groupVariablesByInheritance sortVariablesByName |
|
246 |
"/ T T - sort within each defining class |
|
247 |
"/ T F - by inst-order grouped by defining class |
|
248 |
"/ F T - show all of them in one big sorted list |
|
249 |
"/ F F - useless - show all of them by inst-order |
|
5591 | 250 |
sortVariablesByName isNil ifTrue:[ |
16537 | 251 |
sortVariablesByName := false asValue. |
252 |
sortVariablesByName addDependent:self |
|
5591 | 253 |
]. |
254 |
^ sortVariablesByName |
|
255 |
! |
|
256 |
||
257 |
sortVariablesByName:aValueHolder |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
258 |
"/ self assert:(aValueHolder value isBoolean). |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
259 |
|
5591 | 260 |
sortVariablesByName notNil ifTrue:[ |
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
261 |
sortVariablesByName removeDependent:self |
5591 | 262 |
]. |
263 |
sortVariablesByName := aValueHolder. |
|
264 |
sortVariablesByName notNil ifTrue:[ |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
265 |
sortVariablesByName addDependent:self |
5591 | 266 |
]. |
267 |
! |
|
268 |
||
269 |
variableList |
|
270 |
variableList isNil ifTrue:[ |
|
271 |
variableList := ValueHolder new |
|
272 |
]. |
|
273 |
^ variableList |
|
274 |
||
275 |
||
276 |
! ! |
|
277 |
||
278 |
!VariableList methodsFor:'change & update'! |
|
279 |
||
280 |
delayedUpdate:something with:aParameter from:changedObject |
|
281 |
|selectedClasses changedClass anyChange| |
|
282 |
||
283 |
self inSlaveModeOrInvisible ifTrue:[self invalidateList. ^ self]. |
|
284 |
||
285 |
changedObject == slaveMode ifTrue:[ |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
286 |
listValid ~~ true ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
287 |
self enqueueDelayedUpdateList |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
288 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
289 |
"/ self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
290 |
^ self |
5591 | 291 |
]. |
292 |
||
293 |
changedObject == classHolder ifTrue:[ |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
294 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
295 |
^ self |
5591 | 296 |
]. |
297 |
changedObject == showClassVars ifTrue:[ |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
298 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
299 |
^ self. |
5591 | 300 |
]. |
301 |
changedObject == sortVariablesByName ifTrue:[ |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
302 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
303 |
^ self. |
5591 | 304 |
]. |
16537 | 305 |
changedObject == groupVariablesByInheritance ifTrue:[ |
306 |
self invalidateList. |
|
307 |
^ self. |
|
308 |
]. |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
309 |
changedObject == environment ifTrue:[ |
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
310 |
(something == #projectOrganization) ifTrue:[^ self]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
311 |
(something == #currentChangeSet) ifTrue:[^ self]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
312 |
(something == #aboutToAutoloadClass) ifTrue:[^ self]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
313 |
|
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
314 |
(something == #classDefinition |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
315 |
or:[ (something == #newClass) |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
316 |
or:[ something == #classVariables and:[showClassVars value == true]]]) |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
317 |
ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
318 |
changedClass := aParameter. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
319 |
selectedClasses := classHolder value. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
320 |
selectedClasses notNil ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
321 |
selectedClasses isSequenceable ifFalse:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
322 |
selectedClasses := selectedClasses asOrderedCollection |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
323 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
324 |
selectedClasses keysAndValuesDo:[:idx :cls | |nm| |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
325 |
cls notNil ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
326 |
cls isObsolete ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
327 |
cls isMeta ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
328 |
nm := cls theNonMetaclass name. |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
329 |
selectedClasses at:idx put:(environment at:nm) class. |
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
330 |
] ifFalse:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
331 |
nm := cls name. |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
332 |
selectedClasses at:idx put:(environment at:nm). |
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
333 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
334 |
anyChange := true. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
335 |
] ifFalse:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
336 |
(cls == aParameter |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
337 |
or:[something == #classVariables |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
338 |
and:[showClassVars value == true |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
339 |
and:[cls theNonMetaclass == aParameter theNonMetaclass]]]) ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
340 |
anyChange := true. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
341 |
] |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
342 |
] |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
343 |
] |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
344 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
345 |
(selectedClasses includes:nil) ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
346 |
"/ can happen, if a selected class is removed... |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
347 |
"/ self halt:'should this happen ?'. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
348 |
"/ fix it ... |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
349 |
selectedClasses := selectedClasses select:[:each | each notNil]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
350 |
classHolder value:selectedClasses. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
351 |
anyChange := true. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
352 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
353 |
anyChange == true ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
354 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
355 |
^ self |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
356 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
357 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
358 |
^ self |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
359 |
]. |
5591 | 360 |
] ifFalse:[ |
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
361 |
changedObject isBehavior ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
362 |
anyChange := false. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
363 |
selectedClasses := classHolder value. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
364 |
selectedClasses notNil ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
365 |
selectedClasses keysAndValuesDo:[:idx :cls | |nm| |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
366 |
cls isObsolete ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
367 |
nm := cls name. |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
368 |
selectedClasses at:idx put:(environment at:nm). |
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
369 |
anyChange := true. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
370 |
] |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
371 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
372 |
anyChange == true ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
373 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
374 |
^ self |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
375 |
]. |
5591 | 376 |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
377 |
(selectedClasses includesIdentical:something) ifTrue:[ |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
378 |
self invalidateList. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
379 |
^ self |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
380 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
381 |
]. |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
382 |
^ self |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
383 |
]. |
5591 | 384 |
]. |
385 |
super delayedUpdate:something with:aParameter from:changedObject |
|
11296
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
386 |
|
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
387 |
"Modified: / 01-03-2012 / 09:18:11 / cg" |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
388 |
! |
2fec94a88af2
added: #enqueueDelayedUpdateList
Claus Gittinger <cg@exept.de>
parents:
10974
diff
changeset
|
389 |
|
5591 | 390 |
makeDependent |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
391 |
environment addDependent:self |
5591 | 392 |
|
393 |
! |
|
394 |
||
395 |
makeIndependent |
|
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
396 |
environment removeDependent:self |
5591 | 397 |
|
398 |
! |
|
399 |
||
400 |
selectionChangedByClick |
|
401 |
"we are not interested in that - get another notification |
|
402 |
via the changed valueHolder" |
|
403 |
||
404 |
||
405 |
! |
|
406 |
||
407 |
update:something with:aParameter from:changedObject |
|
408 |
"/ ^ self delayedUpdate:something with:aParameter from:changedObject. |
|
409 |
||
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13458
diff
changeset
|
410 |
changedObject == environment ifTrue:[ |
10255 | 411 |
something == #methodDictionary ifTrue:[ |
412 |
^ self |
|
413 |
]. |
|
414 |
something == #methodTrap ifTrue:[ |
|
415 |
^ self |
|
416 |
]. |
|
10366 | 417 |
something == #methodCoverageInfo ifTrue:[ |
418 |
^ self |
|
419 |
]. |
|
10255 | 420 |
something == #methodInClass ifTrue:[ |
421 |
^ self |
|
422 |
]. |
|
423 |
something == #methodInClassRemoved ifTrue:[ |
|
424 |
^ self |
|
425 |
]. |
|
426 |
something == #classComment ifTrue:[ |
|
427 |
^ self. |
|
428 |
]. |
|
14293 | 429 |
something == #lastTestRunResult ifTrue:[ |
430 |
^ self |
|
431 |
]. |
|
432 |
something isNil ifTrue:[ |
|
433 |
^ self |
|
434 |
]. |
|
5591 | 435 |
]. |
436 |
"/ self window sensor isNil ifTrue:[ |
|
437 |
"/ "/ I am not visible ... |
|
438 |
"/ self invalidateList. |
|
439 |
"/ ^ self |
|
440 |
"/ ]. |
|
10255 | 441 |
changedObject == selectedVariableEntries ifTrue:[ |
442 |
self selectedVariables value: |
|
443 |
((selectedVariableEntries value ? #()) |
|
14144
9bcb9fef21b6
Access graphicsDevice via method send instead of instVar access
Stefan Vogel <sv@exept.de>
parents:
14114
diff
changeset
|
444 |
select:[:e| e isString not] "filter out class name header strings" |
9bcb9fef21b6
Access graphicsDevice via method send instead of instVar access
Stefan Vogel <sv@exept.de>
parents:
14114
diff
changeset
|
445 |
thenCollect:[:e|e name]). |
10255 | 446 |
^self. |
447 |
]. |
|
448 |
||
449 |
||
5591 | 450 |
super update:something with:aParameter from:changedObject |
451 |
||
10255 | 452 |
"Modified: / 12-04-2011 / 15:54:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10366 | 453 |
"Modified: / 20-07-2011 / 18:52:44 / cg" |
5591 | 454 |
! ! |
455 |
||
456 |
!VariableList methodsFor:'generators'! |
|
457 |
||
458 |
makeGenerator |
|
459 |
||
460 |
||
461 |
||
462 |
! ! |
|
463 |
||
464 |
!VariableList methodsFor:'private'! |
|
465 |
||
5909 | 466 |
commonPostBuild |
5591 | 467 |
|list| |
468 |
||
5909 | 469 |
super commonPostBuild. |
5591 | 470 |
|
5909 | 471 |
list := builder componentAt:#List. |
5591 | 472 |
list notNil ifTrue:[ |
5909 | 473 |
list selectConditionBlock:[:item | self selectionChangeAllowed:item]. |
474 |
list ignoreReselect:false. |
|
5591 | 475 |
]. |
476 |
! |
|
477 |
||
478 |
commonSubClassIn:classes |
|
479 |
"return true if there is a common subclass" |
|
480 |
||
481 |
|theCommonSubClass "classesByInheritance"| |
|
482 |
||
483 |
theCommonSubClass := nil. |
|
484 |
classes do:[:eachClass | |
|
485 |
theCommonSubClass isNil ifTrue:[ |
|
486 |
theCommonSubClass := eachClass |
|
487 |
] ifFalse:[ |
|
488 |
(eachClass isSubclassOf:theCommonSubClass) ifTrue:[ |
|
489 |
theCommonSubClass := eachClass |
|
490 |
] ifFalse:[ |
|
491 |
(theCommonSubClass isSubclassOf:eachClass) ifFalse:[ |
|
492 |
^ nil |
|
493 |
] |
|
494 |
] |
|
495 |
] |
|
496 |
]. |
|
497 |
^ theCommonSubClass. |
|
498 |
||
499 |
"/ classesByInheritance := classes topologicalSort:[:a :b | a isSubclassOf:b]. |
|
500 |
"/ classesByInheritance keysAndValuesDo:[:index :eachClass | |
|
501 |
"/ "/ all classes after that one must be superclasses ... |
|
502 |
"/ classesByInheritance from:index+1 to:classesByInheritance size do:[:otherClass | |
|
503 |
"/ (eachClass isSubclassOf:otherClass) ifFalse:[ |
|
504 |
"/ ^ nil. |
|
505 |
"/ ] |
|
506 |
"/ ]. |
|
507 |
"/ ]. |
|
508 |
"/ ^ classesByInheritance first |
|
509 |
! |
|
510 |
||
10324
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
511 |
iconInBrowserForVariable:varName in:aClass |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
512 |
"variables for which an entry is found in the xml-spec (if any) are marked |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
513 |
with an <xml>-icon." |
10255 | 514 |
|
10324
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
515 |
(Expecco::ExpeccoXMLDecoder notNil |
11586 | 516 |
and:[aClass canUnderstand: #xmlSpecForObject:]) ifTrue:[ |
10324
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
517 |
Error handle:[:ex | |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
518 |
] do:[ |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
519 |
(Expecco::ExpeccoXMLDecoder xmlSpecForObject:aClass basicNew) |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
520 |
do:[:spec | spec getter = varName ifTrue:[ |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
521 |
^ SystemBrowser instVarOverlayXmlSpec |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
522 |
] |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
523 |
]. |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
524 |
]. |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
525 |
]. |
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
526 |
^ nil |
10255 | 527 |
|
528 |
"Created: / 12-04-2011 / 19:58:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10324
d68f7aa2e449
I dont like extensions too much.
Claus Gittinger <cg@exept.de>
parents:
10308
diff
changeset
|
529 |
"Modified: / 15-07-2011 / 18:32:47 / cg" |
11586 | 530 |
"Modified: / 22-06-2012 / 13:17:28 / sr" |
10255 | 531 |
! |
532 |
||
533 |
listEntryForClass: cls name:name |
|
16537 | 534 |
^ self listEntryForClass: cls name:name info:nil |
10255 | 535 |
! |
536 |
||
16537 | 537 |
listEntryForClass: cls name:name info: classInfoOrNil |
538 |
| entry | |
|
10974 | 539 |
|
16537 | 540 |
entry := Tools::VariableList::VariableEntry application: self class: cls name: name. |
13382 | 541 |
entry sortingByNameHolder:sortVariablesByName. |
16537 | 542 |
entry groupByInheritanceHolder:groupVariablesByInheritance. |
543 |
classInfoOrNil notNil ifTrue:[ |
|
544 |
entry type: (classInfoOrNil infoForInstvarOrNil: name). |
|
10974 | 545 |
]. |
546 |
^entry |
|
547 |
||
548 |
"Created: / 27-11-2011 / 17:17:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
13827 | 549 |
"Modified: / 07-10-2013 / 08:28:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10974 | 550 |
! |
551 |
||
5591 | 552 |
listOfVariables |
10974 | 553 |
|
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
554 |
|nameList numClasses classes class commonSubclass showingClassVars |
16537 | 555 |
sortByName groupByInheritance classesAlreadyProcessed hasSmallSense smallSenseManager info | |
5591 | 556 |
|
557 |
classHolder isNil ifTrue:[ |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
558 |
"/ testing |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
559 |
^ #() |
5591 | 560 |
]. |
561 |
||
13458
842c7f563bd5
class: Tools::VariableList
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13457
diff
changeset
|
562 |
hasSmallSense := (ConfigurableFeatures includesFeature:'SmallSenseEnabled') |
842c7f563bd5
class: Tools::VariableList
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13457
diff
changeset
|
563 |
and:[(Smalltalk at: #'SmallSense::Manager') notNil]. |
10974 | 564 |
hasSmallSense ifTrue:[ |
13457
630e14513fec
Fix for recent SmallSense (moved to its own namespace)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13382
diff
changeset
|
565 |
smallSenseManager := (Smalltalk at: #'SmallSense::Manager') instance. |
10974 | 566 |
]. |
567 |
||
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
568 |
showingClassVars := self showClassVarsInVariableList value == true. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
569 |
sortByName := self sortVariablesByName value. |
16537 | 570 |
groupByInheritance := self groupVariablesByInheritance value. |
571 |
self assert:(sortByName isBoolean). |
|
572 |
self assert:(groupByInheritance isBoolean). |
|
5591 | 573 |
|
574 |
classes := classHolder value. |
|
575 |
(numClasses := classes size) == 0 ifTrue:[^ #() ]. |
|
576 |
numClasses > 1 ifTrue:[ |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
577 |
"/ multiple classes - see if there is a common subclass ... |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
578 |
commonSubclass := self commonSubClassIn:classes. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
579 |
commonSubclass notNil ifTrue:[ |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
580 |
"/ yes - treat like a single class |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
581 |
classes := Array with:(commonSubclass). |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
582 |
numClasses := 1. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
583 |
]. |
13155 | 584 |
"/ commonSuperclass := Behavior commonSuperclassOf:classes. |
585 |
"/ commonSuperclass notNil ifTrue:[ |
|
586 |
"/ "/ yes - treat like a single class |
|
587 |
"/ classes := Array with:(commonSuperclass). |
|
588 |
"/ numClasses := 1. |
|
589 |
"/ ]. |
|
5591 | 590 |
]. |
591 |
||
592 |
numClasses > 1 ifTrue:[ |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
593 |
"/ multiple classes - sort alphabetically ... |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
594 |
"/ unless there is a common subclass ... |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
595 |
nameList := Set new. |
10550 | 596 |
classesAlreadyProcessed := IdentitySet new. |
13155 | 597 |
classes do:[:eachClass | |
598 |
|class| |
|
599 |
||
600 |
class := eachClass. |
|
601 |
"/ showingClassVars ifTrue:[ |
|
602 |
"/ class := class theNonMetaclass |
|
603 |
"/ ]. |
|
604 |
||
10974 | 605 |
hasSmallSense ifTrue:[ |
606 |
info := smallSenseManager infoForClassOrNil: class. |
|
607 |
]. |
|
608 |
||
10550 | 609 |
(classesAlreadyProcessed includes:class) ifFalse:[ |
610 |
showingClassVars ifTrue:[ |
|
611 |
self showingInheritedClassVars ifTrue:[ |
|
612 |
class theNonMetaclass withAllSuperclassesDo:[:cls| |
|
10974 | 613 |
hasSmallSense ifTrue:[ |
614 |
info := smallSenseManager infoForClassOrNil: cls. |
|
615 |
]. |
|
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
616 |
|
10550 | 617 |
(classesAlreadyProcessed includes:cls) ifFalse:[ |
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
618 |
"/ Must check whether environment contains the class and filter it out, |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
619 |
"/ if not. Think of limited environment to Java classes which should not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
620 |
"/ show Object & JavaObject even if they are real superclasses of any Java |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
621 |
"/ class. |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
622 |
"/ Q: Should we rather ignore all superclasses after first class which is not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
623 |
"/ in environment? |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
624 |
|
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
625 |
(environment at: cls name ifAbsent:[nil]) notNil ifTrue:[ |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
626 |
nameList addAll: |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
627 |
(cls classVarNames collect:[:nm|self listEntryForClass: cls name: nm info: info]). |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
628 |
]. |
10550 | 629 |
classesAlreadyProcessed add:cls. |
630 |
] |
|
631 |
] |
|
632 |
] ifFalse:[ |
|
10255 | 633 |
nameList addAll: |
10974 | 634 |
(class classVarNames collect:[:nm|self listEntryForClass: class name: nm info: info ]) |
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
635 |
] |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
636 |
] ifFalse:[ |
10550 | 637 |
class withAllSuperclassesDo:[:cls| |
638 |
(classesAlreadyProcessed includes:cls) ifFalse:[ |
|
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
639 |
"/ Must check whether environment contains the class and filter it out, |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
640 |
"/ if not. Think of limited environment to Java classes which should not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
641 |
"/ show Object & JavaObject even if they are real superclasses of any Java |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
642 |
"/ class. |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
643 |
"/ Q: Should we rather ignore all superclasses after first class which is not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
644 |
"/ in environment? |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
645 |
|
14806
56a544a200ce
Fix Tools::VariableList>>listOfVariables - pass non-metaclass name when checking
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14612
diff
changeset
|
646 |
(environment at: cls theNonMetaclass name ifAbsent:[nil]) notNil ifTrue:[ |
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
647 |
nameList addAll: |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
648 |
(cls instVarNames collect:[:nm|self listEntryForClass: cls name: nm info: info ]). |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
649 |
]. |
10550 | 650 |
classesAlreadyProcessed add:cls. |
651 |
] |
|
652 |
] |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
653 |
] |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
654 |
] |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
655 |
]. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
656 |
nameList := nameList asOrderedCollection. |
5591 | 657 |
] ifFalse:[ |
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
658 |
"/ only a single class - sort by inheritance |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
659 |
class := classes first. |
5591 | 660 |
|
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
661 |
nameList := OrderedCollection new. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
662 |
class notNil ifTrue:[ |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
663 |
showingClassVars ifTrue:[ |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
664 |
class := class theNonMetaclass |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
665 |
]. |
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
666 |
class withAllSuperclassesDo:[:cls| |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
667 |
"/ Must check whether environment contains the class and filter it out, |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
668 |
"/ if not. Think of limited environment to Java classes which should not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
669 |
"/ show Object & JavaObject even if they are real superclasses of any Java |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
670 |
"/ class. |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
671 |
"/ Q: Should we rather ignore all superclasses after first class which is not |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
672 |
"/ in environment? |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
673 |
|
14335
6ad2d132a5af
class: Tools::VariableList
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14293
diff
changeset
|
674 |
(environment at: cls theNonMetaclass name ifAbsent:[nil]) notNil ifTrue:[ |
15455 | 675 |
|varNames classShown| |
5591 | 676 |
|
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
677 |
(hasSmallSense and:[showingClassVars not]) ifTrue:[ |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
678 |
info := smallSenseManager infoForClassOrNil: cls. |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
679 |
]. |
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
680 |
varNames := showingClassVars ifTrue:[ cls classVarNames ] ifFalse:[ cls instVarNames ]. |
15455 | 681 |
classShown := (cls ~~ class). "/ only append the class in the shown name, if the var is inherited |
16537 | 682 |
sortByName ifTrue:[ |
16707 | 683 |
varNames := varNames copy sort. |
16537 | 684 |
]. |
15537 | 685 |
varNames reversed do:[:varName| |
15455 | 686 |
|entry| |
687 |
nameList addFirst: (entry := self listEntryForClass: cls name: varName info: info). |
|
688 |
classShown ifFalse:[ entry classShown:classShown ]. |
|
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
689 |
]. |
16537 | 690 |
groupByInheritance ifTrue:[ |
16500 | 691 |
nameList addFirst:(("'----- ' , "cls nameInBrowser" , ' -----'") withColor: Color gray). |
14288
01c8bbd5b6dd
Fix in #listOfVariables - must check whether all superclasses are actually in environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14144
diff
changeset
|
692 |
] |
6721
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
693 |
]. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
694 |
]. |
c49f5a3cbca2
variableList (sort) fixed in hierarchy views
Claus Gittinger <cg@exept.de>
parents:
5909
diff
changeset
|
695 |
]. |
5591 | 696 |
]. |
697 |
||
16537 | 698 |
(numClasses > 1 or:[sortByName and:[groupByInheritance not]]) ifTrue:[ |
10255 | 699 |
nameList := nameList asSortedCollection:[:a :b|a name < b name]. |
5591 | 700 |
]. |
701 |
^ nameList |
|
702 |
||
10255 | 703 |
"Created: / 05-02-2000 / 13:42:11 / cg" |
10550 | 704 |
"Modified: / 08-08-2011 / 16:20:58 / cg" |
14806
56a544a200ce
Fix Tools::VariableList>>listOfVariables - pass non-metaclass name when checking
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14612
diff
changeset
|
705 |
"Modified: / 28-10-2014 / 11:42:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5591 | 706 |
! |
707 |
||
708 |
postBuildWith:aBuilder |
|
709 |
|listView| |
|
710 |
||
711 |
(listView := aBuilder componentAt:#List) notNil ifTrue:[ |
|
712 |
listView scrollWhenUpdating:#end |
|
713 |
]. |
|
714 |
super postBuildWith:aBuilder |
|
715 |
||
716 |
! |
|
717 |
||
718 |
release |
|
719 |
super release. |
|
720 |
||
721 |
classHolder removeDependent:self. |
|
722 |
showClassVars removeDependent:self. |
|
723 |
! |
|
724 |
||
725 |
selectionChangeAllowed:index |
|
10255 | 726 |
|
727 |
| entry | |
|
728 |
^((entry := variableList value at:index) isString" and:[entry startsWith:'---']") not. |
|
729 |
||
730 |
"Modified: / 28-04-2011 / 13:18:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5591 | 731 |
! |
732 |
||
733 |
updateList |
|
734 |
| prevSelection newSelection newList oldList selectedVariablesHolder| |
|
735 |
||
736 |
oldList := self variableList value copy. |
|
10255 | 737 |
showWarningAboutMissingEntryInXmlSpec := false. |
5591 | 738 |
newList := self listOfVariables. |
739 |
||
740 |
newList ~= variableList value ifTrue:[ |
|
10495 | 741 |
selectedVariablesHolder := self selectedVariableEntries. |
11360 | 742 |
prevSelection := (self selectedVariables value "selectedVariablesHolder value" copy) ? #(). |
10255 | 743 |
variableList value:newList. |
744 |
||
11360 | 745 |
newSelection := newList select:[:item | prevSelection includes:item string]. |
746 |
"/ newSelection := prevSelection select:[:item | newList includes:item]. |
|
5591 | 747 |
|
10255 | 748 |
newSelection size > 0 ifTrue:[ |
749 |
"/ force change (for dependents) |
|
11360 | 750 |
"/ selectedVariablesHolder value:nil. |
751 |
selectedVariablesHolder |
|
752 |
setValue:newSelection; |
|
11461 | 753 |
removeDependent:self; |
754 |
changed; |
|
755 |
addDependent:self. |
|
10255 | 756 |
] ifFalse:[ |
757 |
prevSelection := selectedVariablesHolder value. |
|
758 |
selectedVariablesHolder value:nil. |
|
759 |
]. |
|
11360 | 760 |
(prevSelection size > 0 or:[newSelection size > 0 |
761 |
"and:[ prevSelection ~= newSelection]"]) ifTrue:[ |
|
10255 | 762 |
self updateOutputGenerator. |
763 |
]. |
|
764 |
]. |
|
765 |
(showWarningAboutMissingEntryInXmlSpec and:[self topApplication respondsTo: #showMessage:]) |
|
766 |
ifTrue: |
|
767 |
[ |
|
768 |
self topApplication showMessage: |
|
769 |
'One or more instance variables are not listed in #xmlSpecFor:'. |
|
770 |
]. |
|
771 |
showWarningAboutMissingEntryInXmlSpec := false. |
|
14861
87aa6288286b
access listValid only via setter (for easier trapping)
Claus Gittinger <cg@exept.de>
parents:
14806
diff
changeset
|
772 |
self setListValid:true. |
10255 | 773 |
|
10495 | 774 |
"Modified: / 05-08-2011 / 12:34:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11461 | 775 |
"Modified: / 23-03-2012 / 15:55:47 / cg" |
10255 | 776 |
! ! |
777 |
||
778 |
!VariableList::VariableEntry class methodsFor:'instance creation'! |
|
779 |
||
780 |
application: app class: aClass name: aString |
|
781 |
||
782 |
^self new application: app; class: aClass; name: aString |
|
783 |
||
784 |
"Created: / 12-04-2011 / 19:53:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
785 |
! |
|
786 |
||
787 |
class: aClass name: aString |
|
788 |
||
789 |
^self new class: aClass; name: aString |
|
790 |
||
791 |
"Created: / 12-04-2011 / 15:39:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
792 |
! ! |
|
793 |
||
794 |
!VariableList::VariableEntry methodsFor:'accessing'! |
|
795 |
||
796 |
application: anObject |
|
5591 | 797 |
|
10255 | 798 |
application := anObject |
799 |
||
800 |
"Created: / 12-04-2011 / 19:55:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
801 |
! |
|
802 |
||
10308 | 803 |
asString |
804 |
||
805 |
^self name |
|
806 |
||
807 |
"Created: / 11-07-2011 / 17:03:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
808 |
! |
|
809 |
||
10255 | 810 |
class:aClass |
811 |
class := aClass. |
|
812 |
! |
|
813 |
||
15455 | 814 |
classShown:aBoolean |
815 |
classShown := aBoolean. |
|
816 |
! |
|
817 |
||
16537 | 818 |
groupByInheritanceHolder:aValueHolder |
819 |
"/ is there a need for a valueHolder? |
|
820 |
groupByInheritanceHolder := aValueHolder. |
|
821 |
! |
|
822 |
||
10255 | 823 |
icon |
10871 | 824 |
icon isNil ifTrue:[ |
825 |
icon := application iconInBrowserForVariable: name in: class. |
|
826 |
icon isNil ifTrue:[icon := #NOICON]. |
|
827 |
]. |
|
10255 | 828 |
^icon |
829 |
||
830 |
"Created: / 12-04-2011 / 15:54:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
831 |
"Modified: / 12-04-2011 / 19:58:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10871 | 832 |
"Modified: / 18-11-2011 / 15:05:18 / cg" |
10255 | 833 |
! |
834 |
||
835 |
klass |
|
836 |
^ class |
|
837 |
||
838 |
"Created: / 12-04-2011 / 19:54:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
839 |
! |
|
840 |
||
10974 | 841 |
label |
842 |
||
843 |
label isNil ifTrue:[ |
|
844 |
label := name. |
|
845 |
type notNil ifTrue:[ |
|
16500 | 846 |
label := (label , ' ' , (type displayString withColor: Color brown)) |
13827 | 847 |
] ifFalse:[ |
848 |
"/ Hack for Java classes to display field type |
|
849 |
class theNonMetaclass isJavaClass ifTrue:[ |
|
850 |
| field | |
|
851 |
field := class theNonMetaclass lookupFieldFor:name static: (class isMetaclass) onlyPublic: false. |
|
852 |
field notNil ifTrue:[ |
|
853 |
label := label asText , |
|
854 |
' ' , |
|
855 |
(('< ' , (JavaMethod fieldTypeFromStream: (field descriptor readStream) in: class theNonMetaclass javaPackage) , ' >') |
|
16500 | 856 |
withColor: Color brown). |
13827 | 857 |
]. |
858 |
]. |
|
13382 | 859 |
]. |
10974 | 860 |
]. |
861 |
^label |
|
862 |
||
863 |
"Created: / 16-12-2011 / 00:54:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
13827 | 864 |
"Modified: / 07-10-2013 / 08:29:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10974 | 865 |
! |
866 |
||
13382 | 867 |
labelWithClass |
868 |
|l| |
|
869 |
||
870 |
l := self label. |
|
871 |
class notNil ifTrue:[ |
|
16500 | 872 |
^ label,' (' ,(class nameWithoutPrefix withColor: Color gray),')' |
13382 | 873 |
]. |
874 |
^label |
|
875 |
! |
|
876 |
||
10255 | 877 |
name |
878 |
^ name |
|
879 |
! |
|
880 |
||
881 |
name:aString |
|
882 |
name := aString. |
|
883 |
! |
|
884 |
||
16537 | 885 |
sortingByNameHolder:aValueHolder |
886 |
"/ is there a need for a valueHolder? |
|
887 |
sortingByNameHolder := aValueHolder. |
|
13382 | 888 |
! |
889 |
||
10255 | 890 |
string |
891 |
||
892 |
^name |
|
893 |
||
894 |
"Created: / 12-04-2011 / 15:45:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10974 | 895 |
! |
896 |
||
897 |
type |
|
898 |
"Return a SmallSense inferred type" |
|
899 |
||
900 |
^ type |
|
901 |
||
902 |
"Modified (format): / 16-12-2011 / 00:41:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
903 |
! |
|
904 |
||
905 |
type:aSmallSenseType |
|
906 |
"Sets a SmallSense inferred type" |
|
907 |
||
908 |
type := aSmallSenseType. |
|
909 |
||
910 |
"Modified (format): / 16-12-2011 / 00:41:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10255 | 911 |
! ! |
912 |
||
913 |
!VariableList::VariableEntry methodsFor:'displaying'! |
|
914 |
||
15455 | 915 |
displayOn:aGC x:x y:y opaque:opaque |
13382 | 916 |
| icn shownLabel | |
10255 | 917 |
|
918 |
icn := self icon. |
|
919 |
icn ~~ #NOICON ifTrue:[ |
|
920 |
icn displayOn:aGC x:x + 1 y:y - icn height. |
|
5591 | 921 |
]. |
13382 | 922 |
|
16537 | 923 |
shownLabel := ((classShown ? true) and:[sortingByNameHolder value and:[groupByInheritanceHolder value not]]) |
13382 | 924 |
ifTrue:[ self labelWithClass ] |
925 |
ifFalse: [ self label ]. |
|
926 |
||
927 |
shownLabel displayOn:aGC x:x + 20 y:y opaque: opaque |
|
10255 | 928 |
|
929 |
"Created: / 12-04-2011 / 15:47:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5591 | 930 |
! ! |
931 |
||
10974 | 932 |
!VariableList::VariableEntry methodsFor:'queries'! |
933 |
||
934 |
widthOn:aGC |
|
935 |
||
936 |
^20"space for icon, see displayOn:..." |
|
937 |
+ (self label widthOn:aGC) |
|
938 |
||
939 |
"Created: / 16-12-2011 / 01:04:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
940 |
! ! |
|
941 |
||
5591 | 942 |
!VariableList class methodsFor:'documentation'! |
943 |
||
9461 | 944 |
version_CVS |
16192 | 945 |
^ '$Header$' |
5591 | 946 |
! ! |
12450 | 947 |