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:
parent
d546fa13d4
commit
60a0f4fa81
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue