Uses of Class
org.eclipse.lemminx.commons.TextDocument
Packages that use TextDocument
Package
Description
-
Uses of TextDocument in org.eclipse.lemminx
Constructor parameters in org.eclipse.lemminx with type arguments of type TextDocumentModifierConstructorDescriptionprotectedAbstractTextDocumentService(XMLLanguageServer xmlLanguageServer, BiFunction<TextDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker, T> parse) -
Uses of TextDocument in org.eclipse.lemminx.commons
Classes in org.eclipse.lemminx.commons with type parameters of type TextDocumentModifier and TypeClassDescriptionclassTextDocuments<T extends TextDocument>A manager for simple text documentsSubclasses of TextDocument in org.eclipse.lemminx.commonsModifier and TypeClassDescriptionclassModelTextDocument<T,S> ATextDocumentwhich is associate to a model loaded in async.Methods in org.eclipse.lemminx.commons with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic StringTextEditUtils.applyEdits(TextDocument document, List<? extends org.eclipse.lsp4j.TextEdit> edits) static org.eclipse.lsp4j.TextEditTextEditUtils.createTextEditIfNeeded(int from, int to, String expectedContent, TextDocument textDocument) Returns theTextEditto insert the given expected content from the given range (from, to) of the given text document and null otherwise.Constructors in org.eclipse.lemminx.commons with parameters of type TextDocumentConstructor parameters in org.eclipse.lemminx.commons with type arguments of type TextDocumentModifierConstructorDescriptionModelTextDocument(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) ModelTextDocuments(BiFunction<TextDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker, T> parse) -
Uses of TextDocument in org.eclipse.lemminx.dom
Methods in org.eclipse.lemminx.dom that return TextDocumentMethods in org.eclipse.lemminx.dom with parameters of type TextDocumentModifier and TypeMethodDescriptionDOMParser.parse(TextDocument document, URIResolverExtensionManager resolverExtensionManager) DOMParser.parse(TextDocument document, URIResolverExtensionManager resolverExtensionManager, boolean ignoreWhitespaceContent) DOMParser.parse(TextDocument document, URIResolverExtensionManager resolverExtensionManager, boolean ignoreWhitespaceContent, org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) Constructors in org.eclipse.lemminx.dom with parameters of type TextDocumentModifierConstructorDescriptionDOMDocument(TextDocument textDocument, URIResolverExtensionManager resolverExtensionManager) -
Uses of TextDocument in org.eclipse.lemminx.extensions.index
Methods in org.eclipse.lemminx.extensions.index with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic List<GrammarReference> GrammarReferenceLocator.locate(TextDocument doc) Scans XML content and returns every grammar reference with its exact line/column position.static List<GrammarReference> GrammarReferenceLocator.locate(TextDocument doc, List<IGrammarReferenceContributor> contributors) Scans XML content and returns every grammar reference, including those discovered by extension-providedIGrammarReferenceContributors.static List<GrammarReference> GrammarReferenceLocator.locateReferencesTo(TextDocument doc, Path targetPath, Path referencingFile, List<IGrammarReferenceContributor> contributors) Finds grammar references indocthat actually resolve totargetPathwhen the containing file isreferencingFile. -
Uses of TextDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc that return TextDocumentModifier and TypeMethodDescriptionAbstractRNCRequest.getTextDocument()RNCDocument.getTextDocument()Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc with parameters of type TextDocumentModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.TextEdit> RNCLanguageService.format(TextDocument textDocument, SharedSettings sharedSettings, RNCFormattingSettings rncFormattingSettings) Formats an RNC document by adjusting whitespace (indentation, spacing around operators, blank lines between definitions).voidRNCDocument.setTextDocument(TextDocument textDocument) -
Uses of TextDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.format
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.format with parameters of type TextDocumentModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.TextEdit> RNCFormatting.format(TextDocument textDocument, SharedSettings sharedSettings, RNCFormattingSettings rncFormattingSettings) Formats the given RNC document and returns a list ofTextEdits that, when applied, produce a well-formatted document.Constructors in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.format with parameters of type TextDocumentModifierConstructorDescriptionRNCFormatterDocument(TextDocument textDocument, SharedSettings sharedSettings, RNCFormattingSettings rncFormattingSettings) Creates a new formatter for the given RNC document. -
Uses of TextDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.utils
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.utils with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic org.eclipse.lsp4j.RangeRNCPositionUtils.createRange(TextDocument document, int startOffset, int endOffset) Creates an LSPRangefrom character offsets, ornullif the offsets are invalid.static List<org.eclipse.lsp4j.Location> RNCSearchUtils.findReferences(TextDocument textDocument, RNCDefine define, boolean includeDeclaration) Finds all pattern-usage references to a given define in the RNC document.static StringRNCPositionUtils.getLineSeparator(TextDocument textDocument) Returns the line separator used in the document, falling back toSystem.lineSeparator()if the document is empty.static org.eclipse.lsp4j.RangeRNCPositionUtils.getWordRange(TextDocument textDocument, int offset, String word) Returns the LSP range of the identifier word at the given offset.static org.eclipse.lsp4j.RangeRNCPositionUtils.selectNameBeforeBraces(TextDocument document, String text, int offset) Selects the element/attribute name that precedes a{ }block ending at or near the given offset.static org.eclipse.lsp4j.RangeRNCPositionUtils.selectToken(TextDocument document, String text, int offset) Selects the token (identifier or string literal) at the given offset.static org.eclipse.lsp4j.RangeRNCPositionUtils.selectUri(TextDocument document, RNCFileReferenceNode node) Returns the range of the URI string content (without quotes) inside an include or external reference node.static org.eclipse.lsp4j.RangeRNCPositionUtils.selectWord(TextDocument document, String text, int offset, String word) Selects the range of a known word near the given offset. -
Uses of TextDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic List<org.eclipse.lsp4j.Diagnostic> RNCValidator.validate(TextDocument document, boolean unnecessaryTagSupported, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) static List<org.eclipse.lsp4j.Diagnostic> RNCValidator.validate(TextDocument document, WorkspaceIndex workspaceIndex, boolean unnecessaryTagSupported, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) static List<org.eclipse.lsp4j.Diagnostic> RNCValidator.validate(TextDocument document, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Constructors in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator with parameters of type TextDocumentModifierConstructorDescriptionLSPErrorReporterForRNC(TextDocument document, List<org.eclipse.lsp4j.Diagnostic> diagnostics, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
Uses of TextDocument in org.eclipse.lemminx.services.format
Constructors in org.eclipse.lemminx.services.format with parameters of type TextDocumentModifierConstructorDescriptionXMLFormatterDocumentOld(TextDocument textDocument, org.eclipse.lsp4j.Range range, SharedSettings sharedSettings, Collection<IFormatterParticipant> formatterParticipants) XML formatter document. -
Uses of TextDocument in org.eclipse.lemminx.utils
Methods in org.eclipse.lemminx.utils with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic StringTextEditUtils.applyEdits(TextDocument document, List<? extends org.eclipse.lsp4j.TextEdit> edits) Deprecated.static org.eclipse.lsp4j.TextEditTextEditUtils.createTextEditIfNeeded(int from, int to, String expectedContent, TextDocument textDocument)
TextEditUtils.applyEdits(TextDocument, List)