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.
-
Method Summary
-
Method Details
-
run
Description copied from interface:ICoreRunnable
Executes 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
. ACoreException
with a status of severityIStatus.CANCEL
has the same effect as anOperationCanceledException
.- Specified by:
run
in interfaceICoreRunnable
- Parameters:
monitor
- a progress monitor, ornull
if 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
-