}
}
private void initConstructorView() {
for (int i = 0; i < transitionNames.size(); i++) {
IfExpr ifExpr = initModel.getIfExpr(transitionNames.get(i));
if (ifExpr != null) {
labels[i].setText(ifExpr.getTransition());
if (ifExpr.isByDefault()) {
comboBoxes[i][0].setEnabled(false);
comboBoxes[i][1].setEnabled(false);
comboBoxes[i][2].setEnabled(false);
defaultTransitionCombo.setText(ifExpr.getTransition());
} else {
Variable variable = ifExpr.getVariable1();
int index = variables.indexOf(variable);
if (index == -1) {
// required variable was deleted in process
// definition
continue;
}
comboBoxes[i][0].select(index);
refreshComboItems(comboBoxes[i][0]);
BSHTypeSupport typeSupport = BSHTypeSupport.getByFormat(variable.getFormat());
index = Operation.getAll(typeSupport).indexOf(ifExpr.getOperation());
if (index == -1) {
// required operation was deleted !!!
continue;
}
comboBoxes[i][1].select(index);
refreshComboItems(comboBoxes[i][1]);
String lexem2Text = ifExpr.getLexem2TextValue();
int combo3index = 0;
if (getVariableByName(lexem2Text) != null) {
combo3index = getCombo3VariableNames(variable).indexOf(lexem2Text);
} else {
int predefinedIndex = typeSupport.getPredefinedValues(ifExpr.getOperation()).indexOf(lexem2Text);
if (predefinedIndex >= 0) {
combo3index = getCombo3VariableNames(variable).size() + predefinedIndex;
} else {
comboBoxes[i][2].add(lexem2Text, 0);
comboBoxes[i][2].setData(DATA_USER_INPUT_KEY, lexem2Text);