Eclipse Platform
2.0

org.eclipse.ui.actions
Class ActionDelegate

java.lang.Object
  |
  +--org.eclipse.ui.actions.ActionDelegate
All Implemented Interfaces:
IActionDelegate

public abstract class ActionDelegate
extends Object
implements IActionDelegate

Abstract base implementation of IActionDelegate.

Subclasses must implement run to do the action's work, and may reimplement selectionChanged to react to selection changes in the workbench.


Constructor Summary
ActionDelegate()
           
 
Method Summary
abstract  void run(IAction action)
          Performs this action.
 void selectionChanged(IAction action, ISelection selection)
          The ActionDelegate implementation of this IAction method does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDelegate

public ActionDelegate()
Method Detail

run

public abstract void run(IAction action)
Description copied from interface: IActionDelegate
Performs this action.

This method is called when the delegating action has been triggered. Implement this method to do the actual work.

Specified by:
run in interface IActionDelegate
Parameters:
action - the action proxy that handles the presentation portion of the action

selectionChanged

public void selectionChanged(IAction action,
                             ISelection selection)
The ActionDelegate implementation of this IAction method does nothing. Subclasses may reimplement.

Specified by:
selectionChanged in interface IActionDelegate
Parameters:
action - the action proxy that handles presentation portion of the action
selection - the current selection, or null if there is no selection.

Eclipse Platform
2.0

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