protected abstract static class AbstractDocumentProvider.DocumentProviderOperation extends Object implements IRunnableWithProgress
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDocumentProvider.DocumentProviderOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
execute(IProgressMonitor monitor)
The actual functionality of this operation.
|
void |
run(IProgressMonitor monitor)
Runs this operation.
|
protected AbstractDocumentProvider.DocumentProviderOperation()
protected abstract void execute(IProgressMonitor monitor) throws CoreException
monitor - a progress monitor to track executionCoreExceptionpublic void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
IRunnableWithProgressIRunnableContext's run method,
which supplies the progress monitor.
A request to cancel the operation should be honored and acknowledged
by throwing InterruptedException.run in interface IRunnableWithProgressmonitor - the progress monitor to use to display progress and receive
requests for cancelationInvocationTargetException - if the run method must propagate a checked exception,
it should wrap it inside an InvocationTargetException; runtime exceptions are automatically
wrapped in an InvocationTargetException by the calling contextInterruptedException - if the operation detects a request to cancel,
using IProgressMonitor.isCanceled(), it should exit by throwing
InterruptedExceptionIRunnableContext.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.