prevFeatGUI[i].dispose();
}
// update GUI for <all features> - add element if needed
if (dialog.allFeaturesInput || dialog.allFeaturesOutput) {
TableTreeItem item = new TableTreeItem(parentItem, SWT.NONE);
item.setData(FEAT_TITLE);
item.setText(NAME_COL, ALL_FEATURES);
item.setText(INPUT_COL, dialog.allFeaturesInput ? INPUT : "");
item.setText(OUTPUT_COL, dialog.allFeaturesOutput ? OUTPUT : "");
}
List inputsL = new ArrayList();
List outputsL = new ArrayList();
for (int i = 0; i < dialog.features.length; i++) {
String fullName = typeName + ":" + dialog.features[i];
if (dialog.inputs[i])
inputsL.add(newFeature(fullName));
if (dialog.outputs[i])
outputsL.add(newFeature(fullName));
// update the GUI
TableTreeItem item = new TableTreeItem(parentItem, SWT.NONE);
item.setData(FEAT_TITLE);
item.setText(NAME_COL, dialog.features[i]);
item.setText(INPUT_COL, dialog.inputs[i] ? INPUT : "");
item.setText(OUTPUT_COL, dialog.outputs[i] ? OUTPUT : "");
}
parentItem.setExpanded(true);
tt.getTable().getColumn(NAME_COL).pack();
tt.setSelection(new TableTreeItem[] { parentItem });