EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.action.open
Class OpenDomainAction

java.lang.Object
  extended by Action
      extended by org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction
          extended by org.eclipse.egf.core.ui.workbench.action.navigator.AbstractModelElementAction
              extended by org.eclipse.egf.core.ui.workbench.action.open.OpenModelElementAction
                  extended by org.eclipse.egf.core.ui.workbench.action.open.OpenDomainAction

public class OpenDomainAction
extends OpenModelElementAction

Implement an action that opens a domain editor for a domain model content.


Field Summary
 
Fields inherited from class org.eclipse.egf.core.ui.workbench.action.open.OpenModelElementAction
OPEN_ACTION_ID
 
Constructor Summary
OpenDomainAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
          Constructor.
 
Method Summary
protected  URI getDomainURI(Domain domain_p)
          Return the domain URI for current model element.
protected  String getEditorId()
          Return the id of the editor to be opened.
protected  IEditorInput getEditorInput()
          Return the input used by the open editor.
protected  Class<?> getModelElementClass()
          Get the model element class for which this action is enabled for.
 boolean isEnabled()
           
 
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.open.OpenModelElementAction
doOpenEditor, getWizardFor, run, shouldSaveEditorAfterOpening
 
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.navigator.AbstractModelElementAction
computeImageDescriptorForModelElement, executeCommand, getEditingDomain, getModelElement, isReadOnly, openWizardDialog, setSelectedElement
 
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction
getSelection, getSelectionProvider, getSharedImages, getShell, isSelectionCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenDomainAction

public OpenDomainAction(Shell shell_p,
                        ISelectionProvider selectionProvider_p,
                        boolean readOnlyMode_p)
Constructor.

Parameters:
shell_p -
selectionProvider_p -
readOnlyMode_p -
Method Detail

getEditorId

protected String getEditorId()
Description copied from class: OpenModelElementAction
Return the id of the editor to be opened.

Specified by:
getEditorId in class OpenModelElementAction
Returns:
See Also:
OpenModelElementAction.getEditorId()

getModelElementClass

protected Class<?> getModelElementClass()
Description copied from class: AbstractNavigatorAction
Get the model element class for which this action is enabled for.

Specified by:
getModelElementClass in class AbstractNavigatorAction
Returns:
See Also:
AbstractNavigatorAction.getModelElementClass()

isEnabled

public boolean isEnabled()
See Also:
org.eclipse.jface.action.Action#isEnabled()

getDomainURI

protected URI getDomainURI(Domain domain_p)
Return the domain URI for current model element.

Returns:
null if not found.

getEditorInput

protected IEditorInput getEditorInput()
Description copied from class: OpenModelElementAction
Return the input used by the open editor.

Specified by:
getEditorInput in class OpenModelElementAction
Returns:
See Also:
OpenModelElementAction.getEditorInput()

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.