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, run
public RemoveTrailingWhitespaceOperation()
protected MultiTextEditWithProgress computeTextEdit(ITextFileBuffer fileBuffer, IProgressMonitor progressMonitor) throws CoreException
TextFileBufferOperation
computeTextEdit
in class TextFileBufferOperation
fileBuffer
- the text file buffer to manipulateprogressMonitor
- the progress monitorCoreException
- in case the computation failedprotected DocumentRewriteSessionType getDocumentRewriteSessionType()
TextFileBufferOperation
getDocumentRewriteSessionType
in class TextFileBufferOperation
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.