IDEA-87924 Debugger: Ease defining breakpoint condition. Condition checkbox enables when condition is empty

This commit is contained in:
andrey.zaytsev
2012-07-23 16:52:48 +04:00
parent cb4153d235
commit 43c27ebaef
@@ -570,7 +570,7 @@ public abstract class BreakpointPropertiesPanel {
PsiElement context = breakpoint.getEvaluationElement();
myPassCountCheckbox.setSelected(breakpoint.COUNT_FILTER_ENABLED);
myConditionCheckbox.setSelected(breakpoint.CONDITION_ENABLED);
myConditionCheckbox.setSelected(breakpoint.CONDITION_ENABLED || breakpoint.getCondition() == null || breakpoint.getCondition().isEmpty());
myConditionCombo.setEnabled(myBreakpoint.CONDITION_ENABLED);