author | Claus Gittinger <cg@exept.de> |
Fri, 25 May 2018 16:14:36 +0200 | |
changeset 4326 | 8d1d982eb90b |
parent 3498 | f5595e17fca9 |
child 3838 | 474d8ec95b33 |
permissions | -rw-r--r-- |
101 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
" |
|
957 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
783 | 14 |
ClassPrimitiveChange subclass:#ClassPrimitiveDefinitionsChange |
235 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
101 | 19 |
! |
20 |
||
21 |
!ClassPrimitiveDefinitionsChange class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
||
37 |
documentation |
|
38 |
" |
|
39 |
instances represent a classes primitive definition-changes. |
|
40 |
They are typically held in a ChangeSet. |
|
235 | 41 |
|
42 |
[author:] |
|
43 |
Claus Gittinger |
|
101 | 44 |
" |
45 |
! ! |
|
46 |
||
2356 | 47 |
!ClassPrimitiveDefinitionsChange methodsFor:'applying'! |
48 |
||
2373 | 49 |
privateApply |
2356 | 50 |
"apply the change" |
51 |
||
2373 | 52 |
self changeClass primitiveDefinitions:(self source) |
2356 | 53 |
|
2373 | 54 |
"Created: / 28-06-2011 / 22:59:17 / cg" |
2356 | 55 |
! ! |
56 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
57 |
!ClassPrimitiveDefinitionsChange methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
58 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
59 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
60 |
"return true, if the given change represents a change for the same |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
61 |
thingy as the receiver (i.e. same method, same definition etc.)." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
62 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
63 |
changeB isPrimitiveDefinitionsChange ifFalse:[^ false]. |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
64 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
65 |
^ className = changeB className |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
66 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
67 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
68 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
69 |
|
962 | 70 |
!ClassPrimitiveDefinitionsChange methodsFor:'printing & storing'! |
103
487c1447b3d8
printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
71 |
|
487c1447b3d8
printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
72 |
printOn:aStream |
801 | 73 |
"append a user printed representation of the receiver to aStream. |
74 |
The format is suitable for a human - not meant to be read back." |
|
75 |
||
103
487c1447b3d8
printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
76 |
aStream nextPutAll:className; nextPutAll:' primitiveDefinitions:' |
487c1447b3d8
printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
77 |
! ! |
487c1447b3d8
printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
78 |
|
3498
f5595e17fca9
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
2373
diff
changeset
|
79 |
!ClassPrimitiveDefinitionsChange methodsFor:'testing'! |
783 | 80 |
|
81 |
isPrimitiveDefinitionsChange |
|
82 |
^ true |
|
83 |
||
84 |
||
85 |
! ! |
|
86 |
||
101 | 87 |
!ClassPrimitiveDefinitionsChange class methodsFor:'documentation'! |
88 |
||
89 |
version |
|
3498
f5595e17fca9
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
2373
diff
changeset
|
90 |
^ '$Header: /cvs/stx/stx/libbasic3/ClassPrimitiveDefinitionsChange.st,v 1.12 2014-02-19 13:05:29 cg Exp $' |
2356 | 91 |
! |
92 |
||
93 |
version_CVS |
|
3498
f5595e17fca9
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
2373
diff
changeset
|
94 |
^ '$Header: /cvs/stx/stx/libbasic3/ClassPrimitiveDefinitionsChange.st,v 1.12 2014-02-19 13:05:29 cg Exp $' |
101 | 95 |
! ! |
3498
f5595e17fca9
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
2373
diff
changeset
|
96 |