|
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.explorer.delete.DeleteModelElementAction
org.eclipse.egf.core.ui.workbench.action.explorer.delete.DeleteDomainAction
public class DeleteDomainAction
Implements an action to delete a domain.
| Constructor Summary | |
|---|---|
DeleteDomainAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
closeEditor(NamedModelElementWithId modelElement_p)
Close the editor related to given model element if any. |
protected void |
doDeleteModelElement()
Performs the model element delete and call the closeEditor method. |
protected String[] |
getConfirmDeleteMessage()
Get the message used when displaying confirm delete dialog to the end-user. |
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.explorer.delete.DeleteModelElementAction |
|---|
closeFileEditor, getWizardFor, run, setUserConfirmationRequested |
| 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 |
|---|
public DeleteDomainAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p)
shell_p - selectionProvider_p - readOnlyMode_p - | Method Detail |
|---|
protected String[] getConfirmDeleteMessage()
DeleteModelElementAction
getConfirmDeleteMessage in class DeleteModelElementActionDeleteModelElementAction.getConfirmDeleteMessage()protected Class<?> getModelElementClass()
AbstractNavigatorAction
getModelElementClass in class AbstractNavigatorActionAbstractNavigatorAction.getModelElementClass()public boolean isEnabled()
org.eclipse.jface.action.Action#isEnabled()protected boolean closeEditor(NamedModelElementWithId modelElement_p)
DeleteModelElementAction
closeEditor in class DeleteModelElementActiontrue means the editor is correctly closed and given model element can be safely deleted.true.DeleteModelElementAction.closeEditor(org.eclipse.egf.model.NamedModelElementWithId)protected void doDeleteModelElement()
DeleteModelElementAction
doDeleteModelElement in class DeleteModelElementActionDeleteModelElementAction.doDeleteModelElement()
|
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.