|
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
org.eclipse.egf.core.ui.workbench.action.open.OpenModelElementAction
public abstract class OpenModelElementAction
Base class to implement an action that opens an editor.
Field Summary | |
---|---|
static String |
OPEN_ACTION_ID
The 'open' retargetable action id. |
Constructor Summary | |
---|---|
OpenModelElementAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p)
Constructor. |
Method Summary | |
---|---|
protected IEditorPart |
doOpenEditor(IEditorInput editorInput_p,
String editorId_p)
Do open related editor for specified parameters. |
protected abstract String |
getEditorId()
Return the id of the editor to be opened. |
protected abstract IEditorInput |
getEditorInput()
Return the input used by the open editor. |
protected Wizard |
getWizardFor(NamedModelElementWithId modelElement_p)
Get the wizard that handles with given model element. |
void |
run()
|
protected boolean |
shouldSaveEditorAfterOpening()
Return whether or not the open editor has to be saved after opening. |
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 |
---|
getModelElementClass, getSelection, getSelectionProvider, getSharedImages, getShell, isSelectionCompatible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPEN_ACTION_ID
Constructor Detail |
---|
public OpenModelElementAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
shell_p
- selectionProvider_p
- readOnlyMode_p
- Method Detail |
---|
protected Wizard getWizardFor(NamedModelElementWithId modelElement_p)
AbstractModelElementAction
getWizardFor
in class AbstractModelElementAction
modelElement_p
- the selected element that triggers this action.
Wizard
instance.AbstractModelElementAction.getWizardFor(org.eclipse.egf.model.NamedModelElementWithId)
public void run()
org.eclipse.jface.action.Action#run()
protected boolean shouldSaveEditorAfterOpening()
false
.
protected IEditorPart doOpenEditor(IEditorInput editorInput_p, String editorId_p)
editorInput_p
- editorId_p
- protected abstract String getEditorId()
protected abstract IEditorInput getEditorInput()
|
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.