Search in sources :

Example 16 with XMLFormattingPreferences

use of org.eclipse.wst.xml.core.internal.formatter.XMLFormattingPreferences in project webtools.sourceediting by eclipse.

the class TestPartitionFormatterXML method testFormatCommentsDisabled.

public void testFormatCommentsDisabled() throws UnsupportedEncodingException, IOException, CoreException {
    XMLFormattingPreferences prefs = new XMLFormattingPreferences();
    prefs.setFormatCommentText(false);
    formatAndAssertEquals("testfiles/xml/xml-format-comments-disabled.xml", "testfiles/xml/xml-format-comments-disabled-fmt.xml", prefs);
}
Also used : XMLFormattingPreferences(org.eclipse.wst.xml.core.internal.formatter.XMLFormattingPreferences)

Aggregations

XMLFormattingPreferences (org.eclipse.wst.xml.core.internal.formatter.XMLFormattingPreferences)16 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 BadLocationException (org.eclipse.jface.text.BadLocationException)1 MalformedTreeException (org.eclipse.text.edits.MalformedTreeException)1 TextEdit (org.eclipse.text.edits.TextEdit)1 IStructuredModel (org.eclipse.wst.sse.core.internal.provisional.IStructuredModel)1 IStructuredDocument (org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)1