public class WorkspaceModifyDelegatingOperation extends WorkspaceModifyOperation
This class may be instantiated; it is not intended to be subclassed.
Constructor and Description |
---|
WorkspaceModifyDelegatingOperation(IRunnableWithProgress content)
Creates a new operation which will delegate its work to the given
runnable.
|
WorkspaceModifyDelegatingOperation(IRunnableWithProgress content,
ISchedulingRule rule)
Creates a new operation which will delegate its work to the given
runnable using the provided scheduling rule.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(IProgressMonitor monitor)
Performs the steps that are to be treated as a single logical workspace
change.
|
getRule, run, threadChange
public WorkspaceModifyDelegatingOperation(IRunnableWithProgress content, ISchedulingRule rule)
content
- the runnable to delegate to when this operation is executedrule
- The ISchedulingRule to use or null
.public WorkspaceModifyDelegatingOperation(IRunnableWithProgress content)
content
- the runnable to delegate to when this operation is executedprotected void execute(IProgressMonitor monitor) throws CoreException, InterruptedException
WorkspaceModifyOperation
Subclasses must implement this method.
execute
in class WorkspaceModifyOperation
monitor
- the progress monitor to use to display progress and field
user requests to cancelCoreException
- if the operation fails due to a CoreExceptionInterruptedException
- if the operation detects a request to cancel,
using IProgressMonitor.isCanceled()
, it should exit by throwing
InterruptedException
. It is also possible to throw
OperationCanceledException
, which gets mapped to InterruptedException
by the run
method.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.