ClassCommentChange.st
author Claus Gittinger <cg@exept.de>
Tue, 06 Jul 1999 12:51:30 +0200
changeset 786 be86669ca62e
parent 784 1e50cc7fd07d
child 798 999fff0aa0d0
permissions -rw-r--r--
checkin from browser

"
 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.
"

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
! !

!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.)."

    "/ I am a methodChange - B must be as well.
    changeB isClassCommentChange ifFalse:[^ false].   

    ^ comment = changeB comment


!

sameAs:changeB
    "return true, if the given change represents the same change as the receiver."

    changeB isClassCommentChange ifFalse:[^ false].
    ^ comment = changeB comment 


! !

!ClassCommentChange methodsFor:'printing'!

printOn:aStream
    aStream nextPutAll:className;
            nextPutAll:' comment:'
!

printWithoutClassOn: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.19 1999-07-06 10:51:30 cg Exp $'
! !