Ignore:
Timestamp:
11/06/2019 08:14:04 AM (6 years ago)
Author:
jdalbey
Message:

SimulationManager?.java: Implement ticket #197 - show script name in title bar when provided on command line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/simulationmanager/SimulationManager.java

    r382 r507  
    226226                arg1 = args[0]; 
    227227                File scriptFile = new File("scripts"+ System.getProperty("file.separator") + arg1); 
     228                // if the script file exists, load it and show name in title bar 
    228229                if (scriptFile.exists()) 
    229230                { 
    230231                    app.loadScript(scriptFile); 
     232                    // Implement ticket #197 
     233                    app.theSimManagerView.setTitle("Simulation Manager: " + arg1); 
    231234                    simManLogger.logp(Level.INFO,"SimulationManager","Main", 
    232235                            "Sim Mgr starting with script file: " + arg1 + "."); 
Note: See TracChangeset for help on using the changeset viewer.