Changeset 158 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures
- Timestamp:
- 11/22/2019 04:22:14 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/scriptbuilder/structures/SimulationScript.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 build 2 2 dist 3 deploy
-
- Property svn:ignore
-
trunk/src/scriptbuilder/structures/SimulationScript.java
r155 r158 207 207 /** 208 208 * Load in an existing list of units from an XML file. 209 * @param fthe file containing the units210 */ 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){ 212 212 try 213 213 { 214 SAXParserFactory.newInstance().newSAXParser().parse( f, sh);214 SAXParserFactory.newInstance().newSAXParser().parse(inStream, sh); 215 215 units.addAll(sh.getUnits()); 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.
