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
- Since:
- 3.4
- Author:
- Eike Stepper, Christian W. Damus (CEA LIST)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcancel()protected final voidcheckCancelation(IProgressMonitor monitor) protected voiddoExecute(ExecutionEvent event, IProgressMonitor progressMonitor) Executes the long-running handler in a background job.protected voiddoExecute(IProgressMonitor progressMonitor) protected Stringprotected Stringprotected Stringprotected final intDeprecated.Not supported anymore.protected voidpreRun()protected voidpreRun(ExecutionEvent event) protected final ObjectsafeExecute(ExecutionEvent event) protected final voidsetTotalWork(int totalWork) Deprecated.Not supported anymore.Methods inherited from class org.eclipse.net4j.util.ui.handlers.SafeHandler
execute, extractEventDetails, getCommand, getSelection, getText, setEnabled, updateSelectionMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
LongRunningHandler
public LongRunningHandler()
-
-
Method Details
-
getTotalWork
Deprecated.Not supported anymore. -
setTotalWork
Deprecated.Not supported anymore. -
cancel
protected final void cancel() -
safeExecute
- Specified by:
safeExecutein classSafeHandler- Throws:
Exception
-
getErrorTitle
- Since:
- 3.12
-
getErrorMessage
- Since:
- 3.12
-
preRun
- Throws:
Exception- Since:
- 3.5
-
preRun
- Throws:
Exception
-
getBundleID
-
doExecute
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:
Exception- Since:
- 3.5
-
doExecute
- Throws:
Exception
-
checkCancelation
-