3451
|
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 |
"
|
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 |
|
3451
|
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 |
|
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
|
3451
|
87 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.2 2014-02-05 17:52:04 cg Exp $'
|
3178
|
88 |
!
|
|
89 |
|
|
90 |
version_CVS
|
3451
|
91 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.2 2014-02-05 17:52:04 cg Exp $'
|
3178
|
92 |
! !
|
|
93 |
|