Class OpenTemplateEditorAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction
-
- org.eclipse.emf.ecp.internal.ide.editor.view.templatebridge.actions.OpenTemplateEditorAction
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class OpenTemplateEditorAction extends MasterDetailAction
Handler for opening the template editor.- Author:
- Johannes Faltermeier
-
-
Constructor Summary
Constructors Constructor Description OpenTemplateEditorAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(org.eclipse.core.commands.ExecutionEvent event)
void
execute(org.eclipse.emf.ecore.EObject object)
boolean
shouldShow(org.eclipse.emf.ecore.EObject eObject)
-
Methods inherited from class org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction
getTreeViewer
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
shouldShow
public boolean shouldShow(org.eclipse.emf.ecore.EObject eObject)
- Specified by:
shouldShow
in classMasterDetailAction
- Parameters:
eObject
- theEObject
on which to test if the action can be executed- Returns:
- true if the action can be executed on the parameter
eObject
-
execute
public void execute(org.eclipse.emf.ecore.EObject object)
- Specified by:
execute
in classMasterDetailAction
- Parameters:
object
- TheEObject
on which the action is executed
-
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
-