condition checkbox can't be unckecked

This commit is contained in:
andrey.zaytsev
2013-04-04 17:09:54 +04:00
parent 611babb3ad
commit b471a0cee9
@@ -367,13 +367,26 @@ public abstract class BreakpointPropertiesPanel {
}
};
ButtonGroup checkboxesGroup = new ButtonGroup();
checkboxesGroup.add(myPassCountCheckbox);
checkboxesGroup.add(myConditionCheckbox);
myPassCountCheckbox.addActionListener(updateListener);
myPassCountCheckbox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
if (myPassCountCheckbox.isSelected()) {
myConditionCheckbox.setSelected(false);
}
updateCheckboxes();
}
});
myInstanceFiltersCheckBox.addActionListener(updateListener);
myClassFiltersCheckBox.addActionListener(updateListener);
myConditionCheckbox.addActionListener(updateListener);
myConditionCheckbox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
if (myConditionCheckbox.isSelected()) {
myPassCountCheckbox.setSelected(false);
}
updateCheckboxes();
}
});
DebuggerUIUtil.focusEditorOnCheck(myPassCountCheckbox, myPassCountField);
DebuggerUIUtil.focusEditorOnCheck(myLogExpressionCheckBox, myLogExpressionCombo);
DebuggerUIUtil.focusEditorOnCheck(myInstanceFiltersCheckBox, myInstanceFiltersField.getTextField());