public interface IWorkspaceRunnable extends ICoreRunnable
ICoreRunnable. New code should use
Clients may implement this interface.
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
CoreException with a status
IStatus.CANCEL has the same effect as
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. Callers may call
IProgressMonitor.done()after this method returns or throws an exception, but this is not strictly required.
CoreException- if this operation fails
OperationCanceledException- if this operation is canceled
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.