public class GenericFileBufferOperationRunner extends Object
GenericFileBufferOperationRunner
executes
IFileBufferOperation
.
The runner takes care of all aspects that are not operation specific.
This class is not intended to be subclassed. Clients instantiate this class.
IFileBufferOperation
Constructor and Description |
---|
GenericFileBufferOperationRunner(IFileBufferManager fileBufferManager,
Object validationContext)
Creates a new file buffer operation runner.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commit(IFileBuffer[] fileBuffers,
IProgressMonitor progressMonitor) |
protected ISchedulingRule |
computeCommitRule(IFileBuffer[] fileBuffers) |
protected void |
doCommit(IFileBuffer[] fileBuffers,
IProgressMonitor progressMonitor) |
void |
execute(IPath[] locations,
IFileBufferOperation operation,
IProgressMonitor monitor)
Executes the given operation for all file buffers specified by the given locations.
|
public GenericFileBufferOperationRunner(IFileBufferManager fileBufferManager, Object validationContext)
fileBufferManager
- the file buffer managervalidationContext
- the validationContextpublic void execute(IPath[] locations, IFileBufferOperation operation, IProgressMonitor monitor) throws CoreException, OperationCanceledException
locations
- the file buffer locationsoperation
- the operation to be performedmonitor
- the progress monitor, or null
if progress reporting is not desiredCoreException
- in case of errorOperationCanceledException
- in case the execution get canceledprotected ISchedulingRule computeCommitRule(IFileBuffer[] fileBuffers)
protected void commit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor) throws CoreException
CoreException
protected void doCommit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor) throws CoreException
CoreException
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.