author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 09 Feb 2017 09:56:47 +0000 | |
branch | jv |
changeset 17459 | 9f54cb54204c |
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 |
||
2519 | 16 |
AbstractRevisionItem subclass:#VersionRevisionItem |
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
2547 | 20 |
category:'Interface-Browsers-Support' |
2519 | 21 |
! |
22 |
||
2547 | 23 |
!VersionRevisionItem 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 |
! ! |
|
2519 | 56 |
|
57 |
!VersionRevisionItem methodsFor:'accessing'! |
|
58 |
||
59 |
revisionString |
|
60 |
"return the value of the instance variable 'revision' (automatically generated)" |
|
61 |
||
62 |
^ revision at:#revision |
|
63 |
||
64 |
||
65 |
||
66 |
! |
|
67 |
||
68 |
sourceStream |
|
69 |
" |
|
70 |
<return: Stream> |
|
71 |
" |
|
72 |
|theClass| |
|
73 |
||
74 |
theClass := self parent myClass. |
|
75 |
^theClass sourceCodeManager getSourceStreamFor:theClass revision:self revisionString |
|
76 |
! ! |
|
77 |
||
78 |
!VersionRevisionItem methodsFor:'protocol'! |
|
79 |
||
80 |
icon |
|
81 |
||
2538 | 82 |
^self isLoadedRevision |
2519 | 83 |
ifTrue: [#loadedRevision] |
2538 | 84 |
ifFalse:[#unloadedRevision]. |
85 |
||
86 |
||
87 |
! ! |
|
88 |
||
89 |
!VersionRevisionItem methodsFor:'testing'! |
|
90 |
||
91 |
hasSourceStream |
|
92 |
" |
|
93 |
has the receiver a source stream? Used for testing tree items. |
|
94 |
||
95 |
<return: Boolean> |
|
96 |
" |
|
97 |
^true |
|
98 |
||
99 |
||
100 |
||
101 |
! |
|
102 |
||
103 |
isLoadedRevision |
|
104 |
" |
|
105 |
the receiver represents the actual revision of a class, when the revision string fits |
|
106 |
and the class is not changed. In that case a current version of the class exisits. |
|
107 |
||
108 |
<return: Boolean> |
|
109 |
" |
|
110 |
^((self parent myClass revision = self revisionString) and:[self parent isMyClassChanged not]) |
|
2519 | 111 |
|
112 |
||
113 |
! ! |
|
114 |
||
115 |
!VersionRevisionItem class methodsFor:'documentation'! |
|
116 |
||
117 |
version |
|
12125 | 118 |
^ '$Header: /cvs/stx/stx/libtool/VersionRevisionItem.st,v 1.6 2000/02/18 14:08:03 cg Exp $' |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
119 |
! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
120 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
121 |
version_HG |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
122 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
123 |
^ '$Changeset: <not expanded> $' |
12125 | 124 |
! ! |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
125 |