org.eclipse.jface.text.formatter.IContentFormatter#org.eclipse.jface.text.formatter.MultiPassContentFormatter源码实例Demo

下面列出了org.eclipse.jface.text.formatter.IContentFormatter#org.eclipse.jface.text.formatter.MultiPassContentFormatter 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

@Override
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
	final MultiPassContentFormatter formatter= new MultiPassContentFormatter(getConfiguredDocumentPartitioning(sourceViewer), IDocument.DEFAULT_CONTENT_TYPE);
	formatter.setMasterStrategy(new JavaFormattingStrategy());
	return formatter;
}