2518
|
1 |
AbstractRevisionItem subclass:#SourceRevisionItem
|
|
2 |
instanceVariableNames:''
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
2547
|
5 |
category:'Interface-Browsers-Support'
|
2518
|
6 |
!
|
|
7 |
|
2547
|
8 |
!SourceRevisionItem class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
2625
|
12 |
This is not yet finished (work in progress) - do not use.
|
2547
|
13 |
|
|
14 |
[author:]
|
|
15 |
Pierre Schwarz (ps@exept.de)
|
|
16 |
|
|
17 |
[see also:]
|
|
18 |
|
|
19 |
[instance variables:]
|
|
20 |
|
|
21 |
[class variables:]
|
|
22 |
"
|
|
23 |
|
|
24 |
! !
|
2518
|
25 |
|
|
26 |
!SourceRevisionItem methodsFor:'accessing'!
|
|
27 |
|
|
28 |
sourceStream
|
|
29 |
"
|
2538
|
30 |
<return: ReadStream>
|
|
31 |
"
|
|
32 |
^self parent myClass currentSourceStream readStream
|
2518
|
33 |
! !
|
|
34 |
|
|
35 |
!SourceRevisionItem methodsFor:'protocol'!
|
|
36 |
|
|
37 |
icon
|
|
38 |
|
|
39 |
^#loadedRevision
|
|
40 |
|
|
41 |
!
|
|
42 |
|
|
43 |
revisionString
|
|
44 |
"return the value of the instance variable 'revision' (automatically generated)"
|
|
45 |
|
|
46 |
^ revision isNil
|
|
47 |
ifTrue: ['no revision']
|
2538
|
48 |
ifFalse:['current (based on:',(revision at:#revision),')']
|
|
49 |
|
|
50 |
! !
|
|
51 |
|
|
52 |
!SourceRevisionItem methodsFor:'testing'!
|
|
53 |
|
|
54 |
basedOnActualRevision
|
|
55 |
"
|
|
56 |
returns if the changes of the class are based on the actual revision of the class
|
|
57 |
|
|
58 |
<return: Boolean>
|
|
59 |
"
|
|
60 |
revision ifNil:[^true].
|
|
61 |
^parent newestRevision = (revision at:#revision)
|
|
62 |
!
|
|
63 |
|
|
64 |
hasSourceStream
|
|
65 |
"
|
|
66 |
has the receiver a source stream? Used for testing tree items.
|
|
67 |
|
|
68 |
<return: Boolean>
|
|
69 |
"
|
|
70 |
^true
|
|
71 |
|
|
72 |
|
|
73 |
!
|
|
74 |
|
|
75 |
isLoadedRevision
|
|
76 |
"
|
|
77 |
the receiver is always the actual revision of a class, hence isloadedRevision
|
|
78 |
must be true.
|
|
79 |
|
|
80 |
<return: Boolean>
|
|
81 |
"
|
|
82 |
|
|
83 |
^true
|
|
84 |
|
2518
|
85 |
|
2612
|
86 |
!
|
|
87 |
|
|
88 |
isSourceRevisionItem
|
|
89 |
"
|
|
90 |
Used for testing tree items. The receiver is a source revision item.
|
|
91 |
|
|
92 |
<return: Boolean>
|
|
93 |
"
|
|
94 |
|
|
95 |
^true
|
|
96 |
|
2518
|
97 |
! !
|
|
98 |
|
|
99 |
!SourceRevisionItem class methodsFor:'documentation'!
|
|
100 |
|
|
101 |
version
|
2625
|
102 |
^ '$Header: /cvs/stx/stx/libtool/SourceRevisionItem.st,v 1.5 2000-02-18 14:00:39 cg Exp $'
|
2518
|
103 |
! !
|