public interface IFileBufferOperation
File buffer operations are executed by a
FileBufferOperationRunner.
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.nullvoid 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 canceledGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.