Changeset 130 in tmcsimulator-scriptbuilder for trunk/src/event/editor/frame
- Timestamp:
- 10/23/2017 08:58:34 AM (9 years ago)
- Location:
- trunk/src/event/editor/frame
- Files:
-
- 2 edited
-
Editor.java (modified) (2 diffs)
-
PropertyModel.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/frame/Editor.java
r119 r130 124 124 } 125 125 } 126 126 127 } 127 128 … … 150 151 public void keyReleased(KeyEvent e) 151 152 { 153 } 154 }); 155 this.addWindowListener(new WindowAdapter() 156 { 157 @Override 158 public void windowClosing(WindowEvent e) 159 { 160 //Add previous offset back in 161 //If we didn't adjust the offset, this will just set it to the old value 162 //If we deleted the first event(s), this will add the offsets, 163 //to ensure that events stay at the correct times 164 model.closePanels(); 152 165 } 153 166 }); -
trunk/src/event/editor/frame/PropertyModel.java
r101 r130 93 93 notifyObservers(arg); 94 94 } 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 } 95 109 96 110 /*
Note: See TracChangeset
for help on using the changeset viewer.
