org.eclipse.xtext.xbase.ui.jvmmodel.refactoring.jdt
Class JvmRenameElementHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by org.eclipse.xtext.ui.refactoring.ui.RenameElementHandler
              extended by org.eclipse.xtext.xbase.ui.jvmmodel.refactoring.jdt.JvmRenameElementHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
Direct Known Subclasses:
Xtend2RenameElementHandler

public class JvmRenameElementHandler
extends RenameElementHandler

Author:
Jan Koehnlein - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.xtext.ui.refactoring.ui.RenameElementHandler
LOG, renameRefactoringController
 
Constructor Summary
JvmRenameElementHandler()
           
 
Method Summary
 IRenameElementContext createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement, XtextEditor editor, org.eclipse.jface.text.ITextSelection selection, XtextResource resource)
           
 java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
          Executes with the map of parameter values by name.
protected  void startRenameElement(IRenameElementContext renameElementContext)
           
 
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvmRenameElementHandler

public JvmRenameElementHandler()
Method Detail

execute

public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
                         throws org.eclipse.core.commands.ExecutionException
Description copied from interface: org.eclipse.core.commands.IHandler
Executes with the map of parameter values by name.

Specified by:
execute in interface org.eclipse.core.commands.IHandler
Overrides:
execute in class RenameElementHandler
Parameters:
event - An event containing all the information about the current state of the application; must not be null.
Returns:
the result of the execution. Reserved for future use, must be null.
Throws:
org.eclipse.core.commands.ExecutionException - if an exception occurred during execution.

createRenameElementContext

public IRenameElementContext createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement,
                                                        XtextEditor editor,
                                                        org.eclipse.jface.text.ITextSelection selection,
                                                        XtextResource resource)
Overrides:
createRenameElementContext in class RenameElementHandler

startRenameElement

protected void startRenameElement(IRenameElementContext renameElementContext)
                           throws java.lang.InterruptedException
Overrides:
startRenameElement in class RenameElementHandler
Throws:
java.lang.InterruptedException