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.
|
run, threadChangepublic 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
WorkspaceModifyOperationSubclasses must implement this method.
execute in class WorkspaceModifyOperationmonitor - 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.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.