Changeset 157 in tmcsimulator for trunk/src/tmcsim/client


Ignore:
Timestamp:
10/21/2017 10:42:50 AM (9 years ago)
Author:
jdalbey
Message:

ATMSBatchDriver: Added popup dialog to confirm proceeding if FEP Sim connection failed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/client/ATMSBatchDriver.java

    r152 r157  
    356356            throw new SimulationException(SimulationException.CAD_SIM_CONNECT, 
    357357                    e); 
     358             
    358359        } 
    359360    } 
     
    480481                } catch (SimulationException ex)  
    481482                { 
     483                    // Ask user if they want to proceed without FEP Sim connection 
     484                    int reply = JOptionPane.showConfirmDialog(null, "Failed to connect to FEP Sim, proceed anyway?", "Network Failure", JOptionPane.YES_NO_OPTION); 
     485                    if (reply == JOptionPane.NO_OPTION) 
     486                    { 
     487                      System.exit(0); 
     488                    } 
    482489                    System.out.println("Skipping writeToFEP..."); 
    483490                } 
Note: See TracChangeset for help on using the changeset viewer.