Class LongRunningHandler
- java.lang.Object
- 
- org.eclipse.core.commands.common.EventManager
- 
- org.eclipse.core.commands.AbstractHandler
- 
- org.eclipse.net4j.util.ui.handlers.SafeHandler
- 
- org.eclipse.net4j.util.ui.handlers.LongRunningHandler
 
 
 
 
- 
- Direct Known Subclasses:
- AbstractBaseHandler
 
 public abstract class LongRunningHandler extends SafeHandler - Since:
- 3.4
- Author:
- Eike Stepper, Christian W. Damus (CEA LIST)
 
- 
- 
Constructor SummaryConstructors Constructor Description LongRunningHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcancel()protected voidcheckCancelation(IProgressMonitor monitor)protected voiddoExecute(ExecutionEvent event, IProgressMonitor progressMonitor)Executes the long-running handler in a background job.protected voiddoExecute(IProgressMonitor progressMonitor)protected java.lang.StringgetBundleID()protected java.lang.StringgetErrorMessage(java.lang.Exception ex)protected java.lang.StringgetErrorTitle(java.lang.Exception ex)protected intgetTotalWork()Deprecated.Not supported anymore.protected voidpreRun()protected voidpreRun(ExecutionEvent event)protected java.lang.ObjectsafeExecute(ExecutionEvent event)protected voidsetTotalWork(int totalWork)Deprecated.Not supported anymore.- 
Methods inherited from class org.eclipse.net4j.util.ui.handlers.SafeHandlerexecute, extractEventDetails, getCommand, getSelection, getText, setEnabled, updateSelection
 - 
Methods inherited from class org.eclipse.core.commands.AbstractHandleraddHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled
 - 
Methods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
- 
 
- 
- 
- 
Method Detail- 
getTotalWork@Deprecated protected final int getTotalWork() Deprecated.Not supported anymore.
 - 
setTotalWork@Deprecated protected final void setTotalWork(int totalWork) Deprecated.Not supported anymore.
 - 
cancelprotected final void cancel() 
 - 
safeExecuteprotected final java.lang.Object safeExecute(ExecutionEvent event) throws java.lang.Exception - Specified by:
- safeExecutein class- SafeHandler
- Throws:
- java.lang.Exception
 
 - 
getErrorTitleprotected java.lang.String getErrorTitle(java.lang.Exception ex) - Since:
- 3.12
 
 - 
getErrorMessageprotected java.lang.String getErrorMessage(java.lang.Exception ex) - Since:
- 3.12
 
 - 
preRunprotected void preRun(ExecutionEvent event) throws java.lang.Exception - Throws:
- java.lang.Exception
- Since:
- 3.5
 
 - 
preRunprotected void preRun() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
getBundleIDprotected java.lang.String getBundleID() 
 - 
doExecuteprotected void doExecute(ExecutionEvent event, IProgressMonitor progressMonitor) throws java.lang.Exception Executes the long-running handler in a background job. Note that the originalExecutionEventis not available because it is only valid during the execution of the handler call-back on the UI thread. Any details required from it must be extracted before the job is scheduled.- Throws:
- java.lang.Exception
- Since:
- 3.5
 
 - 
doExecuteprotected void doExecute(IProgressMonitor progressMonitor) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
checkCancelationprotected final void checkCancelation(IProgressMonitor monitor) 
 
- 
 
-