Changeset 158 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/SimulationScript.java


Ignore:
Timestamp:
11/22/2019 04:22:14 PM (6 years ago)
Author:
jdalbey
Message:

ScriptBuilderFrame?.java added new helper method loadCHPunits(). SimulationScript?.java changed load units method to accept an InputStream? instead of a File.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11build 
        22dist 
         3deploy 
  • trunk/src/scriptbuilder/structures/SimulationScript.java

    r155 r158  
    207207    /** 
    208208     * Load in an existing list of units from an XML file. 
    209      * @param f the file containing the units 
    210      */ 
    211     public void loadUnitsFromFile(File f){ 
     209     * @param inStream the input stream for the file containing the units 
     210     */ 
     211    public void loadUnitsFromFile(java.io.InputStream inStream){ 
    212212        try 
    213213        { 
    214             SAXParserFactory.newInstance().newSAXParser().parse(f, sh); 
     214            SAXParserFactory.newInstance().newSAXParser().parse(inStream, sh); 
    215215            units.addAll(sh.getUnits()); 
    216216        } 
Note: See TracChangeset for help on using the changeset viewer.