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

下面列出了怎么用org.eclipse.jface.text.formatter.MultiPassContentFormatter的API类实例代码及写法,或者点击链接到github查看源代码。

@Override
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
	final MultiPassContentFormatter formatter= new MultiPassContentFormatter(getConfiguredDocumentPartitioning(sourceViewer), IDocument.DEFAULT_CONTENT_TYPE);
	formatter.setMasterStrategy(new JavaFormattingStrategy());
	return formatter;
}
 
 类所在包
 类方法
 同包方法