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, updateSelectionaddHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabledaddListenerObject, 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 SafeHandlerExceptionprotected void preRun(ExecutionEvent event) throws Exception
Exceptionprotected 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.Exceptionprotected void doExecute(IProgressMonitor progressMonitor) throws Exception
Exceptionprotected final void checkCancelation(IProgressMonitor monitor)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html