Changeset 137 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java
- Timestamp:
- 10/24/2017 07:24:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java
r136 r137 7 7 import java.io.File; 8 8 import java.io.FileFilter; 9 import java.io.FileInputStream; 9 10 import java.io.IOException; 11 import java.io.InputStream; 12 import java.net.URISyntaxException; 13 import java.nio.file.Paths; 10 14 import java.text.SimpleDateFormat; 11 15 import java.time.LocalDate; … … 98 102 String fs = System.getProperty("file.separator"); 99 103 100 String propfilename = fs + "scriptbuilder" + fs + "gui" + fs + "application.properties"; 101 String propKey = "Incidents.directory"; 102 incDir = ""; 103 // Load the application properties (created by build.xml) 104 // 105 // String srcPath = Paths.get(".").toAbsolutePath().normalize().toString(); 106 // 107 // 108 // String propfilename = srcPath + fs + "src" + fs + "scriptbuilder" + fs + "gui" + fs + "application.properties"; 109 // String propKey = "Incidents.directory"; 110 // incDir = ""; 111 // // Load the application properties (created by build.xml) 112 // try 113 // { 114 // 115 // Properties props = new Properties(); 116 // 117 // JOptionPane.showMessageDialog(this, 118 // ""+srcPath, "Looking for Folder: \"" + propfilename + "\"", JOptionPane.INFORMATION_MESSAGE); 119 // 120 // props.load(new FileInputStream(propfilename)); 121 // 122 // JOptionPane.showMessageDialog(this, 123 // ""+propfilename, "Locating Folder: \"" + incDir + "\"", JOptionPane.INFORMATION_MESSAGE); 124 // 125 // incDir = (String) props.get(propKey); 126 // 127 // JOptionPane.showMessageDialog(this, 128 // ""+srcPath+fs+incDir, "Found Folder: \"" + incDir + "\"", JOptionPane.INFORMATION_MESSAGE); 129 // } 130 // catch (IOException ex) 131 // { 132 // Logger.getLogger("scriptbuilder.gui").log(Level.SEVERE, 133 // "IncidentPaletteFrame.loadIncidentsFromFiles." 134 // + " IOError reading " + propfilename); 135 // JOptionPane.showMessageDialog(this, 136 // ""+propfilename, "Missing Folder: \"" + propfilename + "\"", JOptionPane.ERROR_MESSAGE); 137 // } 138 104 139 Properties props = new Properties(); 105 140 //props.load(this.getClass().getResourceAsStream(propfilename));
Note: See TracChangeset
for help on using the changeset viewer.
