public class RenameElementProcessor extends AbstractRenameProcessor
RefactoringProcessor for an Xtext element rename
refactoring.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
RenameElementProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.ltk.core.refactoring.RefactoringStatus |
checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor monitor,
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 monitor) |
protected IRenameStrategy |
createRenameElementStrategy(org.eclipse.emf.ecore.EObject targetElement,
IRenameElementContext renameElementContext) |
protected org.eclipse.emf.ecore.resource.ResourceSet |
createResourceSet(IRenameElementContext renameElementContext) |
Object[] |
getElements() |
protected Iterable<org.eclipse.emf.common.util.URI> |
getElementURIs() |
String |
getIdentifier() |
protected String |
getLanguageName() |
String |
getNewName() |
String |
getOriginalName() |
String |
getProcessorName() |
protected ElementRenameArguments |
getRenameArguments() |
IRenameElementContext |
getRenameElementContext() |
IRenameStrategy |
getRenameElementStrategy() |
protected org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet(IRenameElementContext renameElementContext) |
protected RefactoringResourceSetProvider |
getResourceSetProvider() |
com.google.inject.Provider<StatusWrapper> |
getStatusProvider() |
protected org.eclipse.emf.ecore.EObject |
getTargetElement() |
protected void |
handleException(Exception exc,
StatusWrapper status) |
boolean |
initialize(IRenameElementContext renameElementContext) |
boolean |
isApplicable() |
protected boolean |
isValidTargetFile(org.eclipse.emf.ecore.resource.Resource resource,
StatusWrapper status) |
org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] |
loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status,
org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants) |
void |
setNewName(String newName) |
protected void |
transferChangeRedirector(IRefactoringUpdateAcceptor currentUpdateAcceptor2) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
validateNewName(String newName) |
public boolean initialize(IRenameElementContext renameElementContext)
initialize in class AbstractRenameProcessorprotected org.eclipse.emf.ecore.resource.ResourceSet getResourceSet(IRenameElementContext renameElementContext)
protected org.eclipse.emf.ecore.resource.ResourceSet createResourceSet(IRenameElementContext renameElementContext)
protected boolean isValidTargetFile(org.eclipse.emf.ecore.resource.Resource resource,
StatusWrapper status)
protected IRenameStrategy createRenameElementStrategy(org.eclipse.emf.ecore.EObject targetElement, IRenameElementContext renameElementContext) throws IRenameStrategy.Provider.NoSuchStrategyException
public IRenameStrategy getRenameElementStrategy()
public Object[] getElements()
getElements in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessorpublic String getOriginalName()
getOriginalName in class AbstractRenameProcessorpublic org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(String newName)
validateNewName in class AbstractRenameProcessorprotected String getLanguageName()
public String getIdentifier()
getIdentifier in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessorpublic String getProcessorName()
getProcessorName in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessorpublic boolean isApplicable()
throws org.eclipse.core.runtime.CoreException
isApplicable in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessororg.eclipse.core.runtime.CoreExceptionpublic void setNewName(String newName)
setNewName in class AbstractRenameProcessorpublic String getNewName()
getNewName in class AbstractRenameProcessorpublic 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 org.eclipse.ltk.core.refactoring.participants.RefactoringProcessororg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionprotected Iterable<org.eclipse.emf.common.util.URI> getElementURIs()
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
checkFinalConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessororg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionprotected void transferChangeRedirector(IRefactoringUpdateAcceptor currentUpdateAcceptor2)
public org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
createChange in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessororg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionpublic 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 org.eclipse.ltk.core.refactoring.participants.RefactoringProcessororg.eclipse.core.runtime.CoreExceptionprotected void handleException(Exception exc, StatusWrapper status)
public IRenameElementContext getRenameElementContext()
protected RefactoringResourceSetProvider getResourceSetProvider()
protected ElementRenameArguments getRenameArguments()
protected org.eclipse.emf.ecore.EObject getTargetElement()
public com.google.inject.Provider<StatusWrapper> getStatusProvider()
Copyright © 2016. All Rights Reserved.