Package org.eclipse.core.resources
Interface IWorkspaceRunnable
- All Superinterfaces:
ICoreRunnable
- All Known Implementing Classes:
CheckConditionsOperation,CreateChangeOperation,PerformChangeOperation,PerformRefactoringHistoryOperation,PerformRefactoringOperation,RunToLineHandler
This interface is structurally equivalent to
ICoreRunnable. New code should use
ICoreRunnable instead of IWorkspaceRunnable.
Clients may implement this interface.
- See Also:
-
Method Summary
-
Method Details
-
run
Description copied from interface:ICoreRunnableExecutes 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
OperationCanceledException. ACoreExceptionwith a status of severityIStatus.CANCELhas the same effect as anOperationCanceledException.- Specified by:
runin interfaceICoreRunnable- Parameters:
monitor- a progress monitor, ornullif progress reporting and cancellation are not desired. The monitor is only valid for the duration of the invocation of this method. Callers may callIProgressMonitor.done()after this method returns or throws an exception, but this is not strictly required.- Throws:
CoreException- if this operation failsOperationCanceledException- if this operation is canceled
-