author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 19 Jul 2017 09:42:32 +0200 | |
branch | jv |
changeset 17619 | edb119820fcb |
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 |
||
2537 | 16 |
AbstractVersionDiffBrowserItem subclass:#AbstractRevisionItem |
17 |
instanceVariableNames:'revision' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
2547 | 20 |
category:'Interface-Browsers-Support' |
2537 | 21 |
! |
22 |
||
2547 | 23 |
!AbstractRevisionItem 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 |
! ! |
|
2537 | 55 |
|
56 |
!AbstractRevisionItem class methodsFor:'instance creation'! |
|
57 |
||
58 |
newForRevision:aRevision |
|
59 |
||
60 |
|theRevision| |
|
61 |
||
62 |
theRevision := self new. |
|
63 |
theRevision revision:aRevision. |
|
64 |
^theRevision |
|
65 |
! ! |
|
66 |
||
67 |
!AbstractRevisionItem methodsFor:'accessing'! |
|
68 |
||
69 |
myClass |
|
70 |
||
71 |
^self parent myClass |
|
72 |
! |
|
73 |
||
74 |
revision |
|
75 |
"return the value of the instance variable 'revision' (automatically generated)" |
|
76 |
||
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
77 |
^ revision |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
78 |
! |
2537 | 79 |
|
80 |
revision:something |
|
81 |
"set the value of the instance variable 'revision' (automatically generated)" |
|
82 |
||
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
83 |
revision := something. |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
84 |
! |
2537 | 85 |
|
86 |
revisionString |
|
87 |
"return the value of the instance variable 'revision' (automatically generated)" |
|
88 |
||
89 |
self subclassResponsibility |
|
90 |
||
91 |
! ! |
|
92 |
||
93 |
!AbstractRevisionItem methodsFor:'protocol'! |
|
94 |
||
95 |
icon |
|
96 |
" |
|
97 |
define concrete icons for revision items in subclasses |
|
98 |
||
99 |
<return: self> |
|
100 |
" |
|
101 |
self subclassResponsibility |
|
102 |
! |
|
103 |
||
104 |
label |
|
105 |
" |
|
106 |
label is the revision string |
|
107 |
||
108 |
<return: String> |
|
109 |
" |
|
110 |
||
111 |
^self revisionString |
|
112 |
||
113 |
||
114 |
! ! |
|
115 |
||
116 |
!AbstractRevisionItem methodsFor:'testing'! |
|
117 |
||
118 |
hasSourceStream |
|
119 |
" |
|
120 |
has the receiver a source stream? Used for testing tree items. |
|
121 |
||
122 |
<return: Boolean> |
|
123 |
" |
|
124 |
^false |
|
125 |
||
126 |
! |
|
127 |
||
128 |
isLoadedRevision |
|
129 |
" |
|
130 |
do the receiver represents the actual revision of a class. |
|
131 |
||
132 |
<return: Boolean> |
|
133 |
" |
|
134 |
^false |
|
135 |
||
136 |
||
137 |
||
138 |
! |
|
139 |
||
140 |
isRevisionItem |
|
141 |
" |
|
142 |
the receiver is a revision item. Used for testing tree items. |
|
143 |
||
144 |
<return: Boolean> |
|
145 |
" |
|
146 |
^true |
|
147 |
||
148 |
! ! |
|
149 |
||
150 |
!AbstractRevisionItem class methodsFor:'documentation'! |
|
151 |
||
152 |
version |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
153 |
^ '$Id: AbstractRevisionItem.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
|
154 |
! |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
155 |
|
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
156 |
version_HG |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
157 |
|
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
158 |
^ '$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
|
159 |
! |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
160 |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
161 |
version_SVN |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
162 |
^ '$Id: AbstractRevisionItem.st 7854 2012-01-30 17:49:41Z vranyj1 $' |
12125 | 163 |
! ! |
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12128
diff
changeset
|
164 |