Changeset 130 in tmcsimulator-scriptbuilder for trunk/src/event/editor/frame/PropertyModel.java


Ignore:
Timestamp:
10/23/2017 08:58:34 AM (9 years ago)
Author:
bmcguffin
Message:

Changed implementation of save function for event editor panels. Instead of updating their model objects whenever the enter key is pressed, panels are now notified when the window is closed and update their information then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/event/editor/frame/PropertyModel.java

    r101 r130  
    9393        notifyObservers(arg); 
    9494    } 
     95     
     96    /** 
     97     * Propagate the window closure. 
     98     */ 
     99    public void closePanels() 
     100    { 
     101        for(JPanel panel : eventMap.keySet()) 
     102        { 
     103            if(panel instanceof I_ScriptEventEditorPanel) 
     104            { 
     105                ((I_ScriptEventEditorPanel) panel).uponClose(); 
     106            } 
     107        } 
     108    } 
    95109 
    96110    /* 
Note: See TracChangeset for help on using the changeset viewer.