Changeset 136 in tmcsimulator-scriptbuilder
- Timestamp:
- 10/24/2017 04:27:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java
r132 r136 1 /* 2 * To change this license header, choose License Headers in Project Properties. 3 * To change this template file, choose Tools | Templates 4 * and open the template in the editor. 5 */ 1 6 2 package scriptbuilder.gui; 7 3 … … 28 24 29 25 /** 30 * 26 * Displays a "Pallete" of incidents from which the user can select 27 * incidents they want to include in the script they are constructing. 31 28 * @author Bryan McGuffin 32 29 */ … … 34 31 { 35 32 36 private String incDir; 33 private String incDir; // name of directory of saved incidents 37 34 38 35 private SimulationScript script; … … 105 102 incDir = ""; 106 103 // Load the application properties (created by build.xml) 107 try 108 { 109 Properties props = new Properties(); 110 props.load(this.getClass().getResourceAsStream(propfilename)); 111 incDir = (String) props.get(propKey); 112 } 113 catch (IOException ex) 114 { 115 Logger.getLogger("scriptbuilder.gui").log(Level.SEVERE, 116 "IncidentPaletteFrame.loadIncidentsFromFiles." 117 + " IOError reading " + propfilename); 118 } 104 Properties props = new Properties(); 105 //props.load(this.getClass().getResourceAsStream(propfilename)); 106 //(String) props.get(propKey); 107 // Hard code this directory name for now. 108 incDir = "Incidents"; 119 109 120 110 incidentList = loadIncidentsFromFiles(incDir);
Note: See TracChangeset
for help on using the changeset viewer.
