2626
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2000 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 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
2540
|
15 |
AbstractVersionDiffBrowserItem subclass:#ClassItemRoot
|
|
16 |
instanceVariableNames:''
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
2547
|
19 |
category:'Interface-Browsers-Support'
|
2540
|
20 |
!
|
|
21 |
|
2547
|
22 |
!ClassItemRoot class methodsFor:'documentation'!
|
|
23 |
|
2626
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 2000 by eXept Software AG
|
|
27 |
All Rights Reserved
|
|
28 |
|
|
29 |
This software is furnished under a license and may be used
|
|
30 |
only in accordance with the terms of that license and with the
|
|
31 |
inclusion of the above copyright notice. This software may not
|
|
32 |
be provided or otherwise made available to, or used by, any
|
|
33 |
other person. No title to or ownership of the software is
|
|
34 |
hereby transferred.
|
|
35 |
"
|
|
36 |
|
|
37 |
|
|
38 |
!
|
|
39 |
|
2547
|
40 |
documentation
|
|
41 |
"
|
2625
|
42 |
This is not yet finished (work in progress) - do not use.
|
2547
|
43 |
|
|
44 |
[author:]
|
|
45 |
Pierre Schwarz (ps@exept.de)
|
|
46 |
|
|
47 |
[see also:]
|
|
48 |
|
|
49 |
[instance variables:]
|
|
50 |
|
|
51 |
[class variables:]
|
|
52 |
"
|
|
53 |
|
|
54 |
! !
|
2540
|
55 |
|
2612
|
56 |
!ClassItemRoot class methodsFor:'accessing'!
|
|
57 |
|
|
58 |
classItemClass
|
|
59 |
|
|
60 |
^ClassItem
|
|
61 |
|
|
62 |
! !
|
|
63 |
|
|
64 |
!ClassItemRoot methodsFor:'accessing'!
|
|
65 |
|
|
66 |
classItemClass
|
|
67 |
"return the value of the instance variable 'classItemClass' (automatically generated)"
|
|
68 |
|
|
69 |
^ self class classItemClass
|
|
70 |
|
|
71 |
|
|
72 |
! !
|
|
73 |
|
2544
|
74 |
!ClassItemRoot methodsFor:'initialization'!
|
|
75 |
|
|
76 |
initialize
|
|
77 |
super initialize.
|
|
78 |
isExpanded := true.
|
|
79 |
! !
|
|
80 |
|
2612
|
81 |
!ClassItemRoot methodsFor:'protocol'!
|
|
82 |
|
|
83 |
children
|
|
84 |
"
|
|
85 |
default childrens of the receiver are none.
|
|
86 |
|
|
87 |
<return: Array>
|
|
88 |
"
|
|
89 |
|
|
90 |
children ifNil:[
|
2625
|
91 |
children := self computeChildrensFor:parent dataColl.
|
2612
|
92 |
children do:[:eachChild | eachChild parent:self]
|
|
93 |
].
|
|
94 |
^ children
|
|
95 |
|
2625
|
96 |
"Modified: / 18.2.2000 / 15:02:12 / cg"
|
2612
|
97 |
!
|
|
98 |
|
|
99 |
computeChildrensFor:aClassColl
|
|
100 |
"
|
|
101 |
|
|
102 |
<return: OrderedCollection|nil>
|
|
103 |
"
|
|
104 |
|
|
105 |
|theClassItemColl|
|
|
106 |
|
|
107 |
aClassColl ifNil:[^#()].
|
|
108 |
theClassItemColl := aClassColl collect:[:eachClass |
|
|
109 |
|theClassItem theClass|
|
|
110 |
theClassItem := self classItemClass new.
|
|
111 |
theClass := Smalltalk resolveName:eachClass inClass:Smalltalk.
|
|
112 |
theClassItem myClass:theClass.
|
|
113 |
theClassItem].
|
|
114 |
^theClassItemColl
|
|
115 |
|
|
116 |
!
|
|
117 |
|
|
118 |
doubleClickOn:anItem
|
|
119 |
|
|
120 |
|listView|
|
|
121 |
|
|
122 |
(anItem isExpandableRevisionItem and:[parent application listView sensor shiftDown])
|
|
123 |
ifTrue: [anItem recursiveToggleExpand]
|
|
124 |
ifFalse:[anItem toggleExpand]
|
|
125 |
! !
|
|
126 |
|
2544
|
127 |
!ClassItemRoot methodsFor:'queries'!
|
|
128 |
|
|
129 |
canCollapse
|
|
130 |
^ false
|
|
131 |
|
|
132 |
! !
|
|
133 |
|
2540
|
134 |
!ClassItemRoot class methodsFor:'documentation'!
|
|
135 |
|
|
136 |
version
|
2626
|
137 |
^ '$Header: /cvs/stx/stx/libtool/ClassItemRoot.st,v 1.6 2000-02-18 14:09:21 cg Exp $'
|
2540
|
138 |
! !
|