java.lang.Objectcom.ibm.jdg2e.jdt.extras.JavaBrowsingAction
Simple view action targeted towards the views of the Java Browsing perspective (Projects, Packages, Types, Members). It does nothing useful, only displays messages about the parameters and selection.
Note: Generally, it's better to create a separate action delegate
per view in order to avoid lots of selection casting in the run
method. This example cheats (a little) by having a single action delegate
and testing for the selection type.
| Constructor Summary | |
JavaBrowsingAction()
|
|
| Method Summary | |
void |
init(org.eclipse.ui.IViewPart view)
|
void |
run(org.eclipse.jface.action.IAction action)
This example run method only displays messages about the selection. |
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 JavaBrowsingAction()
| Method Detail |
public void init(org.eclipse.ui.IViewPart view)
init in interface org.eclipse.ui.IViewActionDelegatepublic void run(org.eclipse.jface.action.IAction action)
run method only displays messages about the selection.
run in interface org.eclipse.ui.IActionDelegateIActionDelegate.run(IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegate