EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.action.explorer.create
Class CreateContextAction

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.explorer.create.CreateModelElementAction
                  extended by org.eclipse.egf.core.ui.workbench.action.explorer.create.CreateContextAction

public class CreateContextAction
extends CreateModelElementAction

Create a model element Context as a child of its parent.


Constructor Summary
CreateContextAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
          Constructor.
 
Method Summary
protected  Class<?> getModelElementClass()
          Get the model element class for which this action is enabled for.
protected  Wizard getWizardFor(NamedModelElementWithId modelElement_p)
          Get the wizard that handles with given model element.
 boolean isEnabled()
           
 void run()
           
 
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

CreateContextAction

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

Parameters:
shell_p -
selectionProvider_p -
readOnlyMode_p -
Method Detail

getWizardFor

protected Wizard getWizardFor(NamedModelElementWithId modelElement_p)
Description copied from class: AbstractModelElementAction
Get the wizard that handles with given model element.

Specified by:
getWizardFor in class AbstractModelElementAction
Parameters:
modelElement_p - the selected element that triggers this action.
Returns:
a not null Wizard instance.
See Also:
AbstractModelElementAction.getWizardFor(org.eclipse.egf.model.NamedModelElementWithId)

isEnabled

public boolean isEnabled()
See Also:
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction#isEnabled()

run

public void run()
Overrides:
run in class CreateModelElementAction
See Also:
CreateModelElementAction.run()

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()

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.