/** * Returns the auto indentation strategy ready to be used with the given source viewer * when manipulating text of the given content type. This implementation always * returns an new instance of <code>DefaultAutoIndentStrategy</code>. * * @param sourceViewer the source viewer to be configured by this configuration * @param contentType the content type for which the strategy is applicable * @return the auto indent strategy or <code>null</code> if automatic indentation is not to be enabled * @deprecated since 3.1 use {@link #getAutoEditStrategies(ISourceViewer, String)} instead */ @Deprecated public org.eclipse.jface.text.IAutoIndentStrategy getAutoIndentStrategy(ISourceViewer sourceViewer, String contentType) { return new org.eclipse.jface.text.DefaultAutoIndentStrategy(); }
/** * Returns the auto indentation strategy ready to be used with the given source viewer * when manipulating text of the given content type. This implementation always * returns an new instance of <code>DefaultAutoIndentStrategy</code>. * * @param sourceViewer the source viewer to be configured by this configuration * @param contentType the content type for which the strategy is applicable * @return the auto indent strategy or <code>null</code> if automatic indentation is not to be enabled * @deprecated since 3.1 use {@link #getAutoEditStrategies(ISourceViewer, String)} instead */ @Deprecated public org.eclipse.jface.text.IAutoIndentStrategy getAutoIndentStrategy(ISourceViewer sourceViewer, String contentType) { return new org.eclipse.jface.text.DefaultAutoIndentStrategy(); }