EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.action.explorer.delete
Class DeleteDomainAction

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.delete.DeleteModelElementAction
                  extended by org.eclipse.egf.core.ui.workbench.action.explorer.delete.DeleteDomainAction

public class DeleteDomainAction
extends DeleteModelElementAction

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

DeleteDomainAction

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

Parameters:
shell_p -
selectionProvider_p -
readOnlyMode_p -
Method Detail

getConfirmDeleteMessage

protected String[] getConfirmDeleteMessage()
Description copied from class: DeleteModelElementAction
Get the message used when displaying confirm delete dialog to the end-user.

Specified by:
getConfirmDeleteMessage in class DeleteModelElementAction
Returns:
See Also:
DeleteModelElementAction.getConfirmDeleteMessage()

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

closeEditor

protected boolean closeEditor(NamedModelElementWithId modelElement_p)
Description copied from class: DeleteModelElementAction
Close the editor related to given model element if any.
Default implementation does nothing.

Overrides:
closeEditor in class DeleteModelElementAction
Returns:
true means the editor is correctly closed and given model element can be safely deleted.
Default implementation returns true.
See Also:
DeleteModelElementAction.closeEditor(org.eclipse.egf.model.NamedModelElementWithId)

doDeleteModelElement

protected void doDeleteModelElement()
Description copied from class: DeleteModelElementAction
Performs the model element delete and call the closeEditor method.

Overrides:
doDeleteModelElement in class DeleteModelElementAction
See Also:
DeleteModelElementAction.doDeleteModelElement()

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.