Changeset 11 in tmcsimulator-scriptbuilder for trunk


Ignore:
Timestamp:
07/26/2017 05:37:49 AM (9 years ago)
Author:
jdalbey
Message:

ScriptBuilderFrame?.java: Add comments for About handler, change file filter to "xml" for open/save/saveas.

Location:
trunk/src/scriptbuilder/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form

    r8 r11  
    14791479              <Group type="102" alignment="0" attributes="0"> 
    14801480                  <EmptySpace max="-2" attributes="0"/> 
    1481                   <Component id="scriptEventsPane" pref="485" max="32767" attributes="0"/> 
     1481                  <Component id="scriptEventsPane" max="32767" attributes="0"/> 
    14821482                  <EmptySpace max="-2" attributes="0"/> 
    14831483              </Group> 
     
    15481548                  <EmptySpace max="-2" attributes="0"/> 
    15491549                  <Group type="103" groupAlignment="0" attributes="0"> 
    1550                       <Component id="incidentDescriptionPane" alignment="1" pref="453" max="32767" attributes="0"/> 
     1550                      <Component id="incidentDescriptionPane" alignment="1" max="32767" attributes="0"/> 
    15511551                      <Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/> 
    15521552                      <Group type="102" alignment="0" attributes="0"> 
     
    15571557                          <EmptySpace max="-2" attributes="0"/> 
    15581558                          <Group type="103" groupAlignment="1" attributes="0"> 
    1559                               <Component id="incidentName" pref="366" max="32767" attributes="0"/> 
    1560                               <Component id="incidentNumber" alignment="1" pref="366" max="32767" attributes="0"/> 
     1559                              <Component id="incidentName" max="32767" attributes="0"/> 
     1560                              <Component id="incidentNumber" alignment="1" max="32767" attributes="0"/> 
    15611561                          </Group> 
    15621562                      </Group> 
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java

    r8 r11  
    22672267    private void fileOpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fileOpenActionPerformed 
    22682268        JFileChooser fc = new JFileChooser(); 
    2269         fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.sim)", new String[] 
    2270         { 
    2271             "sim" 
     2269        fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.xml)", new String[] 
     2270        { 
     2271            "xml" 
    22722272        })); 
    22732273        fc.showOpenDialog(this); 
     
    22822282    private void fileSaveAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fileSaveAsActionPerformed 
    22832283        JFileChooser fc = new JFileChooser(); 
    2284         fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.sim)", new String[] 
    2285         { 
    2286             "sim" 
     2284        fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.xml)", new String[] 
     2285        { 
     2286            "xml" 
    22872287        })); 
    22882288        fc.showSaveDialog(this); 
     
    22972297    private void fileSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fileSaveActionPerformed 
    22982298        JFileChooser fc = new JFileChooser(); 
    2299         fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.sim)", new String[] 
    2300         { 
    2301             "sim" 
     2299        fc.setFileFilter(new ExtensionFileFilter("Simulation Script (.xml)", new String[] 
     2300        { 
     2301            "xml" 
    23022302        })); 
    23032303        fc.showSaveDialog(this); 
     
    27422742        script.loadScriptFromFile(fc.getSelectedFile()); 
    27432743    }//GEN-LAST:event_XMLImportBtnActionPerformed 
    2744  
     2744    /* Help > About simply displays the current SVN revision number so 
     2745     * the user can determine which version of the source code was used to 
     2746     * build the executable she is running. 
     2747     */ 
    27452748    private void helpAboutActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_helpAboutActionPerformed 
    27462749    {//GEN-HEADEREND:event_helpAboutActionPerformed 
     
    27602763        String propKey = "Application.revision"; 
    27612764        String version = "unknown"; 
     2765        // Load the application properties (created by build.xml) 
    27622766        try 
    27632767        { 
Note: See TracChangeset for help on using the changeset viewer.