public class RemoveTrailingWhitespaceOperation extends TextFileBufferOperation
| Constructor and Description |
|---|
RemoveTrailingWhitespaceOperation()
Creates a remove trailing whitespace operation.
|
| Modifier and Type | Method and Description |
|---|---|
protected MultiTextEditWithProgress |
computeTextEdit(ITextFileBuffer fileBuffer,
IProgressMonitor progressMonitor)
Computes and returns a text edit.
|
protected DocumentRewriteSessionType |
getDocumentRewriteSessionType()
Returns the rewrite session type that corresponds to the text edit sequence.
|
getOperationName, runpublic RemoveTrailingWhitespaceOperation()
protected MultiTextEditWithProgress computeTextEdit(ITextFileBuffer fileBuffer, IProgressMonitor progressMonitor) throws CoreException
TextFileBufferOperationcomputeTextEdit in class TextFileBufferOperationfileBuffer - the text file buffer to manipulateprogressMonitor - the progress monitorCoreException - in case the computation failedprotected DocumentRewriteSessionType getDocumentRewriteSessionType()
TextFileBufferOperationgetDocumentRewriteSessionType in class TextFileBufferOperationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.