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

项目:ncl30-eclipse    文件:NCLConfiguration.java   
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
    MultiPassContentFormatter formatter = new MultiPassContentFormatter(
            getConfiguredDocumentPartitioning(sourceViewer),
            IDocument.DEFAULT_CONTENT_TYPE);

    formatter.setMasterStrategy(new NCLDocumentFormattingStrategy());
    return formatter;
}
项目:Eclipse-Postfix-Code-Completion    文件:JavaSourceViewerConfiguration.java   
@Override
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
    final MultiPassContentFormatter formatter= new MultiPassContentFormatter(getConfiguredDocumentPartitioning(sourceViewer), IDocument.DEFAULT_CONTENT_TYPE);
    formatter.setMasterStrategy(new JavaFormattingStrategy());
    return formatter;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaSourceViewerConfiguration.java   
@Override
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) {
    final MultiPassContentFormatter formatter= new MultiPassContentFormatter(getConfiguredDocumentPartitioning(sourceViewer), IDocument.DEFAULT_CONTENT_TYPE);
    formatter.setMasterStrategy(new JavaFormattingStrategy());
    return formatter;
}