use of edu.cmu.cs.hcii.cogtool.view.SWTListMultiColumn in project cogtool by cogtool.
the class SEDemoUI method updateView.
/**
* Update the view: Set the View's List with the current ScriptSteps
*/
@Override
protected void updateView() {
Iterator<DefaultModelGeneratorState> states = script.getStepStates().iterator();
SWTListMultiColumn swtList = view.getScriptEditorList();
swtList.setListContents(states);
swtList.addListItem(script.getDemonstration().getResultFrame());
TableItem item = selection.getSelectedStateRow();
Table t = view.getHistoryTable();
if (item == null) {
TableItem[] items = t.getItems();
if (items.length > 0) {
t.showItem(t.getItem(items.length - 1));
}
} else {
t.showItem(item);
}
}
Aggregations