org.eclipse.etrice.ui.commands.handlers
Class EditBehaviorHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.etrice.ui.commands.handlers.AbstractEditHandler
org.eclipse.etrice.ui.commands.handlers.EditBehaviorHandler
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
public class EditBehaviorHandler
- extends AbstractEditHandler
Handler for outline menu item to open behavior editor.
The handler will ask to save unsaved editor before opening the diagram.
If there are unnamed transitions they will be named with unique names.
- Author:
- Henrik Rentz-Reichert initial contribution and API
Method Summary |
protected boolean |
isEnabled(java.lang.String fragment)
|
protected void |
openEditor(EObject object)
|
protected boolean |
prepare(XtextEditor xtextEditor,
java.lang.String fragment)
|
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, 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 |
EditBehaviorHandler
public EditBehaviorHandler()
prepare
protected boolean prepare(XtextEditor xtextEditor,
java.lang.String fragment)
- Specified by:
prepare
in class AbstractEditHandler
openEditor
protected void openEditor(EObject object)
- Specified by:
openEditor
in class AbstractEditHandler
isEnabled
protected boolean isEnabled(java.lang.String fragment)
- Specified by:
isEnabled
in class AbstractEditHandler