EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.action.explorer
Class AbstractCleanPatternElementAction

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.AbstractCleanPatternElementAction
Direct Known Subclasses:
CleanPatternAction, CleanPatternLibraryAction

public abstract class AbstractCleanPatternElementAction
extends AbstractModelElementAction

Base class to implement a clean action for an AbstractPatternElement.


Constructor Summary
AbstractCleanPatternElementAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
           
 
Method Summary
protected  void clean(PatternModel pattern_p, IProgressMonitor monitor_p)
          Clean generated structures for given pattern.
protected abstract  void doCleanPatternElement()
          Do the clean operation.
protected abstract  String getConfirmationMessage()
           
protected  PatternHandler getPatternHandler(PatternModel pattern_p)
          Return the pattern handler for given pattern.
protected  Wizard getWizardFor(NamedModelElementWithId selectedModelElement_p)
          Get the wizard that handles with given model element.
 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
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

AbstractCleanPatternElementAction

public AbstractCleanPatternElementAction(Shell shell_p,
                                         ISelectionProvider selectionProvider_p,
                                         boolean readOnlyMode_p)
Parameters:
shell_p -
selectionProvider_p -
readOnlyMode_p -
Method Detail

run

public void run()
See Also:
org.eclipse.jface.action.Action#run()

getConfirmationMessage

protected abstract String getConfirmationMessage()

doCleanPatternElement

protected abstract void doCleanPatternElement()
Do the clean operation.


getWizardFor

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

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

clean

protected void clean(PatternModel pattern_p,
                     IProgressMonitor monitor_p)
Clean generated structures for given pattern.

Parameters:
pattern_p -
monitor_p - if null the clean operation is run asynchronously.

getPatternHandler

protected PatternHandler getPatternHandler(PatternModel pattern_p)
Return the pattern handler for given pattern.

Returns:
the patternHandler

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.