author | Jan Vrany <jan.vrany@labware.com> |
Sat, 30 Sep 2023 22:55:25 +0100 | |
branch | jv |
changeset 19648 | 5df52d354504 |
parent 15950 | 23be8cf85415 |
permissions | -rw-r--r-- |
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 |
" |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
2626 | 13 |
|
15950 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
2540 | 16 |
AbstractVersionDiffBrowserItem subclass:#ClassItemRoot |
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
2547 | 20 |
category:'Interface-Browsers-Support' |
2540 | 21 |
! |
22 |
||
2547 | 23 |
!ClassItemRoot class methodsFor:'documentation'! |
24 |
||
2626 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
||
39 |
! |
|
40 |
||
2547 | 41 |
documentation |
42 |
" |
|
2625 | 43 |
This is not yet finished (work in progress) - do not use. |
2547 | 44 |
|
45 |
[author:] |
|
46 |
Pierre Schwarz (ps@exept.de) |
|
47 |
||
48 |
[see also:] |
|
49 |
||
50 |
[instance variables:] |
|
51 |
||
52 |
[class variables:] |
|
53 |
" |
|
54 |
||
55 |
! ! |
|
2540 | 56 |
|
2612 | 57 |
!ClassItemRoot class methodsFor:'accessing'! |
58 |
||
59 |
classItemClass |
|
60 |
||
61 |
^ClassItem |
|
62 |
||
63 |
! ! |
|
64 |
||
65 |
!ClassItemRoot methodsFor:'accessing'! |
|
66 |
||
67 |
classItemClass |
|
68 |
"return the value of the instance variable 'classItemClass' (automatically generated)" |
|
69 |
||
70 |
^ self class classItemClass |
|
71 |
||
72 |
||
73 |
! ! |
|
74 |
||
2544 | 75 |
!ClassItemRoot methodsFor:'initialization'! |
76 |
||
77 |
initialize |
|
78 |
super initialize. |
|
79 |
isExpanded := true. |
|
80 |
! ! |
|
81 |
||
2612 | 82 |
!ClassItemRoot methodsFor:'protocol'! |
83 |
||
84 |
children |
|
85 |
" |
|
86 |
default childrens of the receiver are none. |
|
87 |
||
88 |
<return: Array> |
|
89 |
" |
|
90 |
||
91 |
children ifNil:[ |
|
2625 | 92 |
children := self computeChildrensFor:parent dataColl. |
2612 | 93 |
children do:[:eachChild | eachChild parent:self] |
94 |
]. |
|
95 |
^ children |
|
96 |
||
2625 | 97 |
"Modified: / 18.2.2000 / 15:02:12 / cg" |
2612 | 98 |
! |
99 |
||
100 |
computeChildrensFor:aClassColl |
|
101 |
" |
|
102 |
||
103 |
<return: OrderedCollection|nil> |
|
104 |
" |
|
105 |
||
106 |
|theClassItemColl| |
|
107 |
||
108 |
aClassColl ifNil:[^#()]. |
|
109 |
theClassItemColl := aClassColl collect:[:eachClass | |
|
110 |
|theClassItem theClass| |
|
111 |
theClassItem := self classItemClass new. |
|
112 |
theClass := Smalltalk resolveName:eachClass inClass:Smalltalk. |
|
113 |
theClassItem myClass:theClass. |
|
114 |
theClassItem]. |
|
115 |
^theClassItemColl |
|
116 |
||
117 |
! |
|
118 |
||
119 |
doubleClickOn:anItem |
|
120 |
||
121 |
|listView| |
|
122 |
||
123 |
(anItem isExpandableRevisionItem and:[parent application listView sensor shiftDown]) |
|
124 |
ifTrue: [anItem recursiveToggleExpand] |
|
125 |
ifFalse:[anItem toggleExpand] |
|
126 |
! ! |
|
127 |
||
2544 | 128 |
!ClassItemRoot methodsFor:'queries'! |
129 |
||
130 |
canCollapse |
|
131 |
^ false |
|
132 |
||
133 |
! ! |
|
134 |
||
2540 | 135 |
!ClassItemRoot class methodsFor:'documentation'! |
136 |
||
137 |
version |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
138 |
^ '$Id: ClassItemRoot.st 7854 2012-01-30 17:49:41Z vranyj1 $' |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
139 |
! |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
140 |
|
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
141 |
version_HG |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
142 |
|
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
143 |
^ '$Changeset: <not expanded> $' |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
144 |
! |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
145 |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
146 |
version_SVN |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
147 |
^ '$Id: ClassItemRoot.st 7854 2012-01-30 17:49:41Z vranyj1 $' |
12125 | 148 |
! ! |
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
149 |