T - the model type (ex : DOM Document)public class ModelTextDocument<T> extends TextDocument
TextDocument which is associate to a model loaded in async.| Constructor and Description |
|---|
ModelTextDocument(String text,
String uri,
BiFunction<TextDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,T> parse) |
ModelTextDocument(org.eclipse.lsp4j.TextDocumentItem document,
BiFunction<TextDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,T> parse) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<T> |
getModel()
Returns the completable future which loads the model.
|
void |
setText(String text) |
void |
setVersion(int version) |
getWordRangeAt, isIncremental, lineDelimiter, lineText, offsetAt, positionAt, setIncremental, updatepublic ModelTextDocument(org.eclipse.lsp4j.TextDocumentItem document,
BiFunction<TextDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,T> parse)
public ModelTextDocument(String text, String uri, BiFunction<TextDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,T> parse)
public CompletableFuture<T> getModel()
public void setText(String text)
setText in class org.eclipse.lsp4j.TextDocumentItempublic void setVersion(int version)
setVersion in class org.eclipse.lsp4j.TextDocumentItemCopyright © 2021. All rights reserved.