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