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 java.lang.String |
getBundleID() |
protected int |
getTotalWork()
Deprecated.
Not supported anymore.
|
protected void |
preRun() |
protected void |
preRun(ExecutionEvent event) |
protected java.lang.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 java.lang.Object safeExecute(ExecutionEvent event) throws java.lang.Exception
safeExecute
in class SafeHandler
java.lang.Exception
protected void preRun(ExecutionEvent event) throws java.lang.Exception
java.lang.Exception
protected void preRun() throws java.lang.Exception
java.lang.Exception
protected java.lang.String getBundleID()
protected void doExecute(ExecutionEvent event, IProgressMonitor progressMonitor) throws java.lang.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.java.lang.Exception
protected void doExecute(IProgressMonitor progressMonitor) throws java.lang.Exception
java.lang.Exception
protected final void checkCancelation(IProgressMonitor monitor)
Copyright (c) 2004-2019 Eike Stepper (Loehne, 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