protected abstract static class TextFileDocumentProvider.DocumentProviderOperation extends Object implements IRunnableWithProgress, ISchedulingRuleProvider
Modifier | Constructor and Description |
---|---|
protected |
TextFileDocumentProvider.DocumentProviderOperation() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
execute(IProgressMonitor monitor)
The actual functionality of this operation.
|
ISchedulingRule |
getSchedulingRule()
Returns the scheduling rule.
|
void |
run(IProgressMonitor monitor)
Runs this operation.
|
protected TextFileDocumentProvider.DocumentProviderOperation()
protected abstract void execute(IProgressMonitor monitor) throws CoreException
monitor
- the progress monitorCoreException
- 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)
public ISchedulingRule getSchedulingRule()
ISchedulingRuleProvider
getSchedulingRule
in interface ISchedulingRuleProvider
null
if none
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.