Changeset 47 in tmcsimulator for trunk/src/tmcsim/simulationmanager


Ignore:
Timestamp:
06/28/2016 02:25:42 PM (10 years ago)
Author:
jdalbey
Message:

Merge 305 modifications into trunk.

Location:
trunk/src/tmcsim/simulationmanager
Files:
2 edited

Legend:

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

    r33 r47  
    99import java.util.logging.Level; 
    1010import java.util.logging.Logger; 
    11  
    1211import javax.swing.JOptionPane; 
    1312import javax.swing.UIManager; 
    14  
    1513import tmcsim.common.CADEnums.PARAMICS_STATUS; 
     14import tmcsim.common.ScriptException; 
    1615import tmcsim.common.SimulationException; 
    1716 
     
    4847 
    4948    private static final String CONFIG_FILE_NAME = "sim_manager_config.properties"; 
    50         /** 
     49    /** 
    5150     * Error logger. 
    5251     */ 
     
    192191 
    193192    /** 
     193     * Load a simulation script from the specified file. 
     194     * 
     195     * @param scriptFile the XML file containing the simulation control script 
     196     * to be run. 
     197     * @throws ScriptException if the script throws an exception 
     198     * @throws SimulationException if the simulation throws an exception 
     199     */ 
     200    public void loadScript(File scriptFile) throws ScriptException, SimulationException 
     201    { 
     202        theSimManagerModel.loadScript(scriptFile); 
     203    } 
     204 
     205    /** 
    194206     * Main class. 
    195207     * 
    196208     * @param args Command line arguments. 
    197209     */ 
    198     static public void main(String[] args) { 
     210    static public void main(String[] args) 
     211    { 
    199212        //System.setProperty("swing.defaultlaf", "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); 
    200         if(System.getProperty("CONFIG_DIR") == null){ 
    201                 System.setProperty("CONFIG_DIR", "config"); 
    202         } 
    203          
    204         try {            
    205                 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 
     213        if (System.getProperty("CONFIG_DIR") == null) 
     214        { 
     215            System.setProperty("CONFIG_DIR", "config"); 
     216        } 
     217 
     218        try 
     219        { 
     220            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 
    206221            new SimulationManager(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + CONFIG_FILE_NAME); 
    207         } catch (Exception e) { 
     222        } catch (Exception e) 
     223        { 
    208224            simManLogger.logp(Level.SEVERE, "SimulationManager", "Main", 
    209225                    "Error occured initializing application", e); 
  • trunk/src/tmcsim/simulationmanager/SimulationManagerView.java

    r9 r47  
    866866        paramicsStatusLabel     = new JLabel("Status:"); 
    867867        paramicsStatusInfoLabel = new JLabel("Unknown"); 
     868        paramicsStatusInfoLabel.setName("paramicsStatusInfoLabel"); 
    868869        paramicsStatusBox.add(paramicsStatusLabel); 
    869870        paramicsStatusBox.add(Box.createHorizontalStrut(10)); 
Note: See TracChangeset for help on using the changeset viewer.