public class DefaultRenameElementHandler extends org.eclipse.core.commands.AbstractHandler implements IRenameElementHandler
Modifier and Type | Field and Description |
---|---|
protected IGlobalServiceProvider |
globalServiceProvider |
protected static org.apache.log4j.Logger |
LOG |
protected RefactoringPreferences |
preferences |
protected IRenameContextFactory |
renameContextFactory |
protected RenameRefactoringController |
renameRefactoringController |
protected SyncUtil |
syncUtil |
Constructor and Description |
---|
DefaultRenameElementHandler() |
Modifier and Type | Method and Description |
---|---|
IRenameElementContext |
createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement,
XtextEditor triggeringEditor,
org.eclipse.jface.text.ITextSelection selection,
XtextResource triggeringResource)
To maintain binary compatibility only.
|
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event) |
protected boolean |
isRefactoringEnabled(IRenameElementContext renameElementContext,
XtextResource resource) |
protected void |
startRenameElement(IRenameElementContext renameElementContext) |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
@Inject protected RenameRefactoringController renameRefactoringController
@Inject protected IGlobalServiceProvider globalServiceProvider
@Inject protected RefactoringPreferences preferences
@Inject protected IRenameContextFactory renameContextFactory
@Inject protected SyncUtil syncUtil
protected static final org.apache.log4j.Logger LOG
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
execute
in interface org.eclipse.core.commands.IHandler
org.eclipse.core.commands.ExecutionException
public IRenameElementContext createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement, XtextEditor triggeringEditor, org.eclipse.jface.text.ITextSelection selection, XtextResource triggeringResource)
createRenameElementContext
in interface IRenameElementHandler
protected boolean isRefactoringEnabled(IRenameElementContext renameElementContext, XtextResource resource)
protected void startRenameElement(IRenameElementContext renameElementContext) throws java.lang.InterruptedException
java.lang.InterruptedException