public class ConvertLineDelimitersOperation extends TextFileBufferOperation
| Constructor and Description |
|---|
ConvertLineDelimitersOperation(String lineDelimiter)
Creates a new line delimiter conversion operation for the given target
delimiter.
|
| 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 ConvertLineDelimitersOperation(String lineDelimiter)
lineDelimiter - the target line delimiterprotected 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.