author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 01 Feb 2019 23:46:31 +0000 | |
branch | jv |
changeset 4396 | 5333bef41730 |
parent 3850 | 461c0b054a4f |
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 |
||
3850
461c0b054a4f
Added Bee source writer (both for inidividual classes and for project sources)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
461c0b054a4f
Added Bee source writer (both for inidividual classes and for project sources)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
15 |
|
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
16 |
ClassChange subclass:#TraitDefinitionChange |
2999 | 17 |
instanceVariableNames:'baseTrait traitComposition category' |
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-Changes' |
|
21 |
! |
|
22 |
||
23 |
!TraitDefinitionChange class methodsFor:'documentation'! |
|
24 |
||
3452 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
2999 | 39 |
documentation |
40 |
" |
|
41 |
instances represent trait changes. |
|
42 |
These are not present or supported (currently) in st/x, but may be encountered |
|
43 |
when reading a monticello package containing traits. |
|
44 |
Mostly experimental. |
|
45 |
" |
|
46 |
! ! |
|
47 |
||
48 |
!TraitDefinitionChange methodsFor:'accessing'! |
|
49 |
||
50 |
baseTrait |
|
51 |
^ baseTrait |
|
52 |
! |
|
53 |
||
54 |
baseTrait:something |
|
55 |
baseTrait := something. |
|
56 |
! |
|
57 |
||
58 |
category |
|
59 |
^ category |
|
60 |
! |
|
61 |
||
62 |
category:something |
|
63 |
category := something. |
|
64 |
! |
|
65 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
66 |
source |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
67 |
^ String streamContents:[:s | |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
68 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
69 |
nextPutAll: 'Trait named: '; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
70 |
nextPutAll: className; cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
71 |
nextPutAll: ' uses: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
72 |
traitComposition isEmptyOrNil ifTrue:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
73 |
s nextPutAll: '{}'. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
74 |
] ifFalse:[ |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
75 |
s nextPutAll: traitComposition. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
76 |
]. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
77 |
s |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
78 |
cr; |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
79 |
nextPutAll: ' category: '. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
80 |
category asString storeOn:s. |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
81 |
] |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
82 |
! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
83 |
|
2999 | 84 |
traitComposition |
85 |
^ traitComposition |
|
86 |
! |
|
87 |
||
88 |
traitComposition:something |
|
89 |
traitComposition := something. |
|
90 |
! ! |
|
91 |
||
3177
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
92 |
!TraitDefinitionChange methodsFor:'printing & storing'! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
93 |
|
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
94 |
printOn:aStream |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
95 |
aStream nextPutAll:className; nextPutAll:' {trait definition}' |
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 |
"Modified: / 12-10-2006 / 17:48:28 / cg" |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
98 |
! ! |
194142c6df84
class: TraitDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
99 |
|
2999 | 100 |
!TraitDefinitionChange class methodsFor:'documentation'! |
101 |
||
102 |
version |
|
3452 | 103 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.3 2014-02-05 17:52:06 cg Exp $' |
2999 | 104 |
! |
105 |
||
106 |
version_CVS |
|
3452 | 107 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitDefinitionChange.st,v 1.3 2014-02-05 17:52:06 cg Exp $' |
2999 | 108 |
! ! |
109 |