java.lang.Objectcom.ibm.jdg2e.jface.viewers.dialog.OpenDialogAction
Our sample action implements workbench action delegate. The action proxy will be created by the workbench and shown in the UI. When the user tries to use the action, this delegate will be created and execution will be delegated to it.
IWorkbenchWindowActionDelegate| Constructor Summary | |
|---|---|
OpenDialogAction()
The constructor. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
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)
The action has been activated. |
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 OpenDialogAction()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegateIWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegateIActionDelegate.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