Class ContentModelFormatterParticipant
java.lang.Object
org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelFormatterParticipant
- All Implemented Interfaces:
IFormatterParticipant
Formatter participant which uses XSD/DTD grammar information to know the
FormatElementCategory of a given element.
This participant is enabled when 'xml.format.grammarAwareFormatting' setting is set to true.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints, Map<String, Collection<CMDocument>> formattingContext, SharedSettings sharedSettings) Returns the format element category for the given DOM element and null otherwise.booleanshouldCollapseEmptyElement(DOMElement element, SharedSettings sharedSettings) Returns true if the given element can be collapsed according to grammar constraints.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.extensions.format.IFormatterParticipant
formatAttributeValue, formatAttributeValue
-
Constructor Details
-
ContentModelFormatterParticipant
-
-
Method Details