Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.actions
Class ActionDelegate

java.lang.Object
  extended by 
org.eclipse.ui.actions.ActionDelegate
All Implemented Interfaces:
IActionDelegate, IActionDelegate2
Direct Known Subclasses:
AbstractRulerActionDelegate

public abstract class ActionDelegate
extends Object
implements IActionDelegate2

Abstract base implementation of IActionDelegate and IActionDelegate2 for a client delegate action.

Subclasses should reimplement runWithEvent or run methods to do the action's work, and may reimplement selectionChanged to react to selection changes in the workbench.


Constructor Summary
ActionDelegate ()
           
 
Method Summary
 void dispose ()
          The ActionDelegate implementation of this IActionDelegate2 method does nothing.
 void init ( IAction action)
          The ActionDelegate implementation of this IActionDelegate2 method does nothing.
 void run ( IAction action)
          The ActionDelegate implementation of this IActionDelegate method does nothing.
 void runWithEvent ( IAction action, Event event)
          The ActionDelegate implementation of this IActionDelegate2 method redirects to the run method.
 void selectionChanged ( IAction action, ISelection selection)
          The ActionDelegate implementation of this IActionDelegate 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 void run(
IAction action)
The ActionDelegate implementation of this IActionDelegate method does nothing. Subclasses may reimplement.

Note: This method is not called directly by the proxy action. Only by the default implementation of runWithEvent of this abstract class.

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

init

public void init(
IAction action)
The ActionDelegate implementation of this IActionDelegate2 method does nothing. Subclasses may reimplement.

Specified by:
init in interface IActionDelegate2
Parameters:
action - the proxy action that handles the presentation portion of the action.

dispose

public void dispose()
The ActionDelegate implementation of this IActionDelegate2 method does nothing. Subclasses may reimplement.

Specified by:
dispose in interface IActionDelegate2

runWithEvent

public void runWithEvent(
IAction action,
                         
Event event)
The ActionDelegate implementation of this IActionDelegate2 method redirects to the run method. Subclasses may reimplement.

Specified by:
runWithEvent in interface IActionDelegate2
Parameters:
action - the action proxy that handles the presentation portion of the action
event - the SWT event which triggered this action being run

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire