java.lang.Object | +--com.ibm.jdg2e.actions.ShowPerspectivesAction
Workbench toolbar action that lists all available perspectives as a pulldown menu. See Chapter 21 for a discussion of the implementation.
IWorkbenchWindowPulldownDelegate| Constructor Summary | |
ShowPerspectivesAction()
The constructor. |
|
| Method Summary | |
void |
dispose()
|
org.eclipse.swt.widgets.Menu |
getMenu(org.eclipse.swt.widgets.Control parent)
Create the pulldown menu and define a selection listener to display the selected perspective. |
void |
init(org.eclipse.ui.IWorkbenchWindow window)
Initialize fields. |
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShowPerspectivesAction()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
getMenu in interface org.eclipse.ui.IWorkbenchWindowPulldownDelegateIWorkbenchWindowPulldownDelegate.getMenu(org.eclipse.swt.widgets.Control)public void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegateIWorkbenchWindowActionDelegate#init(IWorkbenchWindow)public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegate