org.eclipse.xtext.xtend2.ui.edit
Class InsertStringHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.xtext.xtend2.ui.edit.InsertStringHandler
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
- Direct Known Subclasses:
- InsertStringHandler.LeftGuillemet, InsertStringHandler.RightGuillemet
public abstract class InsertStringHandler
- extends org.eclipse.core.commands.AbstractHandler
Handler to allow easy typing of guillemet characters on windows
and linux, too.
Method Summary |
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
Executes with the map of parameter values by name. |
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 |
LEFT_GUILLEMET
public static char LEFT_GUILLEMET
RIGHT_GUILLEMET
public static char RIGHT_GUILLEMET
InsertStringHandler
protected InsertStringHandler(char replaceChar)
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.
- 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.