author | Claus Gittinger <cg@exept.de> |
Thu, 10 Feb 2011 22:53:19 +0100 | |
changeset 9760 | 095b379e7a43 |
parent 9468 | 039eb55c8a25 |
child 10349 | 4032630a2deb |
permissions | -rw-r--r-- |
6179 | 1 |
" |
2 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
5592 | 12 |
"{ Package: 'stx:libtool' }" |
5591 | 13 |
|
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
ProjectList subclass:#HierarchicalProjectList |
|
17 |
instanceVariableNames:'hierarchicalProjectTree selectedProjectItems packageIcon |
|
18 |
hierarchicalProjectList hierarchicalProjectSelection |
|
19 |
packageToItemDictionary' |
|
20 |
classVariableNames:'' |
|
21 |
poolDictionaries:'' |
|
22 |
category:'Interface-Browsers-New' |
|
23 |
! |
|
24 |
||
6690 | 25 |
HierarchicalItemWithLabel subclass:#ProjectItem |
26 |
instanceVariableNames:'packageID' |
|
5670
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
27 |
classVariableNames:'' |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
28 |
poolDictionaries:'' |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
29 |
privateIn:HierarchicalProjectList |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
30 |
! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
31 |
|
5591 | 32 |
!HierarchicalProjectList class methodsFor:'documentation'! |
33 |
||
6179 | 34 |
copyright |
35 |
" |
|
36 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
37 |
All Rights Reserved |
|
38 |
||
39 |
This software is furnished under a license and may be used |
|
40 |
only in accordance with the terms of that license and with the |
|
41 |
inclusion of the above copyright notice. This software may not |
|
42 |
be provided or otherwise made available to, or used by, any |
|
43 |
other person. No title to or ownership of the software is |
|
44 |
hereby transferred. |
|
45 |
" |
|
46 |
! |
|
47 |
||
5591 | 48 |
documentation |
49 |
" |
|
50 |
Like a ClassList, but shows classes hierarchical. |
|
51 |
||
52 |
If topClassHolders value is non-nil, only that classes hierarchy |
|
53 |
is shown. |
|
54 |
||
55 |
embeddable application displaying the classes as listed by |
|
56 |
the inputGenerator. |
|
57 |
Provides an outputGenerator, which enumerates the classes and |
|
58 |
their protocols (method-categories) in the selected classes. |
|
59 |
||
60 |
[author:] |
|
61 |
Claus Gittinger (cg@exept.de) |
|
62 |
" |
|
63 |
||
64 |
||
65 |
! ! |
|
66 |
||
67 |
!HierarchicalProjectList class methodsFor:'interface specs'! |
|
68 |
||
69 |
windowSpec |
|
70 |
"This resource specification was automatically generated |
|
71 |
by the UIPainter of ST/X." |
|
72 |
||
73 |
"Do not manually edit this!! If it is corrupted, |
|
74 |
the UIPainter may not be able to read the specification." |
|
75 |
||
76 |
" |
|
77 |
UIPainter new openOnClass:HierarchicalProjectList andSelector:#windowSpec |
|
78 |
HierarchicalProjectList new openInterface:#windowSpec |
|
79 |
HierarchicalProjectList open |
|
80 |
" |
|
81 |
||
82 |
<resource: #canvas> |
|
83 |
||
84 |
^ |
|
85 |
#(#FullSpec |
|
9468 | 86 |
#name: #windowSpec |
87 |
#window: |
|
5591 | 88 |
#(#WindowSpec |
9468 | 89 |
#label: 'ProjectList' |
90 |
#name: 'ProjectList' |
|
91 |
#min: #(#Point 0 0) |
|
92 |
#bounds: #(#Rectangle 16 46 316 346) |
|
93 |
) |
|
94 |
#component: |
|
5591 | 95 |
#(#SpecCollection |
9468 | 96 |
#collection: #( |
97 |
#(#HierarchicalListViewSpec |
|
98 |
#name: 'HierarchicalListView1' |
|
99 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
100 |
#tabable: true |
|
101 |
#model: #hierarchicalProjectSelection |
|
102 |
#menu: #menuHolder |
|
103 |
#hasHorizontalScrollBar: true |
|
104 |
#hasVerticalScrollBar: true |
|
105 |
#miniScrollerHorizontal: true |
|
106 |
#listModel: #hierarchicalProjectList |
|
107 |
#multipleSelectOk: true |
|
108 |
#highlightMode: #line |
|
109 |
#doubleClickSelector: #doubleClicked: |
|
110 |
#indicatorSelector: #indicatorPressed: |
|
111 |
#properties: |
|
112 |
#(#PropertyListDictionary |
|
113 |
#dragArgument: nil |
|
114 |
#dropArgument: nil |
|
115 |
#canDropSelector: #canDrop: |
|
116 |
#dropSelector: #doDrop: |
|
117 |
) |
|
118 |
) |
|
119 |
) |
|
5591 | 120 |
|
9468 | 121 |
) |
5591 | 122 |
) |
123 |
! |
|
124 |
||
125 |
xxwindowSpec |
|
126 |
"This resource specification was automatically generated |
|
127 |
by the UIPainter of ST/X." |
|
128 |
||
129 |
"Do not manually edit this!! If it is corrupted, |
|
130 |
the UIPainter may not be able to read the specification." |
|
131 |
||
132 |
" |
|
133 |
UIPainter new openOnClass:HierarchicalProjectList andSelector:#windowSpec |
|
134 |
HierarchicalProjectList new openInterface:#windowSpec |
|
135 |
HierarchicalProjectList open |
|
136 |
" |
|
137 |
||
138 |
<resource: #canvas> |
|
139 |
||
140 |
^ |
|
141 |
#(#FullSpec |
|
5592 | 142 |
#name: #windowSpec |
143 |
#window: |
|
5591 | 144 |
#(#WindowSpec |
5592 | 145 |
#label: 'ProjectList' |
146 |
#name: 'ProjectList' |
|
147 |
#min: #(#Point 0 0) |
|
148 |
#max: #(#Point 1024 721) |
|
149 |
#bounds: #(#Rectangle 12 22 312 322) |
|
150 |
) |
|
151 |
#component: |
|
5591 | 152 |
#(#SpecCollection |
5592 | 153 |
#collection: #( |
154 |
#(#SelectionInTreeViewSpec |
|
155 |
#name: 'List' |
|
156 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
157 |
#model: #selectedProjectItems |
|
158 |
#menu: #menuHolder |
|
159 |
#hasHorizontalScrollBar: true |
|
160 |
#hasVerticalScrollBar: true |
|
161 |
#miniScrollerHorizontal: true |
|
162 |
#showRoot: false |
|
163 |
#showDirectoryIndicator: true |
|
164 |
#isMultiSelect: true |
|
165 |
#valueChangeSelector: #selectionChangedByClick |
|
166 |
#hierarchicalList: #hierarchicalProjectTree |
|
167 |
#childrenSelector: #actionToRetrieveChildren |
|
168 |
#highlightMode: #line |
|
169 |
#doubleClickChannel: #doubleClickChannel |
|
170 |
) |
|
171 |
#(#HierarchicalListViewSpec |
|
172 |
#name: 'HierarchicalListView1' |
|
173 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
174 |
#tabable: true |
|
175 |
#hasHorizontalScrollBar: true |
|
176 |
#hasVerticalScrollBar: true |
|
177 |
#miniScrollerHorizontal: true |
|
178 |
#listModel: #hierarchicalProjectList |
|
179 |
#multipleSelectOk: true |
|
180 |
#highlightMode: #line |
|
181 |
#doubleClickSelector: #doubleClicked: |
|
182 |
#indicatorSelector: #indicatorPressed: |
|
183 |
"/ #showLeftIndicators: false |
|
184 |
) |
|
185 |
) |
|
5591 | 186 |
|
5592 | 187 |
) |
5591 | 188 |
) |
189 |
! ! |
|
190 |
||
191 |
!HierarchicalProjectList class methodsFor:'plugIn spec'! |
|
192 |
||
193 |
aspectSelectors |
|
194 |
"This resource specification was automatically generated |
|
195 |
by the UIPainter of ST/X." |
|
196 |
||
197 |
"Do not manually edit this. If it is corrupted, |
|
198 |
the UIPainter may not be able to read the specification." |
|
199 |
||
200 |
"Return a description of exported aspects; |
|
201 |
these can be connected to aspects of an embedding application |
|
202 |
(if this app is embedded in a subCanvas)." |
|
203 |
||
204 |
^ #( |
|
205 |
#(#doubleClickChannel #action ) |
|
206 |
#forceGeneratorTrigger |
|
207 |
#hideUnloadedClasses |
|
208 |
#immediateUpdate |
|
209 |
#inGeneratorHolder |
|
210 |
#menuHolder |
|
211 |
#organizerMode |
|
212 |
#outGeneratorHolder |
|
213 |
#selectedProjects |
|
214 |
#selectionChangeCondition |
|
215 |
#slaveMode |
|
216 |
#updateTrigger |
|
217 |
). |
|
218 |
||
219 |
! ! |
|
220 |
||
221 |
!HierarchicalProjectList methodsFor:'aspects'! |
|
222 |
||
223 |
generateHierarchicalProjectTree |
|
224 |
|anchor| |
|
225 |
||
226 |
self projectList value isNil ifTrue:[ |
|
227 |
self updateList. |
|
228 |
self projectList value isNil ifTrue:[ |
|
229 |
^ nil. |
|
230 |
] |
|
231 |
]. |
|
232 |
||
233 |
anchor := ProjectItem new. |
|
234 |
anchor package:''. |
|
235 |
anchor label:nil. |
|
236 |
||
237 |
packageToItemDictionary := IdentityDictionary new. |
|
238 |
packageToItemDictionary at:'' asSymbol put:anchor. |
|
239 |
||
240 |
self projectList value do:[:eachPackageString | |
|
241 |
|package| |
|
242 |
||
243 |
package := eachPackageString asSymbol. |
|
244 |
(packageToItemDictionary includesKey:package) ifFalse:[ |
|
245 |
self addPackage:package |
|
246 |
]. |
|
247 |
]. |
|
248 |
||
249 |
"/ Smalltalk allClassesDo:[:eachClass | |
|
250 |
"/ |package| |
|
251 |
"/ |
|
252 |
"/ package := eachClass package asSymbol. |
|
253 |
"/ (packageToItemDictionary includesKey:package) ifFalse:[ |
|
254 |
"/ self addPackage:package |
|
255 |
"/ ]. |
|
256 |
"/ ]. |
|
257 |
anchor recursiveSortChildren:[:i1 :i2 | i1 label asLowercase < i2 label asLowercase]. |
|
258 |
anchor expand. |
|
259 |
||
260 |
^ anchor |
|
261 |
! |
|
262 |
||
263 |
hierarchicalProjectList |
|
264 |
|anchor | |
|
265 |
||
266 |
hierarchicalProjectList isNil ifTrue:[ |
|
267 |
hierarchicalProjectList := HierarchicalList new. |
|
268 |
hierarchicalProjectList showRoot:false. |
|
269 |
||
270 |
(self slaveMode value ~~ true) ifTrue:[ |
|
271 |
anchor := self generateHierarchicalProjectTree. |
|
272 |
hierarchicalProjectList root:anchor. |
|
273 |
listValid := true |
|
274 |
] ifFalse:[ |
|
275 |
listValid := false |
|
276 |
] |
|
277 |
]. |
|
278 |
^ hierarchicalProjectList |
|
279 |
! |
|
280 |
||
281 |
hierarchicalProjectSelection |
|
282 |
hierarchicalProjectSelection isNil ifTrue:[ |
|
283 |
hierarchicalProjectSelection := #() asValue. |
|
284 |
hierarchicalProjectSelection addDependent:self. |
|
285 |
]. |
|
286 |
^ hierarchicalProjectSelection. |
|
287 |
! |
|
288 |
||
289 |
updateTreeSelection |
|
290 |
"/ must expand items as required |
|
291 |
|itemsToSelect oldSelection newSelection| |
|
292 |
||
293 |
itemsToSelect := OrderedCollection new. |
|
294 |
||
295 |
(self selectedProjects value ? #()) do:[:eachSelectedProject | |
|
6910
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
296 |
|item child| |
5591 | 297 |
|
6910
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
298 |
item := hierarchicalProjectList root. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
299 |
item notNil ifTrue:[ |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
300 |
(eachSelectedProject asCollectionOfSubstringsSeparatedByAny:':/') do:[:part | |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
301 |
item expand. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
302 |
child := item detect:[:child | child label = part] ifNone:nil. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
303 |
child notNil ifTrue:[ |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
304 |
item := child. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
305 |
]. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
306 |
]. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
307 |
itemsToSelect add:child. |
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
308 |
]. |
5591 | 309 |
]. |
310 |
oldSelection := hierarchicalProjectSelection value. |
|
311 |
newSelection := itemsToSelect collect:[:eachItem | hierarchicalProjectList identityIndexOf:eachItem]. |
|
312 |
oldSelection ~= newSelection ifTrue:[ |
|
6910
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
313 |
hierarchicalProjectSelection value:newSelection. |
5591 | 314 |
]. |
6910
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
315 |
|
bab240275ae0
code cleanup - remove old obsolete Project code
Claus Gittinger <cg@exept.de>
parents:
6715
diff
changeset
|
316 |
"Modified: / 17-08-2006 / 09:56:32 / cg" |
5591 | 317 |
! ! |
318 |
||
319 |
!HierarchicalProjectList methodsFor:'change & update'! |
|
320 |
||
321 |
delayedUpdate:something with:aParameter from:changedObject |
|
322 |
|cls sel oldMethod newMethod newPackage| |
|
323 |
||
324 |
self inSlaveModeOrInvisible ifTrue:[ |
|
325 |
super delayedUpdate:something with:aParameter from:changedObject. |
|
326 |
^ self. |
|
327 |
]. |
|
328 |
||
329 |
"/ (self slaveMode value == true) ifTrue:[ |
|
330 |
"/ super delayedUpdate:something with:aParameter from:changedObject. |
|
331 |
"/ ^ self |
|
332 |
"/ ]. |
|
333 |
||
334 |
changedObject == updateTrigger ifTrue:[ |
|
335 |
hierarchicalProjectList := nil. |
|
336 |
self hierarchicalProjectList. |
|
337 |
self updateTreeSelection. |
|
338 |
^ self |
|
339 |
]. |
|
340 |
||
341 |
changedObject == slaveMode ifTrue:[ |
|
342 |
listValid ~~ true ifTrue:[ |
|
343 |
self enqueueDelayedUpdateList |
|
344 |
]. |
|
345 |
"/ self invalidateList. |
|
346 |
self updateTreeSelection. |
|
347 |
^ self |
|
348 |
]. |
|
349 |
||
350 |
changedObject == hierarchicalProjectSelection ifTrue:[ |
|
351 |
self updateSelectionFromTree. |
|
352 |
^ self |
|
353 |
]. |
|
354 |
"/ changedObject == self selectedProjects ifTrue:[ |
|
355 |
"/ "/ update the trees selection as appropriate |
|
356 |
"/ self updateTreeSelection. |
|
357 |
"/ ]. |
|
358 |
changedObject == projectList ifTrue:[ |
|
359 |
"/ update the tree |
|
360 |
self hierarchicalProjectList root:(self generateHierarchicalProjectTree). |
|
361 |
^ self. |
|
362 |
]. |
|
363 |
||
364 |
super delayedUpdate:something with:aParameter from:changedObject |
|
365 |
||
366 |
"Created: / 17.2.2000 / 23:41:02 / cg" |
|
367 |
"Modified: / 26.2.2000 / 01:21:49 / cg" |
|
368 |
! |
|
369 |
||
370 |
enqueueDelayedAddPackage:package |
|
6715 | 371 |
(NewSystemBrowser synchronousUpdate == true |
372 |
or:[ immediateUpdate value == true ]) |
|
373 |
ifTrue:[ |
|
374 |
self addPackage:package. |
|
375 |
^ self |
|
5591 | 376 |
]. |
377 |
^ self |
|
6715 | 378 |
enqueueMessage:#addPackage: |
379 |
for:self |
|
380 |
arguments:(Array with:package) |
|
5591 | 381 |
! |
382 |
||
383 |
update:something with:aParameter from:changedObject |
|
384 |
something == #methodTrap ifTrue:[ |
|
385 |
"/ dont care for that. |
|
386 |
^ self. |
|
387 |
]. |
|
388 |
changedObject == organizerMode ifTrue:[ |
|
389 |
"/ dont care for that. |
|
390 |
^ self. |
|
391 |
]. |
|
392 |
super update:something with:aParameter from:changedObject |
|
393 |
! |
|
394 |
||
395 |
updateSelectionFromTree |
|
396 |
|treeSelection| |
|
397 |
||
398 |
treeSelection := hierarchicalProjectSelection value |
|
399 |
collect:[:eachIndex | |item| |
|
400 |
item := hierarchicalProjectList at:eachIndex ifAbsent:nil. |
|
401 |
item package |
|
402 |
]. |
|
403 |
||
404 |
treeSelection asSet ~= (self selectedProjects value ? #()) asSet ifTrue:[ |
|
405 |
self selectedProjects value:treeSelection. |
|
406 |
] |
|
407 |
! ! |
|
408 |
||
409 |
!HierarchicalProjectList methodsFor:'private'! |
|
410 |
||
411 |
addPackage:package |
|
412 |
|i p pp l parentPackage parentItem idx| |
|
413 |
||
414 |
i:= packageToItemDictionary at:package asSymbol ifAbsent:nil. |
|
415 |
i isNil ifTrue:[ |
|
416 |
i := ProjectItem new. |
|
417 |
i package:package. |
|
418 |
packageToItemDictionary at:package asSymbol put:i. |
|
419 |
||
420 |
package size > 0 ifTrue:[ |
|
421 |
"/ find the parent ... |
|
422 |
p := package asCollectionOfSubstringsSeparatedByAny:':/.'. |
|
423 |
pp := p copyWithoutLast:1. |
|
424 |
l := (pp asStringWith:$/) size. |
|
425 |
parentPackage := package copyTo:l. |
|
426 |
||
427 |
parentItem := self addPackage:parentPackage asSymbol . |
|
428 |
||
429 |
parentPackage size == 0 ifTrue:[ |
|
430 |
idx := 1. |
|
431 |
] ifFalse:[ |
|
432 |
idx := parentPackage size + 2 |
|
433 |
]. |
|
434 |
i label:(package copyFrom:idx). |
|
435 |
||
436 |
parentItem add:i sortBlock:[:i1 :i2 | i1 label asLowercase < i2 label asLowercase]. |
|
437 |
||
438 |
"/ TODO: special items for classes, resources etc. |
|
439 |
||
440 |
] |
|
441 |
]. |
|
442 |
^ i |
|
443 |
! |
|
444 |
||
445 |
release |
|
446 |
super release. |
|
447 |
||
448 |
hierarchicalProjectSelection removeDependent:self. |
|
449 |
! ! |
|
450 |
||
451 |
!HierarchicalProjectList methodsFor:'user actions'! |
|
452 |
||
453 |
doubleClicked:anIndex |
|
454 |
|item| |
|
455 |
||
456 |
item := hierarchicalProjectList at:anIndex ifAbsent:nil. |
|
457 |
item isNil ifTrue:[ |
|
458 |
^ self |
|
459 |
]. |
|
460 |
||
461 |
(item canExpand not or:[item isExpanded]) ifTrue:[ |
|
462 |
doubleClickChannel notNil ifTrue:[ |
|
463 |
doubleClickChannel value:anIndex. |
|
464 |
]. |
|
465 |
^ self |
|
466 |
]. |
|
467 |
||
468 |
item expand. |
|
469 |
! |
|
470 |
||
471 |
indicatorPressed:anIndex |
|
472 |
|item sensor| |
|
473 |
||
474 |
item := hierarchicalProjectList at:anIndex ifAbsent:nil. |
|
475 |
||
476 |
item isNil ifTrue:[ |
|
477 |
^ self |
|
478 |
]. |
|
479 |
||
480 |
sensor := self window sensor. |
|
481 |
(sensor ctrlDown or:[sensor shiftDown]) ifTrue:[ |
|
482 |
item recursiveToggleExpand |
|
483 |
] ifFalse:[ |
|
484 |
item toggleExpand |
|
485 |
]. |
|
486 |
! ! |
|
487 |
||
5793 | 488 |
!HierarchicalProjectList::ProjectItem methodsFor:'accessing'! |
5670
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
489 |
|
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
490 |
children |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
491 |
children isNil ifTrue:[ |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
492 |
children := #() |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
493 |
]. |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
494 |
^ children |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
495 |
! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
496 |
|
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
497 |
icon |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
498 |
^ SystemBrowser packageIcon |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
499 |
! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
500 |
|
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
501 |
label:aString |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
502 |
label ~= aString ifTrue:[ |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
503 |
label := aString. |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
504 |
self changed:#label |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
505 |
]. |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
506 |
! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
507 |
|
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
508 |
package |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
509 |
^ packageID |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
510 |
! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
511 |
|
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
512 |
package:prefixOrPackageID |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
513 |
packageID := prefixOrPackageID |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
514 |
! ! |
e5c8a8e964dc
oops - private class got lost
Claus Gittinger <cg@exept.de>
parents:
5592
diff
changeset
|
515 |
|
5591 | 516 |
!HierarchicalProjectList class methodsFor:'documentation'! |
517 |
||
518 |
version |
|
9468 | 519 |
^ '$Header: /cvs/stx/stx/libtool/Tools_HierarchicalProjectList.st,v 1.9 2010-05-07 12:27:38 cg Exp $' |
520 |
! |
|
521 |
||
522 |
version_CVS |
|
523 |
^ '$Header: /cvs/stx/stx/libtool/Tools_HierarchicalProjectList.st,v 1.9 2010-05-07 12:27:38 cg Exp $' |
|
5591 | 524 |
! ! |