author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 04 Feb 2014 21:01:56 +0100 | |
branch | jv |
changeset 3435 | d15ba356cc58 |
parent 3178 | 422736174443 |
child 3838 | 474d8ec95b33 |
permissions | -rw-r--r-- |
3435
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
1 |
" |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
3 |
All Rights Reserved |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
4 |
|
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
5 |
This software is furnished under a license and may be used |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
10 |
hereby transferred. |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
11 |
" |
3178 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
14 |
ClassChange subclass:#TraitClassTraitDefinitionChange |
|
15 |
instanceVariableNames:'baseTrait traitComposition' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
19 |
! |
|
20 |
||
21 |
!TraitClassTraitDefinitionChange class methodsFor:'documentation'! |
|
22 |
||
3435
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
23 |
copyright |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
24 |
" |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
26 |
All Rights Reserved |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
27 |
|
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
28 |
This software is furnished under a license and may be used |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
29 |
only in accordance with the terms of that license and with the |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
30 |
inclusion of the above copyright notice. This software may not |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
31 |
be provided or otherwise made available to, or used by, any |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
32 |
other person. No title to or ownership of the software is |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
33 |
hereby transferred. |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
34 |
" |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
35 |
! |
d15ba356cc58
ChangeSet read/write refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3178
diff
changeset
|
36 |
|
3178 | 37 |
documentation |
38 |
" |
|
39 |
instances represent trait changes. |
|
40 |
These are not present or supported (currently) in st/x, but may be encountered |
|
41 |
when reading a monticello package containing traits. |
|
42 |
Mostly experimental. |
|
43 |
" |
|
44 |
! ! |
|
45 |
||
46 |
!TraitClassTraitDefinitionChange methodsFor:'accessing'! |
|
47 |
||
48 |
baseTrait |
|
49 |
^ baseTrait |
|
50 |
! |
|
51 |
||
52 |
baseTrait:something |
|
53 |
baseTrait := something. |
|
54 |
! |
|
55 |
||
56 |
source |
|
57 |
^ String streamContents:[:s | |
|
58 |
s |
|
59 |
nextPutAll: baseTrait; |
|
60 |
nextPutAll: ' classTrait '; cr; |
|
61 |
nextPutAll: ' uses: '. |
|
62 |
traitComposition isEmptyOrNil ifTrue:[ |
|
63 |
s nextPutAll: '{}'. |
|
64 |
] ifFalse:[ |
|
65 |
s nextPutAll: traitComposition. |
|
66 |
]. |
|
67 |
] |
|
68 |
! |
|
69 |
||
70 |
traitComposition |
|
71 |
^ traitComposition |
|
72 |
! |
|
73 |
||
74 |
traitComposition:something |
|
75 |
traitComposition := something. |
|
76 |
! ! |
|
77 |
||
78 |
!TraitClassTraitDefinitionChange methodsFor:'printing & storing'! |
|
79 |
||
80 |
printOn:aStream |
|
81 |
aStream nextPutAll:baseTrait; nextPutAll:' {class trait definition}' |
|
82 |
! ! |
|
83 |
||
84 |
!TraitClassTraitDefinitionChange class methodsFor:'documentation'! |
|
85 |
||
86 |
version |
|
87 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.1 2013-04-02 19:18:58 cg Exp $' |
|
88 |
! |
|
89 |
||
90 |
version_CVS |
|
91 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.1 2013-04-02 19:18:58 cg Exp $' |
|
92 |
! ! |
|
93 |