org.eclipse.cdt.debug.internal.ui.actions
Class AbstractDebugActionDelegate

java.lang.Object
  extended by org.eclipse.cdt.debug.internal.ui.actions.AbstractDebugActionDelegate
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.INullSelectionListener, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
Direct Known Subclasses:
AbstractListenerActionDelegate

public abstract class AbstractDebugActionDelegate
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.ISelectionListener, org.eclipse.ui.INullSelectionListener


Constructor Summary
AbstractDebugActionDelegate()
          It's crucial that delegate actions have a zero-arg constructor so that they can be reflected into existence when referenced in an action set in the plugin's plugin.xml file.
 
Method Summary
 void dispose()
           
 void init(org.eclipse.jface.action.IAction action)
           
 void init(org.eclipse.ui.IViewPart view)
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
 void run(org.eclipse.jface.action.IAction action)
           
 void runWithEvent(org.eclipse.jface.action.IAction action, org.eclipse.swt.widgets.Event event)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection s)
          AbstractDebugActionDelegates come in 2 flavors: IViewActionDelegate, IWorkbenchWindowActionDelegate delegates.
 void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDebugActionDelegate

public AbstractDebugActionDelegate()
It's crucial that delegate actions have a zero-arg constructor so that they can be reflected into existence when referenced in an action set in the plugin's plugin.xml file.

Method Detail

dispose

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

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

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 s)
AbstractDebugActionDelegates come in 2 flavors: IViewActionDelegate, IWorkbenchWindowActionDelegate delegates.

Only want to call update(action, selection) for IViewActionDelegates. An initialize call to update(action, selection) is made for all flavors to set the initial enabled state of the underlying action. IWorkbenchWindowActionDelegate's listen to selection changes in the debug view only.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)

init

public void init(org.eclipse.ui.IViewPart view)
Specified by:
init in interface org.eclipse.ui.IViewActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.ISelectionListener

runWithEvent

public void runWithEvent(org.eclipse.jface.action.IAction action,
                         org.eclipse.swt.widgets.Event event)
Specified by:
runWithEvent in interface org.eclipse.ui.IActionDelegate2

init

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