Eclipse Platform
2.1

org.eclipse.debug.ui.actions
Class AbstractLaunchToolbarAction

java.lang.Object
  |
  +--org.eclipse.debug.ui.actions.AbstractLaunchHistoryAction
        |
        +--org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction
All Implemented Interfaces:
IActionDelegate, org.eclipse.debug.internal.ui.ILaunchHistoryChangedListener, IWorkbenchWindowActionDelegate, IWorkbenchWindowPulldownDelegate, IWorkbenchWindowPulldownDelegate2

public class AbstractLaunchToolbarAction
extends AbstractLaunchHistoryAction

A launch history action that also includes launch shortcut actions (run/debug as), and an action to open the launch configuration dialog.

Since:
2.1

Fields inherited from class org.eclipse.debug.ui.actions.AbstractLaunchHistoryAction
fRecreateMenu
 
Constructor Summary
AbstractLaunchToolbarAction(String launchGroupIdentifier)
          Constructs a launch toolbar action.
 
Method Summary
protected  void fillMenu(Menu menu)
          Fills the drop-down menu with favorites and launch history, launch shortcuts, and an action to open the launch configuration dialog.
 void run(IAction action)
          Launch the last launch, or open the launch config dialog if none.
 
Methods inherited from class org.eclipse.debug.ui.actions.AbstractLaunchHistoryAction
addSeparator, addToMenu, dispose, getAction, getLastLaunch, getLaunchGroupIdentifier, getLaunchHistory, getMenu, getMenu, getMode, init, launchHistoryChanged, selectionChanged, updateTooltip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLaunchToolbarAction

public AbstractLaunchToolbarAction(String launchGroupIdentifier)
Constructs a launch toolbar action.
Parameters:
launchGroupIdentifier - unique identifier of the launch group extension that this action displays a launch history, shortcuts, and launch configuration dialog for.
Method Detail

fillMenu

protected void fillMenu(Menu menu)
Fills the drop-down menu with favorites and launch history, launch shortcuts, and an action to open the launch configuration dialog.
Overrides:
fillMenu in class AbstractLaunchHistoryAction
Parameters:
menu - the menu to fill

run

public void run(IAction action)
Launch the last launch, or open the launch config dialog if none.
Overrides:
run in class AbstractLaunchHistoryAction
See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.