Methods Summary |
---|
public void | dispose()We can use this method to dispose of any system
resources we previously allocated.
|
public 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.
this.window = window;
|
public void | run(org.eclipse.jface.action.IAction action)The action has been activated. The argument of the
method represents the 'real' action sitting
in the workbench UI.
MessageDialog.openInformation(
window.getShell(),
"Ch11_01 Plug-in",
"Hello, Eclipse world");
|
public void | selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)Selection in the workbench has been changed. We
can change the state of the 'real' action here
if we want, but this can only happen after
the delegate has been created.
|