com.ibm.jdg2e.actions
Class ShowPerspectivesAction

java.lang.Object
  |
  +--com.ibm.jdg2e.actions.ShowPerspectivesAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IWorkbenchWindowPulldownDelegate

public class ShowPerspectivesAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowPulldownDelegate

Workbench toolbar action that lists all available perspectives as a pulldown menu. See Chapter 21 for a discussion of the implementation.

See Also:
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

ShowPerspectivesAction

public ShowPerspectivesAction()
The constructor.

Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

getMenu

public 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.

Specified by:
getMenu in interface org.eclipse.ui.IWorkbenchWindowPulldownDelegate
See Also:
IWorkbenchWindowPulldownDelegate.getMenu(org.eclipse.swt.widgets.Control)

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Initialize fields.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate#init(IWorkbenchWindow)

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate