Package de.uka.ipd.sdq.pcm.gmf.toolbar
Class BaseInitializeDiagramAction
java.lang.Object
de.uka.ipd.sdq.pcm.gmf.toolbar.BaseInitializeDiagramAction
- All Implemented Interfaces:
IActionDelegate,IWorkbenchWindowActionDelegate
- Direct Known Subclasses:
InitializeAllocationDiagramAction,InitializeCompositeDiagramAction,InitializeRepositoryDiagramAction,InitializeSeffDiagramAction,InitializeUsageDiagramAction
Baseclass for the inizialize diagram actions. A factory method is used to retrieve the init
diagram action of the appropriate package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose.protected abstract IObjectActionDelegateTemplate method for the init actin to run.protected IWorkbenchWindowGets the window.voidinit(IWorkbenchWindow window) Inits the.voidRun.voidselectionChanged(IAction action, ISelection selection) Selection changed.
-
Constructor Details
-
BaseInitializeDiagramAction
public BaseInitializeDiagramAction()
-
-
Method Details
-
run
Run.- Parameters:
action- the action- See Also:
-
getInitAction
Template method for the init actin to run.- Returns:
- the init action to run. must not be null
-
init
Inits the.- Specified by:
initin interfaceIWorkbenchWindowActionDelegate- Parameters:
window- the window- See Also:
-
getWindow
Gets the window.- Returns:
- the window which was active when the action was activated
-
selectionChanged
Selection changed.- Specified by:
selectionChangedin interfaceIActionDelegate- Parameters:
action- the actionselection- the selection- See Also:
-
dispose
public void dispose()Dispose.- Specified by:
disposein interfaceIWorkbenchWindowActionDelegate- See Also:
-