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 |
" |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
2626 | 13 |
|
15950 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
2518 | 16 |
AbstractRevisionItem subclass:#SourceRevisionItem |
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
2547 | 20 |
category:'Interface-Browsers-Support' |
2518 | 21 |
! |
22 |
||
2547 | 23 |
!SourceRevisionItem 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 |
! ! |
|
2518 | 56 |
|
57 |
!SourceRevisionItem methodsFor:'accessing'! |
|
58 |
||
59 |
sourceStream |
|
60 |
" |
|
2538 | 61 |
<return: ReadStream> |
62 |
" |
|
63 |
^self parent myClass currentSourceStream readStream |
|
2518 | 64 |
! ! |
65 |
||
66 |
!SourceRevisionItem methodsFor:'protocol'! |
|
67 |
||
68 |
icon |
|
69 |
||
70 |
^#loadedRevision |
|
71 |
||
72 |
! |
|
73 |
||
74 |
revisionString |
|
75 |
"return the value of the instance variable 'revision' (automatically generated)" |
|
76 |
||
77 |
^ revision isNil |
|
78 |
ifTrue: ['no revision'] |
|
2538 | 79 |
ifFalse:['current (based on:',(revision at:#revision),')'] |
80 |
||
81 |
! ! |
|
82 |
||
83 |
!SourceRevisionItem methodsFor:'testing'! |
|
84 |
||
85 |
basedOnActualRevision |
|
86 |
" |
|
87 |
returns if the changes of the class are based on the actual revision of the class |
|
88 |
||
89 |
<return: Boolean> |
|
90 |
" |
|
91 |
revision ifNil:[^true]. |
|
92 |
^parent newestRevision = (revision at:#revision) |
|
93 |
! |
|
94 |
||
95 |
hasSourceStream |
|
96 |
" |
|
97 |
has the receiver a source stream? Used for testing tree items. |
|
98 |
||
99 |
<return: Boolean> |
|
100 |
" |
|
101 |
^true |
|
102 |
||
103 |
||
104 |
! |
|
105 |
||
106 |
isLoadedRevision |
|
107 |
" |
|
108 |
the receiver is always the actual revision of a class, hence isloadedRevision |
|
109 |
must be true. |
|
110 |
||
111 |
<return: Boolean> |
|
112 |
" |
|
113 |
||
114 |
^true |
|
115 |
||
2518 | 116 |
|
2612 | 117 |
! |
118 |
||
119 |
isSourceRevisionItem |
|
120 |
" |
|
121 |
Used for testing tree items. The receiver is a source revision item. |
|
122 |
||
123 |
<return: Boolean> |
|
124 |
" |
|
125 |
||
126 |
^true |
|
127 |
||
2518 | 128 |
! ! |
129 |
||
130 |
!SourceRevisionItem class methodsFor:'documentation'! |
|
131 |
||
132 |
version |
|
12125 | 133 |
^ '$Header: /cvs/stx/stx/libtool/SourceRevisionItem.st,v 1.6 2000/02/18 14:08:16 cg Exp $' |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
134 |
! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
135 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
136 |
version_HG |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
137 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
138 |
^ '$Changeset: <not expanded> $' |
12125 | 139 |
! ! |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
140 |