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

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

public abstract class LongRunningActionDelegate
extends SafeActionDelegate


Constructor Summary
LongRunningActionDelegate()
           
 
Method Summary
protected  void cancel()
           
protected  void checkCancelation(org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected abstract  void doRun()
           
protected  java.lang.String getBundleID()
           
protected  int getTotalWork()
           
protected  void preRun()
           
protected  void safeRun()
           
protected  void setTotalWork(int totalWork)
           
 
Methods inherited from class org.eclipse.net4j.util.ui.actions.SafeActionDelegate
getAction, getSelection, getText, run, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongRunningActionDelegate

public LongRunningActionDelegate()
Method Detail

getTotalWork

protected final int getTotalWork()

setTotalWork

protected final void setTotalWork(int totalWork)

cancel

protected final void cancel()

safeRun

protected final void safeRun()
                      throws java.lang.Exception
Specified by:
safeRun in class SafeActionDelegate
Throws:
java.lang.Exception

preRun

protected void preRun()
               throws java.lang.Exception
Throws:
java.lang.Exception

getBundleID

protected java.lang.String getBundleID()

doRun

protected abstract void doRun()
                       throws java.lang.Exception
Throws:
java.lang.Exception

checkCancelation

protected final void checkCancelation(org.eclipse.core.runtime.IProgressMonitor monitor)

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.