mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more code style settings editor fixes: do not dispose panels on reset (do reset instead)
This commit is contained in:
+3
-1
@@ -334,7 +334,9 @@ public class CodeStyleSchemesConfigurable extends SearchableConfigurable.Parent.
|
||||
}
|
||||
|
||||
public void resetPanel() {
|
||||
ensurePanel().reset();
|
||||
if (myPanel != null) {
|
||||
myPanel.reset();
|
||||
}
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
||||
+4
-1
@@ -132,7 +132,10 @@ public class CodeStyleMainPanel extends JPanel {
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
clearPanels();
|
||||
for (NewCodeStyleSettingsPanel panel : mySettingsPanels.values()) {
|
||||
panel.reset();
|
||||
}
|
||||
|
||||
onCurrentSchemeChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user