author | Claus Gittinger <cg@exept.de> |
Tue, 02 Apr 2013 21:18:40 +0200 | |
changeset 3177 | 194142c6df84 |
parent 2999 | 9bae264a5296 |
child 3435 | d15ba356cc58 |
child 3452 | 281e887a36c9 |
permissions | -rw-r--r-- |
2999 | 1 |
"{ Package: 'stx:libbasic3' }" |
2 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
3 |
ClassChange subclass:#TraitDefinitionChange |
2999 | 4 |
instanceVariableNames:'baseTrait traitComposition category' |
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'System-Changes' |
|
8 |
! |
|
9 |
||
10 |
!TraitDefinitionChange class methodsFor:'documentation'! |
|
11 |
||
12 |
documentation |
|
13 |
" |
|
14 |
instances represent trait changes. |
|
15 |
These are not present or supported (currently) in st/x, but may be encountered |
|
16 |
when reading a monticello package containing traits. |
|
17 |
Mostly experimental. |
|
18 |
" |
|
19 |
! ! |
|
20 |
||
21 |
!TraitDefinitionChange methodsFor:'accessing'! |
|
22 |
||
23 |
baseTrait |
|
24 |
^ baseTrait |
|
25 |
! |
|
26 |
||
27 |
baseTrait:something |
|
28 |
baseTrait := something. |
|
29 |
! |
|
30 |
||
31 |
category |
|
32 |
^ category |
|
33 |
! |
|
34 |
||
35 |
category:something |
|
36 |
category := something. |
|
37 |
! |
|
38 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
39 |
source |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
40 |
^ String streamContents:[:s | |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
41 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
42 |
nextPutAll: 'Trait named: '; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
43 |
nextPutAll: className; cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
44 |
nextPutAll: ' uses: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
45 |
traitComposition isEmptyOrNil ifTrue:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
46 |
s nextPutAll: '{}'. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
47 |
] ifFalse:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
48 |
s nextPutAll: traitComposition. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
49 |
]. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
50 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
51 |
cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
52 |
nextPutAll: ' category: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
53 |
category asString storeOn:s. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
54 |
] |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
55 |
! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
56 |
|
2999 | 57 |
traitComposition |
58 |
^ traitComposition |
|
59 |
! |
|
60 |
||
61 |
traitComposition:something |
|
62 |
traitComposition := something. |
|
63 |
! ! |
|
64 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
65 |
!TraitDefinitionChange methodsFor:'printing & storing'! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
66 |
|
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
67 |
printOn:aStream |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
68 |
aStream nextPutAll:className; nextPutAll:' {trait definition}' |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
69 |
|
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
70 |
"Modified: / 12-10-2006 / 17:48:28 / cg" |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
71 |
! ! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
72 |
|
2999 | 73 |
!TraitDefinitionChange class methodsFor:'documentation'! |
74 |
||
75 |
version |
|
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
76 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.2 2013-04-02 19:18:40 cg Exp $' |
2999 | 77 |
! |
78 |
||
79 |
version_CVS |
|
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
80 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.2 2013-04-02 19:18:40 cg Exp $' |
2999 | 81 |
! ! |
82 |