InfoChange.st
author Patrik Svestka <patrik.svestka@gmail.com>
Wed, 17 Feb 2021 15:24:09 +0100
branchjv
changeset 4568 524471ef6575
parent 4384 e28fcaaf93c7
permissions -rw-r--r--
Changing the encoding style header for fileOutAs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4384
e28fcaaf93c7 Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 3219
diff changeset
     1
"{ Encoding: utf8 }"
e28fcaaf93c7 Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 3219
diff changeset
     2
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     3
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     4
 COPYRIGHT (c) 2006 by eXept Software AG
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     5
              All Rights Reserved
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     6
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     7
 This software is furnished under a license and may be used
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
76f493ddadfe initial checkin
vrany
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    12
 hereby transferred.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    13
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    14
"{ Package: 'stx:libbasic3' }"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    15
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    16
OtherChange subclass:#InfoChange
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    17
	instanceVariableNames:'data'
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    18
	classVariableNames:''
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    19
	poolDictionaries:''
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    20
	category:'System-Changes'
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    21
!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    22
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    23
!InfoChange class methodsFor:'documentation'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    24
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    25
copyright
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    26
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    28
              All Rights Reserved
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    29
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    30
 This software is furnished under a license and may be used
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    35
 hereby transferred.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    36
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    37
!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    38
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    39
documentation
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    40
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    41
    InfoChanges represent individual 'info records' written
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    42
    in system changefile, such as 'snapshot was written'
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    43
    'class/package was checked in' etc.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    44
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    45
    [author:]
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    46
        Jan Vrany <jan.vrany@fit.cvut.cz>
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    47
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    48
    [instance variables:]
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    49
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    50
    [class variables:]
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    51
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    52
    [see also:]
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    53
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    54
"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    55
! !
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    56
3158
f8c56a311307 Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3128 2874
diff changeset
    57
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    58
!InfoChange class methodsFor:'instance creation'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    59
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    60
type: type data: data timestamp: timestamp
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    61
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    62
    ^self new
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    63
        type: type;
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    64
        data: data; 
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    65
        timeStamp: timestamp
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    66
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    67
    "Created: / 18-05-2012 / 16:59:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    68
! !
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    69
3158
f8c56a311307 Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3128 2874
diff changeset
    70
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    71
!InfoChange methodsFor:'accessing'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    72
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    73
data
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    74
    ^ data
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    75
!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    76
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    77
data:something
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    78
    data := something.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    79
! !
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    80
3158
f8c56a311307 Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3128 2874
diff changeset
    81
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    82
!InfoChange methodsFor:'applying'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    83
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    84
apply
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    85
    "Intentionally left blank"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    86
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    87
    "Created: / 18-05-2012 / 17:00:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    88
! !
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    89
3158
f8c56a311307 Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3128 2874
diff changeset
    90
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    91
!InfoChange methodsFor:'printing & storing'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    92
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    93
printOn:aStream
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    94
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
    95
    type = 'snapshot' ifTrue:[
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
    96
        aStream nextPutAll:'---- snapshot '; space; nextPutAll: data.
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
    97
        timeOfChangeIfKnown notNil ifTrue:[ timeOfChangeIfKnown printOn: aStream ].
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
    98
        aStream nextPutAll:' ---- '.
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
    99
        ^self
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   100
    ].
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   101
    type = 'start' ifTrue:[
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   102
        aStream nextPutAll:'System start'.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   103
        ^self
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   104
    ].
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   105
    type = 'rake' ifTrue:[
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   106
        aStream nextPutAll:'rake'; space; nextPutAll: data.
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   107
        ^self
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   108
    ].
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   109
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   110
    "/ default
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   111
    aStream nextPutAll:'---- '; nextPutAll:type; space; nextPutAll: data.
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   112
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   113
    "Created: / 18-05-2012 / 17:02:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   114
! !
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   115
3158
f8c56a311307 Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3128 2874
diff changeset
   116
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   117
!InfoChange class methodsFor:'documentation'!
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   118
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   119
version
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   120
    ^ '$Header: /cvs/stx/stx/libbasic3/InfoChange.st,v 1.2 2013-04-02 19:20:25 cg Exp $'
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   121
!
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   122
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   123
version_CVS
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   124
    ^ '$Header: /cvs/stx/stx/libbasic3/InfoChange.st,v 1.2 2013-04-02 19:20:25 cg Exp $'
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   125
!
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   126
3121
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3069
diff changeset
   127
version_HG
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3069
diff changeset
   128
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3069
diff changeset
   129
    ^ '$Changeset: <not expanded> $'
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3069
diff changeset
   130
!
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3069
diff changeset
   131
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   132
version_SVN
4384
e28fcaaf93c7 Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 3219
diff changeset
   133
    ^ '§Id:: InfoChange.st 1942 2012-07-27 14:53:23Z vranyj1                                                                        §'
2874
76f493ddadfe initial checkin
vrany
parents:
diff changeset
   134
! !
3180
1ac4e00d8e01 defined source container
Claus Gittinger <cg@exept.de>
parents: 2874
diff changeset
   135