mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
checkbox should not be enabled if inspection is disabled
This commit is contained in:
+5
-1
@@ -78,7 +78,11 @@ public class UnnecessaryFinalOnLocalVariableOrParameterInspection
|
||||
public void setEnabled(boolean b) {
|
||||
// hack to display correctly on initial opening of
|
||||
// inspection settings (otherwise it is always enabled)
|
||||
super.setEnabled(reportParameters);
|
||||
if (b) {
|
||||
super.setEnabled(reportParameters);
|
||||
} else {
|
||||
super.setEnabled(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
abstractOnlyCheckBox.setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user