1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

reset to the default formatter.

This commit is contained in:
Alain Magloire 2004-11-05 23:46:25 +00:00
parent d546fa13d4
commit 60a0f4fa81

View file

@ -46,7 +46,9 @@ public class CodeFormatterBlock {
protected Combo fFormatterCombo;
private static final String ATTR_NAME = "name"; //$NON-NLS-1$
private static final String ATTR_ID="id"; //$NON-NLS-1$
private static final String NONE="(NONE)";
// This is a hack until we have a default Formatter.
// For now it is comment out in the plugin.xml
private static final String NONE="(NONE)"; //$NON-NLS-1$
public CodeFormatterBlock(Preferences prefs) {
@ -64,6 +66,9 @@ public class CodeFormatterBlock {
options.put(CCorePreferenceConstants.CODE_FORMATTER, selection);
CCorePlugin.setOptions(options);
}
} else {
// simply reset to the default one.
performDefaults();
}
}