Changeset 140 in tmcsimulator-scriptbuilder for trunk/src/event/editor/CMSEvaluationPanel.java
- Timestamp:
- 12/22/2017 02:05:13 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/CMSEvaluationPanel.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/CMSEvaluationPanel.java
r130 r140 35 35 event = (CMSEvaluationEvent) sei; 36 36 txtID.setText(event.cmsID); 37 37 38 38 txtLocation.setText(event.location); 39 39 40 40 txtMessage.setText(""); 41 41 for (int i = 0; i < event.message.size(); i++) … … 50 50 } 51 51 } 52 52 53 53 addButton.addActionListener(new ActionListener() 54 54 { … … 82 82 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. 83 83 } 84 84 85 85 @Override 86 86 public boolean removeAssociatedEvent() … … 94 94 public void uponClose() 95 95 { 96 event.cmsID = txtID.getText(); 97 event.location = txtLocation.getText(); 98 event.cmsType = TypeDropdown.getSelectedItem().toString(); 96 if (event != null) 97 { 98 event.cmsID = txtID.getText(); 99 event.location = txtLocation.getText(); 100 event.cmsType = TypeDropdown.getSelectedItem().toString(); 101 } 99 102 } 100 103
Note: See TracChangeset
for help on using the changeset viewer.
