2540
|
1 |
AbstractVersionDiffBrowserItem subclass:#ClassItemRoot
|
|
2 |
instanceVariableNames:''
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
2547
|
5 |
category:'Interface-Browsers-Support'
|
2540
|
6 |
!
|
|
7 |
|
2547
|
8 |
!ClassItemRoot class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
|
12 |
documentation to be added.
|
|
13 |
|
|
14 |
[author:]
|
|
15 |
Pierre Schwarz (ps@exept.de)
|
|
16 |
|
|
17 |
[see also:]
|
|
18 |
|
|
19 |
[instance variables:]
|
|
20 |
|
|
21 |
[class variables:]
|
|
22 |
"
|
|
23 |
|
|
24 |
! !
|
2540
|
25 |
|
2612
|
26 |
!ClassItemRoot class methodsFor:'accessing'!
|
|
27 |
|
|
28 |
classItemClass
|
|
29 |
|
|
30 |
^ClassItem
|
|
31 |
|
|
32 |
! !
|
|
33 |
|
|
34 |
!ClassItemRoot methodsFor:'accessing'!
|
|
35 |
|
|
36 |
classItemClass
|
|
37 |
"return the value of the instance variable 'classItemClass' (automatically generated)"
|
|
38 |
|
|
39 |
^ self class classItemClass
|
|
40 |
|
|
41 |
|
|
42 |
! !
|
|
43 |
|
2544
|
44 |
!ClassItemRoot methodsFor:'initialization'!
|
|
45 |
|
|
46 |
initialize
|
|
47 |
super initialize.
|
|
48 |
isExpanded := true.
|
|
49 |
! !
|
|
50 |
|
2612
|
51 |
!ClassItemRoot methodsFor:'protocol'!
|
|
52 |
|
|
53 |
children
|
|
54 |
"
|
|
55 |
default childrens of the receiver are none.
|
|
56 |
|
|
57 |
<return: Array>
|
|
58 |
"
|
|
59 |
|
|
60 |
children ifNil:[
|
|
61 |
children := self computeChildrensFor:parent classRevisionColl.
|
|
62 |
children do:[:eachChild | eachChild parent:self]
|
|
63 |
].
|
|
64 |
^ children
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
!
|
|
74 |
|
|
75 |
computeChildrensFor:aClassColl
|
|
76 |
"
|
|
77 |
|
|
78 |
<return: OrderedCollection|nil>
|
|
79 |
"
|
|
80 |
|
|
81 |
|theClassItemColl|
|
|
82 |
|
|
83 |
aClassColl ifNil:[^#()].
|
|
84 |
theClassItemColl := aClassColl collect:[:eachClass |
|
|
85 |
|theClassItem theClass|
|
|
86 |
theClassItem := self classItemClass new.
|
|
87 |
theClass := Smalltalk resolveName:eachClass inClass:Smalltalk.
|
|
88 |
theClassItem myClass:theClass.
|
|
89 |
theClassItem].
|
|
90 |
^theClassItemColl
|
|
91 |
|
|
92 |
!
|
|
93 |
|
|
94 |
doubleClickOn:anItem
|
|
95 |
|
|
96 |
|listView|
|
|
97 |
|
|
98 |
(anItem isExpandableRevisionItem and:[parent application listView sensor shiftDown])
|
|
99 |
ifTrue: [anItem recursiveToggleExpand]
|
|
100 |
ifFalse:[anItem toggleExpand]
|
|
101 |
! !
|
|
102 |
|
2544
|
103 |
!ClassItemRoot methodsFor:'queries'!
|
|
104 |
|
|
105 |
canCollapse
|
|
106 |
^ false
|
|
107 |
|
|
108 |
! !
|
|
109 |
|
2540
|
110 |
!ClassItemRoot class methodsFor:'documentation'!
|
|
111 |
|
|
112 |
version
|
2612
|
113 |
^ '$Header: /cvs/stx/stx/libtool/ClassItemRoot.st,v 1.4 2000-02-15 16:48:28 ps Exp $'
|
2540
|
114 |
! !
|