|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAction
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractModelElementAction
public abstract class AbstractModelElementAction
Base class to implement action dealing with a model element.
Constructor Summary | |
---|---|
protected |
AbstractModelElementAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p)
Constructor. |
Method Summary | |
---|---|
protected ImageDescriptor |
computeImageDescriptorForModelElement(String pluginRelatedImagePath_p)
Compute an image descriptor for a model element. |
protected void |
executeCommand(AdapterFactoryEditingDomain editingDomain_p,
Command command_p)
Execute the command. |
protected AdapterFactoryEditingDomain |
getEditingDomain()
Get the editing domain. |
NamedModelElementWithId |
getModelElement()
Get the editing model element. |
protected abstract Wizard |
getWizardFor(NamedModelElementWithId selectedModelElement_p)
Get the wizard that handles with given model element. |
protected boolean |
isReadOnly()
Whether or not the open wizard is in read only ? |
protected void |
openWizardDialog(Wizard wizard_p)
Open a wizard dialog for given wizard. |
void |
setSelectedElement(Object object_p)
Set given object as the selected object. |
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction |
---|
getModelElementClass, 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 |
---|
protected AbstractModelElementAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
shell_p
- selectionProvider_p
- readOnlyMode_p
- whether or not the open wizard is in read only.Method Detail |
---|
public void setSelectedElement(Object object_p)
AbstractNavigatorAction
setSelectedElement
in class AbstractNavigatorAction
AbstractNavigatorAction.setSelectedElement(java.lang.Object)
public NamedModelElementWithId getModelElement()
protected void executeCommand(AdapterFactoryEditingDomain editingDomain_p, Command command_p)
editingDomain_p
- command_p
- protected AdapterFactoryEditingDomain getEditingDomain()
protected ImageDescriptor computeImageDescriptorForModelElement(String pluginRelatedImagePath_p)
FactoryComponentEditPlugin
.
ImageDescriptor
or null if not found.protected boolean isReadOnly()
protected abstract Wizard getWizardFor(NamedModelElementWithId selectedModelElement_p)
selectedModelElement_p
- the selected element that triggers this action.
Wizard
instance.protected void openWizardDialog(Wizard wizard_p)
wizard_p
-
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.