MCRemoval.st
author mawalch
Mon, 08 Aug 2016 20:13:50 +0200
changeset 1010 bac4a6f2690e
parent 672 9f3c116f5ea1
child 1095 87f223484bc3
permissions -rw-r--r--
#OTHER by mawalch Fix ridiculously propagated typo.

"{ Package: 'stx:goodies/monticello' }"

MCPatchOperation subclass:#MCRemoval
	instanceVariableNames:'definition'
	classVariableNames:''
	poolDictionaries:''
	category:'SCM-Monticello-Patching'
!


!MCRemoval class methodsFor:'as yet unclassified'!

of: aDefinition
	^ self new intializeWithDefinition: aDefinition
! !

!MCRemoval methodsFor:'accessing'!

applyTo: anObject
	anObject removeDefinition: definition
!

baseDefinition
	^ definition
!

definition
	^ definition
!

fromSource
	^ definition source
!

sourceString
	^self fromSource asText
		addAttribute: TextEmphasis struckOut;
		addAttribute: TextColor blue;
		yourself
!

summary
	^ definition summary, ' (removed)'
!

summarySuffix
	^ ' (removed)'
!

targetClass
	^ definition actualClass
!

targetDefinition
	^ nil
!

toSource
	^ ''
! !

!MCRemoval methodsFor:'as yet unclassified'!

inverse
	^ MCAddition of: definition
!

isClassPatch
	^definition isClassDefinition
! !

!MCRemoval methodsFor:'initializing'!

intializeWithDefinition: aDefinition
	definition := aDefinition
! !

!MCRemoval methodsFor:'testing'!

isRemoval
	^ true
! !

!MCRemoval class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRemoval.st,v 1.4 2012-09-11 21:26:09 cg Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRemoval.st,v 1.4 2012-09-11 21:26:09 cg Exp $'
!

version_SVN
    ^ '§Id: MCRemoval.st 5 2010-08-29 07:30:29Z vranyj1 §'
! !