void () { if (myTarget != null) { myRunTargetCheckBox.setText(AntBundle.message("checkbox.run.named.ant.target", myTarget.getDisplayName())); } else { myRunTargetCheckBox.setText(AntBundle.message("checkbox.run.unknown.ant.target")); } final boolean enabled = myTarget != null && myRunTargetCheckBox.isSelected(); UIUtil.setEnabled(myPropertiesPanel, enabled, true); }