- All Known Subinterfaces:
- All Known Implementing Classes:
IRunnableWithProgress. The context is responsible for displaying a progress indicator and Cancel button to the end user while the operation is in progress; the context supplies a progress monitor to be used from code running inside the operation. Note that an
IRunnableContextis not a runnable itself.
For examples of UI components which implement this interface,
(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException
Runs the given
IRunnableWithProgressin this context. For example, if this is a
ProgressMonitorDialogthen the runnable is run using this dialog's progress monitor.
false, the current thread is used to run the runnable. Note that if
true, it is unspecified whether or not this method blocks until the runnable has been run. Implementers should document whether the runnable is run synchronously (blocking) or asynchronously (non-blocking), or if no assumption can be made about the blocking behaviour.
trueif the runnable should be run in a separate thread, and
falseto run in the same thread
trueto enable the cancelation, and
falseto make the operation uncancellable
runnable- the runnable to run
InvocationTargetException- wraps any exception or error which occurs while running the runnable
InterruptedException- propagated by the context if the runnable acknowledges cancelation by throwing this exception. This should not be thrown if cancelable is