Class GenericFileBufferOperationRunner
- java.lang.Object
-
- org.eclipse.core.filebuffers.manipulation.GenericFileBufferOperationRunner
-
- Direct Known Subclasses:
FileBufferOperationRunner
public class GenericFileBufferOperationRunner extends Object
AGenericFileBufferOperationRunnerexecutesIFileBufferOperation. The runner takes care of all aspects that are not operation specific.This class is not intended to be subclassed. Clients instantiate this class.
- Since:
- 3.3
- See Also:
IFileBufferOperation- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description GenericFileBufferOperationRunner(IFileBufferManager fileBufferManager, Object validationContext)Creates a new file buffer operation runner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcommit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor)protected ISchedulingRulecomputeCommitRule(IFileBuffer[] fileBuffers)protected voiddoCommit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor)voidexecute(IPath[] locations, IFileBufferOperation operation, IProgressMonitor monitor)Executes the given operation for all file buffers specified by the given locations.
-
-
-
Constructor Detail
-
GenericFileBufferOperationRunner
public GenericFileBufferOperationRunner(IFileBufferManager fileBufferManager, Object validationContext)
Creates a new file buffer operation runner.- Parameters:
fileBufferManager- the file buffer managervalidationContext- the validationContext
-
-
Method Detail
-
execute
public void execute(IPath[] locations, IFileBufferOperation operation, IProgressMonitor monitor) throws CoreException, OperationCanceledException
Executes the given operation for all file buffers specified by the given locations.- Parameters:
locations- the file buffer locationsoperation- the operation to be performedmonitor- the progress monitor, ornullif progress reporting is not desired- Throws:
CoreException- in case of errorOperationCanceledException- in case the execution get canceled
-
computeCommitRule
protected ISchedulingRule computeCommitRule(IFileBuffer[] fileBuffers)
-
commit
protected void commit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor) throws CoreException
- Throws:
CoreException
-
doCommit
protected void doCommit(IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor) throws CoreException
- Throws:
CoreException
-
-