"
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
"{ Package: 'stx:libbasic3' }"
ClassChange subclass:#ClassCommentChange
instanceVariableNames:'comment'
classVariableNames:''
poolDictionaries:''
category:'System-Changes'
!
!ClassCommentChange class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
!
documentation
"
instances represent class comment-changes.
They are typically held in a ChangeSet.
[author:]
Claus Gittinger
"
! !
!ClassCommentChange methodsFor:'accessing'!
className:clsName comment:aCommentString
className := clsName.
comment := aCommentString
"Created: / 16.2.1998 / 14:16:45 / cg"
!
comment
^ comment
!
comment:aCommentString
comment := aCommentString
"Created: / 16.2.1998 / 14:16:45 / cg"
! !
!ClassCommentChange methodsFor:'comparing'!
isForSameAs:changeB
"return true, if the given change represents a change for the same
thingy as the receiver (i.e. same method, same definition etc.)."
changeB isClassCommentChange ifFalse:[^ false].
^ className = changeB className
!
sameAs:changeB
"return true, if the given change represents the same change as the receiver."
changeB isClassCommentChange ifFalse:[^ false].
className = changeB className ifFalse:[^ false].
^ comment = changeB comment
!
source
"synthesize the changes source"
^ self className , ' comment: ' , comment storeString
! !
!ClassCommentChange methodsFor:'printing & storing'!
printOn:aStream
"append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back."
aStream nextPutAll:className; nextPutAll:' comment:'
!
printWithoutClassNameOn:aStream
(className endsWith:' class') ifTrue:[
aStream nextPutAll:'class '
].
aStream nextPutAll:'comment:'
! !
!ClassCommentChange methodsFor:'queries'!
isClassCommentChange
^ true
! !
!ClassCommentChange class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libbasic3/ClassCommentChange.st,v 1.28 2003-01-26 14:05:31 cg Exp $'
! !