Browse Source

Bugfix: loading new path into simulator should select end state of path.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4730 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
3afdc1b708
  1. 3
      prism/src/userinterface/simulator/GUISimulator.java

3
prism/src/userinterface/simulator/GUISimulator.java

@ -625,7 +625,8 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
setPathActive(true); setPathActive(true);
pathTableModel.setPath(engine.getPathFull()); pathTableModel.setPath(engine.getPathFull());
pathTableModel.restartPathTable(); pathTableModel.restartPathTable();
pathTable.getSelectionModel().setSelectionInterval(0, 0);
int last = pathTable.getRowCount() - 1;
pathTable.getSelectionModel().setSelectionInterval(last, last);
updateTableModel.restartUpdatesTable(); updateTableModel.restartUpdatesTable();
repopulateFormulae(pf); repopulateFormulae(pf);
// Update display // Update display

Loading…
Cancel
Save