public interface IFileBufferOperation
File buffer operations can be executed by a
FileBufferOperationRunner
or
a GenericFileBufferOperationRunner
.
The operation runner takes care of all aspects that are common to file buffer
manipulation such as creating file buffers, state validation, committing file
buffers, etc. Thus, the purpose of IFileBufferOperation
is
constrained to buffer content manipulation.
FileBufferOperationRunner
Modifier and Type | Method and Description |
---|---|
String |
getOperationName()
Returns the name of this file buffer operation.
|
void |
run(IFileBuffer fileBuffer,
IProgressMonitor monitor)
Runs this operation, that is manipulates the content of the given file
buffer.
|
String getOperationName()
FileBufferOperationRunner
while reporting
progress.null
void run(IFileBuffer fileBuffer, IProgressMonitor monitor) throws CoreException, OperationCanceledException
fileBuffer
- the file buffermonitor
- the progress monitorCoreException
- in case the content manipulation failedOperationCanceledException
- in case the monitor has been set to canceled
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.