- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/taskmanagement/EntitySaveManager.java
r919 r1102 24 24 import java.util.Set; 25 25 26 import javax.swing.SwingUtilities;27 28 26 29 27 /** 30 * Manages time/resource-consuming saving procedures. For enti es in an expeditee Frame that28 * Manages time/resource-consuming saving procedures. For entities in an expeditee Frame that 31 29 * requires heavy-duty saving, implement the entity as a SaveableEntity. 32 30 * … … 135 133 * Saves all current registered entities and clears registrations. 136 134 * 137 * Returns immediat ly.135 * Returns immediately. 138 136 */ 139 137 public synchronized void saveAll() { … … 167 165 /** 168 166 * If something is saving, this will block the thread until all entities that 169 * have been requested to be saved has finished their saving proc cesses.167 * have been requested to be saved has finished their saving processes. 170 168 * 171 169 * @throws InterruptedException … … 237 235 if (entity.doesNeedSaving()) { 238 236 239 // notify observers that save has started - on swing thread240 SwingUtilities.invokeLater(new SafeFireEvent(entity, true));237 // notify observers that save has started 238 (new SafeFireEvent(entity, true)).run(); 241 239 242 240 // Complete the save … … 248 246 249 247 // notify observers that save has finished - on swing thread 250 SwingUtilities.invokeLater(new SafeFireEvent(entity, false));248 (new SafeFireEvent(entity, false)).run(); 251 249 } 252 250 } … … 254 252 255 253 /** 256 * Notifies all list ners of save start/completion event when run.254 * Notifies all listeners of save start/completion event when run. 257 255 * 258 256 * @author Brook Novak
Note:
See TracChangeset
for help on using the changeset viewer.