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