MethodCategoryChange.st
author Claus Gittinger <cg@exept.de>
Fri, 20 Jul 2001 14:17:49 +0200
changeset 1052 cc84f5e27bb5
parent 1009 417e1752083f
child 1846 c0f8e12c9611
permissions -rw-r--r--
*** empty log message ***

"
 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' }"

MethodChange subclass:#MethodCategoryChange
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'System-Changes'
!

!MethodCategoryChange 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 method-category changes (as done in the browser). 
    They are typically held in a ChangeSet.

    [author:]
        Claus Gittinger
"
! !

!MethodCategoryChange class methodsFor:'instance creation'!

class:cls selector:sel category:cat 
    ^ self basicNew class:cls selector:sel category:cat


! !

!MethodCategoryChange methodsFor:'accessing'!

class:cls selector:sel category:cat
    className := cls name.
    selector := sel.
    methodCategory := cat

!

className:clsName selector:sel category:cat
    className := clsName.
    selector := sel.
    methodCategory := cat

    "Created: / 16.2.1998 / 14:14:16 / cg"
!

prettyPrintedSource
    ^ '(' , className , ' compiledMethodAt:#' , selector , ')' , Character cr 
          , '    category:' , methodCategory storeString
!

source
    ^ '(' , className , ' compiledMethodAt:#' , selector , ') category:' , methodCategory storeString

! !

!MethodCategoryChange methodsFor:'applying'!

apply
    "apply the change"

    |cls mthd|

    cls := self changeClass.
    mthd := self changeMethod.

    mthd category:methodCategory asSymbol.
    cls addChangeRecordForMethodCategory:mthd category:methodCategory.
! !

!MethodCategoryChange methodsFor:'queries'!

isMethodCategoryChange
    ^ true
! !

!MethodCategoryChange class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.14 2001-07-20 12:17:40 cg Exp $'
! !