radioReplaceFirst.setSelection(inputRule.getReplacementLimit() == ReplacementLimit.FIRST);
caseSensitiveCheckBox.setSelection(inputRule.isCaseSensitive());
regexCheckBox.setSelection(inputRule.isMatchRegularExpressions());
CapitalizationStyle capState = inputRule.getCapitalizationState();
radioAllCaps.setSelection(capState == CapitalizationStyle.ALL_CAPS);
radioAllLower.setSelection(capState == CapitalizationStyle.NO_CAPS);
radioSentenceCaps.setSelection(capState == CapitalizationStyle.SENTENCE);
radioTitleCaps.setSelection(capState == CapitalizationStyle.TITLE);
radioDontCareCaps.setSelection(capState == CapitalizationStyle.NONE);