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 useICoreRunnable
instead ofIWorkspaceRunnable
.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(IProgressMonitor monitor)
Executes this runnable.
-
-
-
Method Detail
-
run
void run(IProgressMonitor monitor) throws CoreException
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
-
-