public interface IWorkspaceRunnable extends ICoreRunnable
ICoreRunnable
. New code should use
ICoreRunnable
instead of IWorkspaceRunnable
.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
run(IProgressMonitor monitor)
Executes this runnable.
|
void run(IProgressMonitor monitor) throws CoreException
ICoreRunnable
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
.
run
in interface ICoreRunnable
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. Callers may call IProgressMonitor.done()
after this method returns or throws an exception, but this is not strictly
required.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.