public class XMLFormatterDocumentNew extends Object
| Constructor and Description |
|---|
XMLFormatterDocumentNew(DOMDocument xmlDocument,
org.eclipse.lsp4j.Range range,
SharedSettings sharedSettings,
Collection<IFormatterParticipant> formatterParticipants)
XML formatter document.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends org.eclipse.lsp4j.TextEdit> |
format()
Returns a List containing multiple TextEdit, containing the newly formatted
changes of an XML document.
|
List<? extends org.eclipse.lsp4j.TextEdit> |
format(DOMDocument document,
int start,
int end) |
void |
formatChildren(DOMNode currentDOMNode,
XMLFormattingConstraints parentConstraints,
int start,
int end,
List<org.eclipse.lsp4j.TextEdit> edits) |
FormatElementCategory |
getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints)
Returns the format element category of the given DOM element.
|
public XMLFormatterDocumentNew(DOMDocument xmlDocument, org.eclipse.lsp4j.Range range, SharedSettings sharedSettings, Collection<IFormatterParticipant> formatterParticipants)
public List<? extends org.eclipse.lsp4j.TextEdit> format() throws BadLocationException
BadLocationExceptionpublic List<? extends org.eclipse.lsp4j.TextEdit> format(DOMDocument document, int start, int end)
public void formatChildren(DOMNode currentDOMNode, XMLFormattingConstraints parentConstraints, int start, int end, List<org.eclipse.lsp4j.TextEdit> edits)
public FormatElementCategory getFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints)
element - the DOM element.parentConstraints - the parent constraints.Copyright © 2022. All rights reserved.