Changeset 132 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java


Ignore:
Timestamp:
10/23/2017 02:47:32 PM (9 years ago)
Author:
bmcguffin
Message:

Name of current working file is now visible in the title bar of the main window. If the user is working on a new file, "untitled1.xml" is displayed.

Default save file name for new files is "untitled1.xml". If the user names a file such that it doesn't end in .xml, the ".xml" suffix is added automatically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java

    r128 r132  
    126126    private ArrayList<ScriptIncident> loadIncidentsFromFiles(String directoryName) 
    127127    { 
    128  
     128        String fs = System.getProperty("file.separator"); 
    129129        ArrayList<ScriptIncident> newList = new ArrayList<ScriptIncident>(); 
    130         File folder = new File(directoryName); 
     130        File folder = new File(""+System.getProperty("user.dir")+fs+directoryName); 
    131131 
    132132        File[] incidentFiles; 
Note: See TracChangeset for help on using the changeset viewer.