public interface IWorkspaceRunnable
IWorkspaceRunnable
interface should be implemented
by any class whose instances are intended to be run by
IWorkspace.run
.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
run(IProgressMonitor monitor)
Runs the operation reporting progress to and accepting
cancellation requests from the given progress monitor.
|
void run(IProgressMonitor monitor) throws CoreException
Implementors of this method should check the progress monitor
for cancellation when it is safe and appropriate to do so. The cancellation
request should be propagated to the caller by throwing
OperationCanceledException
.
monitor
- a progress monitor, or null
if progress
reporting and cancellation are not desiredCoreException
- if this operation fails.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.