checkbox should not be enabled if inspection is disabled

This commit is contained in:
Bas Leijdekkers
2011-09-19 15:33:23 +02:00
parent 71958303f4
commit 8a1178caf4
@@ -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);