|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.editor.action.delegate.AbstractOpenEditorActionDelegate<M,V,T>
M
- presentation data set which is base of diagramV
- visual data set which is base of diagramT
- input diagram for editorpublic abstract class AbstractOpenEditorActionDelegate<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>,V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>,M>,T extends IDiagram<M,V>>
Abstract action for opening editors. XXX: This class contains diagram only for testing purpose! the action is created only once so the diagram given in constructor is the same for all calls of this action. TODO: this action should open only empty editors!!!
Constructor Summary | |
---|---|
AbstractOpenEditorActionDelegate(String id)
Initializes the action with Id of the editor to open. |
Method Summary | |
---|---|
void |
dispose()
|
abstract T |
getDiagram()
Returns an instance of a diagram to be used in new editor instance. |
protected abstract String |
getNewEditorName()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOpenEditorActionDelegate(String id)
id
- Id of the editor to openMethod Detail |
---|
public abstract T getDiagram()
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.dispose()
public void init(org.eclipse.ui.IWorkbenchWindow window)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.run(org.eclipse.jface.action.IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
protected abstract String getNewEditorName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |