|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.actions.ActionDelegate
archimate.actions.ArchiMateAction
public abstract class ArchiMateAction
This abstract class takes care of activating the action and setting the necessary variables
Constructor Summary | |
---|---|
ArchiMateAction()
|
Method Summary | |
---|---|
void |
dispose()
We can use this method to dispose of any system resources we previously allocated. |
static org.eclipse.ui.IWorkbenchWindow |
getWindow()
|
void |
init(org.eclipse.jface.action.IAction action)
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
We will cache window object in order to be able to provide parent shell for the message dialog. |
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Selection in the workbench has been changed. |
void |
setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart editorPart)
For editor actions, the framework calls this when the active editor changes, so that we can connect with it. |
void |
setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart)
This records the specified workbench part, and if it is an editing domain provider, its editing domain. |
Methods inherited from class org.eclipse.ui.actions.ActionDelegate |
---|
runWithEvent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiMateAction()
Method Detail |
---|
public static org.eclipse.ui.IWorkbenchWindow getWindow()
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
run
in class org.eclipse.ui.actions.ActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
selectionChanged
in class org.eclipse.ui.actions.ActionDelegate
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
public void dispose()
dispose
in interface org.eclipse.ui.IActionDelegate2
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
dispose
in class org.eclipse.ui.actions.ActionDelegate
IWorkbenchWindowActionDelegate.dispose()
public void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart editorPart)
setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart)
to record it and its editing domain, if
it can provide one.
setActiveEditor
in interface org.eclipse.ui.IEditorActionDelegate
public void setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart)
public void init(org.eclipse.ui.IWorkbenchWindow window)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
public void init(org.eclipse.jface.action.IAction action)
init
in interface org.eclipse.ui.IActionDelegate2
init
in class org.eclipse.ui.actions.ActionDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |