Changeset 136 in tmcsimulator-scriptbuilder for trunk/src


Ignore:
Timestamp:
10/24/2017 04:27:17 PM (9 years ago)
Author:
jdalbey
Message:

IncidentPalleteFrame?: Hard code name of incident directory to "Incidents".

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 
    62package scriptbuilder.gui; 
    73 
     
    2824 
    2925/** 
    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. 
    3128 * @author Bryan McGuffin 
    3229 */ 
     
    3431{ 
    3532 
    36     private String incDir; 
     33    private String incDir;  // name of directory of saved incidents 
    3734 
    3835    private SimulationScript script; 
     
    105102        incDir = ""; 
    106103        // 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"; 
    119109 
    120110        incidentList = loadIncidentsFromFiles(incDir); 
Note: See TracChangeset for help on using the changeset viewer.