use of org.eclipse.wst.xml.ui.internal.XMLFormattingStrategy in project webtools.sourceediting by eclipse.
the class StructuredTextViewerConfigurationXML method getContentFormatter.
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
IContentFormatter formatter = super.getContentFormatter(sourceViewer);
// generic one
if (!(formatter instanceof MultiPassContentFormatter))
formatter = new MultiPassContentFormatter(getConfiguredDocumentPartitioning(sourceViewer), IXMLPartitions.XML_DEFAULT);
((MultiPassContentFormatter) formatter).setMasterStrategy(new XMLFormattingStrategy());
return formatter;
}
Aggregations