2874
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 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 |
"{ Package: 'stx:libbasic3' }"
|
|
13 |
|
|
14 |
OtherChange subclass:#InfoChange
|
|
15 |
instanceVariableNames:'data'
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'System-Changes'
|
|
19 |
!
|
|
20 |
|
|
21 |
!InfoChange class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2006 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 |
documentation
|
|
38 |
"
|
|
39 |
InfoChanges represent individual 'info records' written
|
|
40 |
in system changefile, such as 'snapshot was written'
|
|
41 |
'class/package was checked in' etc.
|
|
42 |
|
|
43 |
[author:]
|
|
44 |
Jan Vrany <jan.vrany@fit.cvut.cz>
|
|
45 |
|
|
46 |
[instance variables:]
|
|
47 |
|
|
48 |
[class variables:]
|
|
49 |
|
|
50 |
[see also:]
|
|
51 |
|
|
52 |
"
|
|
53 |
! !
|
|
54 |
|
|
55 |
!InfoChange class methodsFor:'instance creation'!
|
|
56 |
|
|
57 |
type: type data: data timestamp: timestamp
|
|
58 |
|
|
59 |
^self new
|
|
60 |
type: type;
|
|
61 |
data: data;
|
|
62 |
timeStamp: timestamp
|
|
63 |
|
|
64 |
"Created: / 18-05-2012 / 16:59:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!InfoChange methodsFor:'accessing'!
|
|
68 |
|
|
69 |
data
|
|
70 |
^ data
|
|
71 |
!
|
|
72 |
|
|
73 |
data:something
|
|
74 |
data := something.
|
|
75 |
! !
|
|
76 |
|
|
77 |
!InfoChange methodsFor:'applying'!
|
|
78 |
|
|
79 |
apply
|
|
80 |
"Intentionally left blank"
|
|
81 |
|
|
82 |
"Created: / 18-05-2012 / 17:00:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
83 |
! !
|
|
84 |
|
|
85 |
!InfoChange methodsFor:'printing & storing'!
|
|
86 |
|
|
87 |
printOn:aStream
|
|
88 |
|
3180
|
89 |
type = 'snapshot' ifTrue:[
|
|
90 |
aStream nextPutAll:'---- snapshot '; space; nextPutAll: data.
|
|
91 |
timeOfChangeIfKnown notNil ifTrue:[ timeOfChangeIfKnown printOn: aStream ].
|
|
92 |
aStream nextPutAll:' ---- '.
|
2874
|
93 |
^self
|
|
94 |
].
|
3180
|
95 |
type = 'start' ifTrue:[
|
2874
|
96 |
aStream nextPutAll:'System start'.
|
|
97 |
^self
|
|
98 |
].
|
3180
|
99 |
type = 'rake' ifTrue:[
|
2874
|
100 |
aStream nextPutAll:'rake'; space; nextPutAll: data.
|
|
101 |
^self
|
|
102 |
].
|
|
103 |
|
3180
|
104 |
"/ default
|
|
105 |
aStream nextPutAll:'---- '; nextPutAll:type; space; nextPutAll: data.
|
|
106 |
|
2874
|
107 |
"Created: / 18-05-2012 / 17:02:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
108 |
! !
|
|
109 |
|
|
110 |
!InfoChange class methodsFor:'documentation'!
|
|
111 |
|
3180
|
112 |
version
|
|
113 |
^ '$Header: /cvs/stx/stx/libbasic3/InfoChange.st,v 1.2 2013-04-02 19:20:25 cg Exp $'
|
|
114 |
!
|
|
115 |
|
|
116 |
version_CVS
|
|
117 |
^ '$Header: /cvs/stx/stx/libbasic3/InfoChange.st,v 1.2 2013-04-02 19:20:25 cg Exp $'
|
|
118 |
!
|
|
119 |
|
2874
|
120 |
version_SVN
|
|
121 |
^ '§Id:: InfoChange.st 1942 2012-07-27 14:53:23Z vranyj1 §'
|
|
122 |
! !
|
3180
|
123 |
|