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 executionCoreException
- if the execution failspublic void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
IRunnableWithProgress
IRunnableContext
'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 IRunnableWithProgress
monitor
- 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
InterruptedException
IRunnableContext.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.