more code style settings editor fixes: do not dispose panels on reset (do reset instead)

This commit is contained in:
Alexey Pegov
2009-11-11 17:14:38 +03:00
parent f6531e12f6
commit 6cff4ccbd9
2 changed files with 7 additions and 2 deletions
@@ -334,7 +334,9 @@ public class CodeStyleSchemesConfigurable extends SearchableConfigurable.Parent.
}
public void resetPanel() {
ensurePanel().reset();
if (myPanel != null) {
myPanel.reset();
}
}
public void reset() {
@@ -132,7 +132,10 @@ public class CodeStyleMainPanel extends JPanel {
}
public void reset() {
clearPanels();
for (NewCodeStyleSettingsPanel panel : mySettingsPanels.values()) {
panel.reset();
}
onCurrentSchemeChanged();
}