Java 类org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy 实例源码

项目:LibertyEiffel-Eclipse-Plugin    文件:EiffelSourceViewerConfiguration.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {
    IAutoEditStrategy strategy = (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType) ? 
            new EiffelAutoEditStrategy() : new DefaultIndentLineAutoEditStrategy());

    return new IAutoEditStrategy[] {strategy};
}
项目:ncl30-eclipse    文件:NCLConfiguration.java   
public IAutoEditStrategy[] getAutoEditStrategies(
        ISourceViewer sourceViewer, String contentType) {
    IAutoEditStrategy strategy = (IDocument.DEFAULT_CONTENT_TYPE
            .equals(contentType) ? new XMLAutoIdentStrategy()
            : new DefaultIndentLineAutoEditStrategy());
    return new IAutoEditStrategy[] { strategy };
}
项目:idecore    文件:ApexSourceViewerConfiguration.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {
    IAutoEditStrategy strategy =
            (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType) ? new ApexAutoIndentStrategy()
                    : new DefaultIndentLineAutoEditStrategy());

    return new IAutoEditStrategy[] { strategy };
}
项目:LibertyEiffel-Eclipse-Plugin    文件:EiffelSourceViewerConfiguration.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {
    IAutoEditStrategy strategy = new DefaultIndentLineAutoEditStrategy();

    return new IAutoEditStrategy[] {strategy};
}
项目:brainfuck    文件:BfSourceViewerConfiguration.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(
        ISourceViewer sourceViewer, String contentType) {
    IAutoEditStrategy closeBrackets = new CloseBracketStrategy();
    return new IAutoEditStrategy[]{new DefaultIndentLineAutoEditStrategy(), closeBrackets};
}
项目:eclipse-gn    文件:GnSourceViewerConfiguration.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {
  return new IAutoEditStrategy[] {new DefaultIndentLineAutoEditStrategy()};
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexSourceViewerConfig.java   
@Override
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) {

    IAutoEditStrategy strategy= (IDocument.DEFAULT_CONTENT_TYPE.equalsIgnoreCase(contentType) ? new ImpexBracesAutoEditStrategy() : new DefaultIndentLineAutoEditStrategy());

    IAutoEditStrategy headerStr = (ImpexDocumentPartitioner.IMPEX_HEADER.equalsIgnoreCase(contentType) ? new ImpexBracesAutoEditStrategy() : new DefaultIndentLineAutoEditStrategy());

    return new IAutoEditStrategy[] { strategy, headerStr };
}