Package de.uka.ipd.sdq.pcm.gmf.toolbar
Class BaseNewDiagramAction
java.lang.Object
de.uka.ipd.sdq.pcm.gmf.toolbar.BaseNewDiagramAction
- All Implemented Interfaces:
IActionDelegate
,IWorkbenchWindowActionDelegate
- Direct Known Subclasses:
NewAllocationDiagramAction
,NewCompositeDiagramAction
,NewRepositoryDiagramAction
,NewResourceDiagramAction
,NewSeffDiagramAction
,NewUsageDiagramAction
Baseclass for the new diagram actions. A factory method is used to retrieve the new wizard of the
appropriate package.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose.protected abstract INewWizard
Template method for the new wizard to open.protected IWorkbenchWindow
Gets the window.void
init
(IWorkbenchWindow window) Inits the.void
Run.void
selectionChanged
(IAction action, ISelection selection) Selection changed.
-
Constructor Details
-
BaseNewDiagramAction
public BaseNewDiagramAction()
-
-
Method Details
-
run
Run.- Parameters:
action
- the action- See Also:
-
getNewWizard
Template method for the new wizard to open.- Returns:
- the new wizard to open. must not be null
-
init
Inits the.- Specified by:
init
in 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:
selectionChanged
in interfaceIActionDelegate
- Parameters:
action
- the actionselection
- the selection- See Also:
-
dispose
public void dispose()Dispose.- Specified by:
dispose
in interfaceIWorkbenchWindowActionDelegate
- See Also:
-