Changeset 123 in tmcsimulator for trunk/src/tmcsim/simulationmanager/actions/StartSimulationAction.java
- Timestamp:
- 10/15/2017 03:59:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/simulationmanager/actions/StartSimulationAction.java
r2 r123 12 12 /** 13 13 * StartSimulationAction is an AbstractAction that is used for starting 14 * the simulation. When the action is performed, the action checks 15 * whether the a connection has been made to Paramics. If not, the user 16 * is prompted whether they want to continue without a connection to Paramics. 17 * If not, the action returns. If there is a connection, or the user wishes to 18 * continue without, the action calls the SimulationManagerModel to start the 14 * the simulation. When the action is performed, 15 * the action calls the SimulationManagerModel to start the 19 16 * simulation. 20 17 * @author Matthew Cechini … … 38 35 public void actionPerformed(ActionEvent evt) { 39 36 Runnable startRunnable = new Runnable(){ 40 public void run() { 41 if(!theSimManagerView.isConnectedToParamics()) { 42 if (JOptionPane.showConfirmDialog(null, "Connection has not been " + 43 "made to the Paramics Traffic Modeler. Do you wish " + 44 "to continue?", "Paramics Connection", 45 JOptionPane.YES_NO_OPTION, 46 JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) { 47 return; 48 } 49 } 37 public void run() 38 { 39 // Remove this check because Paramics is no longer used as of 2017 40 // if(!theSimManagerView.isConnectedToParamics()) { 41 // if (JOptionPane.showConfirmDialog(null, "Connection has not been " + 42 // "made to the Paramics Traffic Modeler. Do you wish " + 43 // "to continue?", "Paramics Connection", 44 // JOptionPane.YES_NO_OPTION, 45 // JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) { 46 // return; 47 // } 48 // } 50 49 51 50 try {
Note: See TracChangeset
for help on using the changeset viewer.
