|
From: Christopher W. <caw...@us...> - 2006-04-21 21:13:35
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28089/src/org/rubypeople/rdt/ui Modified Files: PreferenceConstants.java Log Message: make over the ruby editor preference page. Add options for smart typing features (like auto-closing brackets/strings) Index: PreferenceConstants.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/PreferenceConstants.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** PreferenceConstants.java 21 Apr 2006 21:06:47 -0000 1.17 --- PreferenceConstants.java 21 Apr 2006 21:13:29 -0000 1.18 *************** *** 452,455 **** --- 452,484 ---- public final static String CODEASSIST_PREFIX_COMPLETION= "content_assist_prefix_completion"; //$NON-NLS-1$ + /** + * A named preference that controls whether the 'close strings' feature + * is enabled. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * @since 2.1 + */ + public final static String EDITOR_CLOSE_STRINGS= "closeStrings"; //$NON-NLS-1$ + + /** + * A named preference that controls whether the 'close brackets' feature is + * enabled. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * @since 2.1 + */ + public final static String EDITOR_CLOSE_BRACKETS= "closeBrackets"; //$NON-NLS-1$ + + /** + * A named preference that controls whether the 'close braces' feature is + * enabled. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * @since 2.1 + */ + public final static String EDITOR_CLOSE_BRACES= "closeBraces"; //$NON-NLS-1$ public static void initializeDefaultValues(IPreferenceStore store) { *************** *** 458,462 **** // FIXME We can't enabling using code formatter yet, because it breaks on formatting templates (when inserting via content assist) // FIXME Uncomment when we have an AST based formatter which spits out TextEdits (rather than one huge replace) ! // store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true); store.setDefault(PreferenceConstants.FORMATTER_PROFILE, ProfileManager.DEFAULT_PROFILE); --- 487,491 ---- // FIXME We can't enabling using code formatter yet, because it breaks on formatting templates (when inserting via content assist) // FIXME Uncomment when we have an AST based formatter which spits out TextEdits (rather than one huge replace) ! //store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true); store.setDefault(PreferenceConstants.FORMATTER_PROFILE, ProfileManager.DEFAULT_PROFILE); *************** *** 467,471 **** // MembersOrderPreferencePage - // TODO Expose to users! store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SF,SM,F,C,M"); //$NON-NLS-1$ store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER, "B,V,R"); //$NON-NLS-1$ --- 496,499 ---- *************** *** 480,484 **** store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false); - // TODO Expose these preferences to the user! store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true); store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true); --- 508,511 ---- *************** *** 520,524 **** store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, false); ! } --- 547,553 ---- store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, false); ! store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true); ! store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true); ! store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true); } |