org.eclipse.ocl.examples.xtext.oclinecore.ui.commands
Class CreateDynamicInstanceHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ocl.examples.xtext.oclinecore.ui.commands.CreateDynamicInstanceHandler
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
public class CreateDynamicInstanceHandler
- extends org.eclipse.core.commands.AbstractHandler
Create a dynamic instance of an EClass
.
Method Summary |
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
|
static org.eclipse.xtext.ui.editor.XtextEditor |
getActiveXtextEditor(org.eclipse.core.expressions.IEvaluationContext evaluationContext)
|
boolean |
isEnabled()
|
void |
setEnabled(java.lang.Object evaluationContext)
|
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled |
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 |
PLATFORM_RESOURCE
protected static final org.eclipse.emf.common.util.URI PLATFORM_RESOURCE
CreateDynamicInstanceHandler
public CreateDynamicInstanceHandler()
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface org.eclipse.core.commands.IHandler
- Overrides:
isEnabled
in class org.eclipse.core.commands.AbstractHandler
setEnabled
public void setEnabled(java.lang.Object evaluationContext)
- Specified by:
setEnabled
in interface org.eclipse.core.commands.IHandler2
- Overrides:
setEnabled
in class org.eclipse.core.commands.AbstractHandler
getActiveXtextEditor
public static org.eclipse.xtext.ui.editor.XtextEditor getActiveXtextEditor(org.eclipse.core.expressions.IEvaluationContext evaluationContext)