Class CopyRefactoring
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.ltk.core.refactoring.Refactoring
-
- org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring
-
- org.eclipse.ltk.core.refactoring.participants.CopyRefactoring
-
- All Implemented Interfaces:
IAdaptable
public class CopyRefactoring extends ProcessorBasedRefactoring
A generic copy refactoring. The actual refactoring is done by the copy processor passed to the constructor.This class is not intended to be subclassed by clients.
- Since:
- 3.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description CopyRefactoring(CopyProcessor processor)
Creates a new copy refactoring with the given copy processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyProcessor
getCopyProcessor()
Returns the copy processor associated with this copy refactoring.RefactoringProcessor
getProcessor()
Return the processor associated with this refactoring.-
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring
checkFinalConditions, checkInitialConditions, createChange, getAdapter, getName, getTextChange, isApplicable, setProcessor, toString
-
Methods inherited from class org.eclipse.ltk.core.refactoring.Refactoring
checkAllConditions, doGetRefactoringTickProvider, getRefactoringTickProvider, getValidationContext, setValidationContext
-
-
-
-
Constructor Detail
-
CopyRefactoring
public CopyRefactoring(CopyProcessor processor)
Creates a new copy refactoring with the given copy processor.- Parameters:
processor
- the copy processor
-
-
Method Detail
-
getCopyProcessor
public CopyProcessor getCopyProcessor()
Returns the copy processor associated with this copy refactoring.- Returns:
- returns the copy processor associated with this copy refactoring
-
getProcessor
public RefactoringProcessor getProcessor()
Description copied from class:ProcessorBasedRefactoring
Return the processor associated with this refactoring. The method must not returnnull
. Implementors can override this method to return the processor to be used by this refactoring. Since 3.4, this method returns the processor passed inProcessorBasedRefactoring(RefactoringProcessor)
or byProcessorBasedRefactoring.setProcessor(RefactoringProcessor)
.- Overrides:
getProcessor
in classProcessorBasedRefactoring
- Returns:
- the processor associated with this refactoring
-
-