author | Claus Gittinger <cg@exept.de> |
Thu, 15 Jul 1999 21:47:01 +0200 | |
changeset 801 | b84b61eaa2f6 |
parent 798 | 999fff0aa0d0 |
child 890 | f1ab9db8757f |
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 |
|
13 |
ClassChange subclass:#ClassCommentChange |
|
235 | 14 |
instanceVariableNames:'comment' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'System-Changes' |
|
0 | 18 |
! |
19 |
||
9 | 20 |
!ClassCommentChange class methodsFor:'documentation'! |
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
38 | 25 |
All Rights Reserved |
9 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
45 | 38 |
instances represent class comment-changes. They are typically |
39 |
held in a ChangeSet. |
|
235 | 40 |
|
41 |
[author:] |
|
42 |
Claus Gittinger |
|
9 | 43 |
" |
44 |
! ! |
|
45 |
||
0 | 46 |
!ClassCommentChange methodsFor:'accessing'! |
47 |
||
654 | 48 |
className:clsName comment:aCommentString |
49 |
className := clsName. |
|
50 |
comment := aCommentString |
|
51 |
||
52 |
"Created: / 16.2.1998 / 14:16:45 / cg" |
|
53 |
! |
|
54 |
||
0 | 55 |
comment |
56 |
^ comment |
|
57 |
! ! |
|
58 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
59 |
!ClassCommentChange methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
60 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
61 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
62 |
"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
|
63 |
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
|
64 |
|
786 | 65 |
changeB isClassCommentChange ifFalse:[^ false]. |
798 | 66 |
^ className = changeB className |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
67 |
|
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 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
70 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
71 |
sameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
72 |
"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
|
73 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
74 |
changeB isClassCommentChange ifFalse:[^ false]. |
798 | 75 |
className = changeB className ifFalse:[^ false]. |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
76 |
^ comment = changeB comment |
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 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
780
diff
changeset
|
80 |
|
0 | 81 |
!ClassCommentChange methodsFor:'printing'! |
82 |
||
6 | 83 |
printOn:aStream |
801 | 84 |
"append a user printed representation of the receiver to aStream. |
85 |
The format is suitable for a human - not meant to be read back." |
|
86 |
||
774 | 87 |
aStream nextPutAll:className; |
88 |
nextPutAll:' comment:' |
|
779 | 89 |
! |
90 |
||
91 |
printWithoutClassOn:aStream |
|
92 |
(className endsWith:' class') ifTrue:[ |
|
93 |
aStream nextPutAll:'class ' |
|
94 |
]. |
|
780 | 95 |
aStream nextPutAll:'comment:' |
0 | 96 |
! ! |
85 | 97 |
|
776 | 98 |
!ClassCommentChange methodsFor:'queries'! |
99 |
||
100 |
isClassCommentChange |
|
101 |
^ true |
|
102 |
||
103 |
||
104 |
! ! |
|
105 |
||
235 | 106 |
!ClassCommentChange class methodsFor:'documentation'! |
107 |
||
108 |
version |
|
801 | 109 |
^ '$Header: /cvs/stx/stx/libbasic3/ClassCommentChange.st,v 1.21 1999-07-15 19:46:54 cg Exp $' |
235 | 110 |
! ! |