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.
UndoInheritChange
public UndoInheritChange(Inherit change)
- creates an UndoInheritChange.
- Parameters:
change
- the Inherit object for core operations.
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 performedpm
- 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.