- All Known Subinterfaces:
- All Known Implementing Classes:
public interface ICoreRunnableA functional interface for a runnable that can be cancelled and can report progress using the progress monitor passed to the
Clients may implement this interface.
void run(IProgressMonitor monitor) throws CoreExceptionExecutes this runnable.
The provided monitor can be used to report progress and respond to cancellation. If the progress monitor has been canceled, the runnable should finish its execution at the earliest convenience and throw an
CoreExceptionwith a status of severity
IStatus.CANCELhas the same effect as an
monitor- a progress monitor, or
nullif progress reporting and cancellation are not desired. The monitor is only valid for the duration of the invocation of this method. The receiver is not responsible for calling
IProgressMonitor.done()on the given monitor, and the caller must not rely on
IProgressMonitor.done()having been called by the receiver.
CoreException- if this operation fails
OperationCanceledException- if this operation is canceled