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
public abstract class BaseNewDiagramAction extends Object
Baseclass for the new diagram actions. A factory method is used to retrieve the new wizard of the appropriate package.
-
-
Constructor Summary
Constructors Constructor Description BaseNewDiagramAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose.protected abstract INewWizard
getNewWizard()
Template method for the new wizard to open.protected IWorkbenchWindow
getWindow()
Gets the window.void
init(IWorkbenchWindow window)
Inits the.void
run(IAction action)
Run.void
selectionChanged(IAction action, ISelection selection)
Selection changed.
-
-
-
Method Detail
-
run
public void run(IAction action)
Run.- Parameters:
action
- the action- See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)
-
getNewWizard
protected abstract INewWizard getNewWizard()
Template method for the new wizard to open.- Returns:
- the new wizard to open. must not be null
-
init
public void init(IWorkbenchWindow window)
Inits the.- Specified by:
init
in interfaceIWorkbenchWindowActionDelegate
- Parameters:
window
- the window- See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
-
getWindow
protected IWorkbenchWindow getWindow()
Gets the window.- Returns:
- the window which was active when the action was activated
-
selectionChanged
public void selectionChanged(IAction action, ISelection selection)
Selection changed.- Specified by:
selectionChanged
in interfaceIActionDelegate
- Parameters:
action
- the actionselection
- the selection- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
-
dispose
public void dispose()
Dispose.- Specified by:
dispose
in interfaceIWorkbenchWindowActionDelegate
- See Also:
IWorkbenchWindowActionDelegate.dispose()
-
-