use of org.eclipse.jst.jsp.ui.internal.format.StructuredFormattingStrategyJSP in project webtools.sourceediting by eclipse.
the class StructuredTextViewerConfigurationJSP 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 multiFormatter = (MultiPassContentFormatter) formatter;
multiFormatter.setMasterStrategy(new StructuredFormattingStrategyJSP());
multiFormatter.setSlaveStrategy(new FormattingStrategyJSPJava(), IJSPPartitions.JSP_CONTENT_JAVA);
return formatter;
}
Aggregations