public class CombinedJvmJdtRenameProcessor extends RenameElementProcessor
JavaRenameProcessor
s and combines their results.
Unfortunately RefactoringProcessor.setRefactoring(org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring)
is
package private. So we have to set the refactoring from the other side. Note that this requires a refactoring
that is aware of that fact, e.g. ChangeCombiningRenameRefactoring
.LOG
Constructor and Description |
---|
CombinedJvmJdtRenameProcessor() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.ltk.core.refactoring.RefactoringStatus |
checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm,
org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm) |
org.eclipse.ltk.core.refactoring.Change |
createChange(org.eclipse.core.runtime.IProgressMonitor pm) |
java.lang.Object[] |
getElements() |
java.lang.String |
getProcessorName() |
protected java.lang.Iterable<org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor> |
getSubProcessors() |
boolean |
initialize(IRenameElementContext renameElementContext) |
boolean |
isApplicable() |
org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] |
loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status,
org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants) |
createRenameElementStrategy, createResourceSet, getElementURIs, getIdentifier, getLanguageName, getNewName, getOriginalName, getRenameArguments, getRenameElementContext, getRenameElementStrategy, getResourceSet, getResourceSetProvider, getStatusProvider, getTargetElement, handleException, isValidTargetFile, setNewName, transferChangeRedirector, validateNewName
public boolean initialize(IRenameElementContext renameElementContext)
initialize
in class RenameElementProcessor
public java.lang.Object[] getElements()
getElements
in class RenameElementProcessor
public java.lang.String getProcessorName()
getProcessorName
in class RenameElementProcessor
protected java.lang.Iterable<org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor> getSubProcessors()
public boolean isApplicable() throws org.eclipse.core.runtime.CoreException
isApplicable
in class RenameElementProcessor
org.eclipse.core.runtime.CoreException
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException
checkInitialConditions
in class RenameElementProcessor
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException
checkFinalConditions
in class RenameElementProcessor
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException
public org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException
createChange
in class RenameElementProcessor
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException
public org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status, org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants) throws org.eclipse.core.runtime.CoreException
loadParticipants
in class RenameElementProcessor
org.eclipse.core.runtime.CoreException