if (DataRecorderModel.DO_NOTHING.equalsIgnoreCase(modelPostRecording)) {
doNothingRadioButton.setSelected(true);
} else {
chooseScriptRadioButton.setSelected(true);
for (int index = 0; index < scriptSelectionComboBox.getItemCount(); ++index) {
ScriptModel model = (ScriptModel) scriptSelectionComboBox.getItemAt(index);
if (model != null && model.toString().equalsIgnoreCase(modelPostRecording)) {
scriptSelectionComboBox.setSelectedIndex(index);
}
}
}
}