}
return super.performOk();
}
private void storePrefs() throws CoreException {
ChromiumLineBreakpoint breakpoint = getBreakpoint();
breakpoint.setEnabled(enabledCheckbox.getSelection());
int ignoreCountValue;
try {
ignoreCountValue = Integer.valueOf(ignoreCountText.getText());
} catch (NumberFormatException e) {
ignoreCountValue = Breakpoint.EMPTY_VALUE;
}
IgnoreCountData.State ignoreCountState = ignoreCountCheckbox.getSelection()
? IgnoreCountData.State.ENABLED : IgnoreCountData.State.DISABLED;
IgnoreCountData ignoreCountData = new IgnoreCountData(ignoreCountValue, ignoreCountState);
breakpoint.setIgnoreCountData(ignoreCountData);
String condition = null;
if (conditionCheckbox.getSelection()) {
String text = conditionText.getText().trim();
if (text.length() > 0) {
condition = text;
}
}
breakpoint.setCondition(condition);
}