public interface ICoreRunnable
run(IProgressMonitor)
method.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
run(IProgressMonitor monitor)
Executes this runnable.
|
void run(IProgressMonitor monitor) throws CoreException
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 OperationCanceledException
. A CoreException
with a status
of severity IStatus.CANCEL
has the same effect as
an OperationCanceledException
.
monitor
- a progress monitor, or null
if 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 failsOperationCanceledException
- if this operation is canceled
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.