Composite Refactoring
v1.0

compositeRefactoring.changes
Class UndoInheritChange

java.lang.Object
  |
  +--org.eclipse.jdt.internal.corext.refactoring.base.Change
        |
        +--compositeRefactoring.changes.UndoInheritChange
All Implemented Interfaces:
IChange

public class UndoInheritChange
extends Change
implements IChange

This class represents an IChange for the UNDO of the refactoring InheritRefactoring. This Change should not be called by clients. It is only called by the InheritChange.getUndoChange() method.


Fields inherited from interface org.eclipse.jdt.internal.corext.refactoring.base.IChange
REFACTORING_CHANGE_ABORTED
 
Constructor Summary
UndoInheritChange(Inherit change)
          creates an UndoInheritChange.
 
Method Summary
 Object getModifiedLanguageElement()
          gets the modified language element.
 String getName()
          gets the name of this change.
 IChange getUndoChange()
          gets the undo change.
 void perform(ChangeContext context, IProgressMonitor pm)
          performs the change.
 
Methods inherited from class org.eclipse.jdt.internal.corext.refactoring.base.Change
aboutToPerform, checkIfModifiable, checkIfModifiable, handleException, handleJavaModelException, isActive, isUndoable, performed, setActive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jdt.internal.corext.refactoring.base.IChange
aboutToPerform, isActive, isUndoable, performed, setActive
 

Constructor Detail

UndoInheritChange

public UndoInheritChange(Inherit change)
creates an UndoInheritChange.
Parameters:
change - the Inherit object for core operations.
Method Detail

perform

public void perform(ChangeContext context,
                    IProgressMonitor pm)
             throws JavaModelException,
                    ChangeAbortException
performs the change. When this method is called, the base class of the inherit refactoring does not extend the derived class any longer.
Specified by:
perform in interface IChange
Parameters:
context - the change context in which the change is performed
pm - a progress monitor tracking the changes.

getUndoChange

public IChange getUndoChange()
gets the undo change.
Specified by:
getUndoChange in interface IChange
Returns:
an IChange object representing a new inherit change for base, derived.

getName

public String getName()
gets the name of this change.
Specified by:
getName in interface IChange
Following copied from interface: org.eclipse.jdt.internal.corext.refactoring.base.IChange
Returns:
the change's name.

getModifiedLanguageElement

public Object getModifiedLanguageElement()
gets the modified language element. In this case, the modified language element is the base class which inherits from the derived class.
Specified by:
getModifiedLanguageElement in interface IChange
Returns:
the modified language element.

Composite Refactoring
v1.0