public class TextEditUtils extends Object
TextEdit.| Constructor and Description |
|---|
TextEditUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
applyEdits(TextDocument document,
List<? extends org.eclipse.lsp4j.TextEdit> edits) |
static org.eclipse.lsp4j.TextEdit |
createTextEditIfNeeded(int from,
int to,
String expectedContent,
TextDocument textDocument)
Returns the
TextEdit to insert the given expected content from the
given range (from, to) of the given text document and null otherwise. |
public static org.eclipse.lsp4j.TextEdit createTextEditIfNeeded(int from,
int to,
String expectedContent,
TextDocument textDocument)
TextEdit to insert the given expected content from the
given range (from, to) of the given text document and null otherwise.from - the range from.to - the range to.expectedContent - the expected content.textDocument - the text document.TextEdit to insert the given expected content from the
given range (from, to) of the given text document and null otherwise.public static String applyEdits(TextDocument document, List<? extends org.eclipse.lsp4j.TextEdit> edits) throws BadLocationException
BadLocationExceptionCopyright © 2022. All rights reserved.