@Override public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) { IAutoEditStrategy strategy = (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType) ? new EiffelAutoEditStrategy() : new DefaultIndentLineAutoEditStrategy()); return new IAutoEditStrategy[] {strategy}; }
public IAutoEditStrategy[] getAutoEditStrategies( ISourceViewer sourceViewer, String contentType) { IAutoEditStrategy strategy = (IDocument.DEFAULT_CONTENT_TYPE .equals(contentType) ? new XMLAutoIdentStrategy() : new DefaultIndentLineAutoEditStrategy()); return new IAutoEditStrategy[] { strategy }; }
@Override public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) { IAutoEditStrategy strategy = (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType) ? new ApexAutoIndentStrategy() : new DefaultIndentLineAutoEditStrategy()); return new IAutoEditStrategy[] { strategy }; }
@Override public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) { IAutoEditStrategy strategy = new DefaultIndentLineAutoEditStrategy(); return new IAutoEditStrategy[] {strategy}; }
@Override public IAutoEditStrategy[] getAutoEditStrategies( ISourceViewer sourceViewer, String contentType) { IAutoEditStrategy closeBrackets = new CloseBracketStrategy(); return new IAutoEditStrategy[]{new DefaultIndentLineAutoEditStrategy(), closeBrackets}; }
@Override public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) { return new IAutoEditStrategy[] {new DefaultIndentLineAutoEditStrategy()}; }
@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 }; }