author | Claus Gittinger <cg@exept.de> |
Tue, 10 Sep 2002 13:53:27 +0200 | |
changeset 1162 | 4af27057a3ce |
parent 1101 | fd826cb660e6 |
child 1196 | 928f537ddeac |
permissions | -rw-r--r-- |
3 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
85 | 3 |
All Rights Reserved |
3 | 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 |
" |
|
0 | 12 |
|
957 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
0 | 15 |
ClassChange subclass:#ClassCommentChange |
235 | 16 |
instanceVariableNames:'comment' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'System-Changes' |
|
0 | 20 |
! |
21 |
||
9 | 22 |
!ClassCommentChange class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
38 | 27 |
All Rights Reserved |
9 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
1162 | 40 |
instances represent class comment-changes. |
41 |
They are typically held in a ChangeSet. |
|
235 | 42 |
|
43 |
[author:] |
|
44 |
Claus Gittinger |
|
9 | 45 |
" |
46 |
! ! |
|
47 |
||
0 | 48 |
!ClassCommentChange methodsFor:'accessing'! |
49 |
||
654 | 50 |
className:clsName comment:aCommentString |
51 |
className := clsName. |
|
52 |
comment := aCommentString |
|
53 |
||
54 |
"Created: / 16.2.1998 / 14:16:45 / cg" |
|
55 |
! |
|
56 |
||
0 | 57 |
comment |
58 |
^ comment |
|
890 | 59 |
! |
60 |
||
61 |
comment:aCommentString |
|
62 |
comment := aCommentString |
|
63 |
||
64 |
"Created: / 16.2.1998 / 14:16:45 / cg" |
|
0 | 65 |
! ! |
66 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
67 |
!ClassCommentChange methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
68 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
69 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
70 |
"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:
780
diff
changeset
|
71 |
thingy as the receiver (i.e. same method, same definition etc.)." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
72 |
|
786 | 73 |
changeB isClassCommentChange ifFalse:[^ false]. |
798 | 74 |
^ className = changeB className |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
75 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
76 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
77 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
78 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
79 |
sameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
80 |
"return true, if the given change represents the same change as the receiver." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
81 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
82 |
changeB isClassCommentChange ifFalse:[^ false]. |
798 | 83 |
className = changeB className ifFalse:[^ false]. |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
84 |
^ comment = changeB comment |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
85 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
86 |
|
890 | 87 |
! |
88 |
||
89 |
source |
|
90 |
"synthesize the changes source" |
|
91 |
||
92 |
^ className , ' comment: ' , comment storeString |
|
93 |
||
94 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
95 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
96 |
|
962 | 97 |
!ClassCommentChange methodsFor:'printing & storing'! |
0 | 98 |
|
6 | 99 |
printOn:aStream |
801 | 100 |
"append a user printed representation of the receiver to aStream. |
101 |
The format is suitable for a human - not meant to be read back." |
|
102 |
||
1101 | 103 |
aStream nextPutAll:className; nextPutAll:' comment:' |
779 | 104 |
! |
105 |
||
896 | 106 |
printWithoutClassNameOn:aStream |
779 | 107 |
(className endsWith:' class') ifTrue:[ |
108 |
aStream nextPutAll:'class ' |
|
109 |
]. |
|
780 | 110 |
aStream nextPutAll:'comment:' |
0 | 111 |
! ! |
85 | 112 |
|
776 | 113 |
!ClassCommentChange methodsFor:'queries'! |
114 |
||
115 |
isClassCommentChange |
|
116 |
^ true |
|
117 |
||
118 |
||
119 |
! ! |
|
120 |
||
235 | 121 |
!ClassCommentChange class methodsFor:'documentation'! |
122 |
||
123 |
version |
|
1162 | 124 |
^ '$Header: /cvs/stx/stx/libbasic3/ClassCommentChange.st,v 1.27 2002-09-10 11:53:15 cg Exp $' |
235 | 125 |
! ! |