org.eclipse.ocl.examples.xtext.completeocl.ui.commands
Class LoadCompleteOCLResourceHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ocl.examples.xtext.completeocl.ui.commands.LoadCompleteOCLResourceHandler
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
public class LoadCompleteOCLResourceHandler
- extends org.eclipse.core.commands.AbstractHandler
A LoadCompleteOCLResourceHandler supports the OCL->Load Document command.
It provides a pop-up dialog with DND capability for a Complete OCL document to be installed in the
ResourceSet associated with the invoking selection.
Method Summary |
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
|
static org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain(java.lang.Object evaluationContext)
|
static org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet(java.lang.Object evaluationContext)
|
void |
setEnabled(java.lang.Object evaluationContext)
|
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, 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 |
LoadCompleteOCLResourceHandler
public LoadCompleteOCLResourceHandler()
execute
@Nullable
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
getEditingDomain
@Nullable
public static org.eclipse.emf.edit.domain.EditingDomain getEditingDomain(@Nullable
java.lang.Object evaluationContext)
getResourceSet
@Nullable
public static org.eclipse.emf.ecore.resource.ResourceSet getResourceSet(@Nullable
java.lang.Object evaluationContext)
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