author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 29 Aug 2013 12:20:29 +0100 | |
branch | jv |
changeset 13468 | 444ac2aa4fd6 |
parent 12650 | e0f607754b9a |
child 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 |
|
2519 | 14 |
AbstractRevisionItem subclass:#VersionRevisionItem |
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
2547 | 18 |
category:'Interface-Browsers-Support' |
2519 | 19 |
! |
20 |
||
2547 | 21 |
!VersionRevisionItem class methodsFor:'documentation'! |
22 |
||
2626 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
||
36 |
||
37 |
! |
|
38 |
||
2547 | 39 |
documentation |
40 |
" |
|
2625 | 41 |
This is not yet finished (work in progress) - do not use. |
2547 | 42 |
|
43 |
[author:] |
|
44 |
Pierre Schwarz (ps@exept.de) |
|
45 |
||
46 |
[see also:] |
|
47 |
||
48 |
[instance variables:] |
|
49 |
||
50 |
[class variables:] |
|
51 |
" |
|
52 |
||
53 |
! ! |
|
2519 | 54 |
|
55 |
!VersionRevisionItem methodsFor:'accessing'! |
|
56 |
||
57 |
revisionString |
|
58 |
"return the value of the instance variable 'revision' (automatically generated)" |
|
59 |
||
60 |
^ revision at:#revision |
|
61 |
||
62 |
||
63 |
||
64 |
! |
|
65 |
||
66 |
sourceStream |
|
67 |
" |
|
68 |
<return: Stream> |
|
69 |
" |
|
70 |
|theClass| |
|
71 |
||
72 |
theClass := self parent myClass. |
|
73 |
^theClass sourceCodeManager getSourceStreamFor:theClass revision:self revisionString |
|
74 |
! ! |
|
75 |
||
76 |
!VersionRevisionItem methodsFor:'protocol'! |
|
77 |
||
78 |
icon |
|
79 |
||
2538 | 80 |
^self isLoadedRevision |
2519 | 81 |
ifTrue: [#loadedRevision] |
2538 | 82 |
ifFalse:[#unloadedRevision]. |
83 |
||
84 |
||
85 |
! ! |
|
86 |
||
87 |
!VersionRevisionItem methodsFor:'testing'! |
|
88 |
||
89 |
hasSourceStream |
|
90 |
" |
|
91 |
has the receiver a source stream? Used for testing tree items. |
|
92 |
||
93 |
<return: Boolean> |
|
94 |
" |
|
95 |
^true |
|
96 |
||
97 |
||
98 |
||
99 |
! |
|
100 |
||
101 |
isLoadedRevision |
|
102 |
" |
|
103 |
the receiver represents the actual revision of a class, when the revision string fits |
|
104 |
and the class is not changed. In that case a current version of the class exisits. |
|
105 |
||
106 |
<return: Boolean> |
|
107 |
" |
|
108 |
^((self parent myClass revision = self revisionString) and:[self parent isMyClassChanged not]) |
|
2519 | 109 |
|
110 |
||
111 |
! ! |
|
112 |
||
113 |
!VersionRevisionItem class methodsFor:'documentation'! |
|
114 |
||
115 |
version |
|
12125 | 116 |
^ '$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
|
117 |
! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
118 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
119 |
version_HG |
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 |
^ '$Changeset: <not expanded> $' |
12125 | 122 |
! ! |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
123 |