Package org.eclipse.ui.actions
Class WorkspaceModifyDelegatingOperation
java.lang.Object
org.eclipse.ui.actions.WorkspaceModifyOperation
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation
- All Implemented Interfaces:
IRunnableWithProgress,IThreadListener
An operation which delegates its work to a runnable that modifies the
workspace.
This class may be instantiated; it is not intended to be subclassed.
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new operation which will delegate its work to the given runnable.Creates a new operation which will delegate its work to the given runnable using the provided scheduling rule. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(IProgressMonitor monitor) Performs the steps that are to be treated as a single logical workspace change.Methods inherited from class org.eclipse.ui.actions.WorkspaceModifyOperation
getRule, run, threadChange
-
Constructor Details
-
WorkspaceModifyDelegatingOperation
Creates a new operation which will delegate its work to the given runnable using the provided scheduling rule.- Parameters:
content- the runnable to delegate to when this operation is executedrule- The ISchedulingRule to use ornull.
-
WorkspaceModifyDelegatingOperation
Creates a new operation which will delegate its work to the given runnable. Schedule using the supplied s- Parameters:
content- the runnable to delegate to when this operation is executed
-
-
Method Details
-
execute
Description copied from class:WorkspaceModifyOperationPerforms the steps that are to be treated as a single logical workspace change.Subclasses must implement this method.
- Specified by:
executein classWorkspaceModifyOperation- Parameters:
monitor- the progress monitor to use to display progress and field user requests to cancel- Throws:
CoreException- if the operation fails due to a CoreExceptionInterruptedException- if the operation detects a request to cancel, usingIProgressMonitor.isCanceled(), it should exit by throwingInterruptedException. It is also possible to throwOperationCanceledException, which gets mapped toInterruptedExceptionby therunmethod.
-