public abstract class LongRunningHandler extends SafeHandler
Constructor and Description |
---|
LongRunningHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel() |
protected void |
checkCancelation(IProgressMonitor monitor) |
protected void |
doExecute(ExecutionEvent event,
IProgressMonitor progressMonitor)
Executes the long-running handler in a background job.
|
protected void |
doExecute(IProgressMonitor progressMonitor) |
protected String |
getBundleID() |
protected int |
getTotalWork()
Deprecated.
Not supported anymore.
|
protected void |
preRun() |
protected void |
preRun(ExecutionEvent event) |
protected Object |
safeExecute(ExecutionEvent event) |
protected void |
setTotalWork(int totalWork)
Deprecated.
Not supported anymore.
|
execute, extractEventDetails, getCommand, getSelection, getText, setEnabled, updateSelection
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
@Deprecated protected final int getTotalWork()
@Deprecated protected final void setTotalWork(int totalWork)
protected final void cancel()
protected final Object safeExecute(ExecutionEvent event) throws Exception
safeExecute
in class SafeHandler
Exception
protected void preRun(ExecutionEvent event) throws Exception
Exception
protected String getBundleID()
protected void doExecute(ExecutionEvent event, IProgressMonitor progressMonitor) throws Exception
ExecutionEvent
is 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.Exception
protected void doExecute(IProgressMonitor progressMonitor) throws Exception
Exception
protected final void checkCancelation(IProgressMonitor monitor)
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.