|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.actions.WorkspaceModifyOperation
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation
public class WorkspaceModifyDelegatingOperation
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.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected void |
execute(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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 executed| Method Detail |
|---|
protected void execute(IProgressMonitor monitor)
throws CoreException,
java.lang.InterruptedException
WorkspaceModifyOperationSubclasses must implement this method.
execute in class WorkspaceModifyOperationmonitor - the progress monitor to use to display progress and field
user requests to cancel
CoreException - if the operation fails due to a CoreException
java.lang.InterruptedException - 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.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.