mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
Refactoring: Get rid of some duplicating 'isModified()' methods, now it's part of Configurable interface
Improvements: Start using UINumericRange to validate int values we parse from text fields (settings etc.)
This commit is contained in:
-8
@@ -218,14 +218,6 @@ public class CodeStyleGenerationConfigurable implements Configurable {
|
||||
return isModified(mySettings);
|
||||
}
|
||||
|
||||
private static boolean isModified(JCheckBox checkBox, boolean value) {
|
||||
return checkBox.isSelected() != value;
|
||||
}
|
||||
|
||||
private static boolean isModified(JTextField textField, String value) {
|
||||
return !textField.getText().trim().equals(value);
|
||||
}
|
||||
|
||||
private void createUIComponents() {
|
||||
myCommenterForm = new CommenterForm(JavaLanguage.INSTANCE);
|
||||
myCommenterPanel = myCommenterForm.getCommenterPanel();
|
||||
|
||||
Reference in New Issue
Block a user