org.eclipse.net4j.util.ui.actions
Class SafeActionDelegate

java.lang.Object
  extended by org.eclipse.net4j.util.ui.actions.SafeActionDelegate
All Implemented Interfaces:
IActionDelegate
Direct Known Subclasses:
LongRunningActionDelegate

public abstract class SafeActionDelegate
extends Object
implements IActionDelegate


Constructor Summary
SafeActionDelegate()
           
 
Method Summary
 IAction getAction()
           
 ISelection getSelection()
           
protected  String getText()
           
 void run(IAction action)
           
protected abstract  void safeRun()
           
 void selectionChanged(IAction action, ISelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeActionDelegate

public SafeActionDelegate()
Method Detail

getAction

public IAction getAction()

getSelection

public ISelection getSelection()

selectionChanged

public void selectionChanged(IAction action,
                             ISelection selection)
Specified by:
selectionChanged in interface IActionDelegate

run

public void run(IAction action)
Specified by:
run in interface IActionDelegate

safeRun

protected abstract void safeRun()
                         throws Exception
Throws:
Exception

getText

protected String getText()


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.