Package org.eclipse.core.resources
Interface IWorkspaceRunnable
-
- All Superinterfaces:
ICoreRunnable
- All Known Implementing Classes:
CheckConditionsOperation,CreateChangeOperation,PerformChangeOperation,PerformRefactoringHistoryOperation,PerformRefactoringOperation,RunToLineHandler
public interface IWorkspaceRunnable extends ICoreRunnable
This interface is structurally equivalent toICoreRunnable. New code should useICoreRunnableinstead ofIWorkspaceRunnable.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun(IProgressMonitor monitor)Executes this runnable.
-
-
-
Method Detail
-
run
void run(IProgressMonitor monitor) throws CoreException
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
-
-