author | Claus Gittinger <cg@exept.de> |
Wed, 08 May 2019 13:09:58 +0200 | |
changeset 4420 | 737b9f0a0022 |
parent 3452 | 281e887a36c9 |
child 3838 | 474d8ec95b33 |
permissions | -rw-r--r-- |
3452 | 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 |
" |
|
2999 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
14 |
ClassChange subclass:#TraitDefinitionChange |
2999 | 15 |
instanceVariableNames:'baseTrait traitComposition category' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
19 |
! |
|
20 |
||
21 |
!TraitDefinitionChange class methodsFor:'documentation'! |
|
22 |
||
3452 | 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 |
||
2999 | 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 |
!TraitDefinitionChange methodsFor:'accessing'! |
|
47 |
||
48 |
baseTrait |
|
49 |
^ baseTrait |
|
50 |
! |
|
51 |
||
52 |
baseTrait:something |
|
53 |
baseTrait := something. |
|
54 |
! |
|
55 |
||
56 |
category |
|
57 |
^ category |
|
58 |
! |
|
59 |
||
60 |
category:something |
|
61 |
category := something. |
|
62 |
! |
|
63 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
64 |
source |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
65 |
^ String streamContents:[:s | |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
66 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
67 |
nextPutAll: 'Trait named: '; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
68 |
nextPutAll: className; cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
69 |
nextPutAll: ' uses: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
70 |
traitComposition isEmptyOrNil ifTrue:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
71 |
s nextPutAll: '{}'. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
72 |
] ifFalse:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
73 |
s nextPutAll: traitComposition. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
74 |
]. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
75 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
76 |
cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
77 |
nextPutAll: ' category: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
78 |
category asString storeOn:s. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
79 |
] |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
80 |
! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
81 |
|
2999 | 82 |
traitComposition |
83 |
^ traitComposition |
|
84 |
! |
|
85 |
||
86 |
traitComposition:something |
|
87 |
traitComposition := something. |
|
88 |
! ! |
|
89 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
90 |
!TraitDefinitionChange methodsFor:'printing & storing'! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
91 |
|
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
92 |
printOn:aStream |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
93 |
aStream nextPutAll:className; nextPutAll:' {trait definition}' |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
94 |
|
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
95 |
"Modified: / 12-10-2006 / 17:48:28 / cg" |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
96 |
! ! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
97 |
|
2999 | 98 |
!TraitDefinitionChange class methodsFor:'documentation'! |
99 |
||
100 |
version |
|
3452 | 101 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.3 2014-02-05 17:52:06 cg Exp $' |
2999 | 102 |
! |
103 |
||
104 |
version_CVS |
|
3452 | 105 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.3 2014-02-05 17:52:06 cg Exp $' |
2999 | 106 |
! ! |
107 |