Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java
r12098 r12109 117 117 * @param listener listener to add 118 118 * @param fireMode Set this to IN_EDT_CONSOLIDATED if you want the event to be fired in the EDT thread. 119 * Set it to IMMEDIATELY if you want the event to fire in the thread that caused the selection update.119 * Set it to IMMEDIATELY if you want the event to fire in the thread that caused the selection update. 120 120 */ 121 121 public void addSelectionListener(SelectionChangedListener listener, FireMode fireMode) { 122 if (fireMode == FireMode.IN_EDT) 122 if (fireMode == FireMode.IN_EDT) { 123 123 throw new UnsupportedOperationException("IN_EDT mode not supported, you probably want to use IN_EDT_CONSOLIDATED."); 124 124 } else if (fireMode == FireMode.IN_EDT_CONSOLIDATED) { -
trunk/test/unit/org/openstreetmap/josm/data/osm/event/SelectionEventManagerTest.java
r12098 r12109 32 32 private final String name; 33 33 34 publicSelectionListener(String name) {34 SelectionListener(String name) { 35 35 this.name = name; 36 36 } … … 110 110 private void assertSelectionEquals(List<SelectionListener> listeners, Object should) { 111 111 // sync 112 GuiHelper.runInEDTAndWait(() -> { });112 GuiHelper.runInEDTAndWait(() -> { }); 113 113 for (SelectionListener listener : listeners) { 114 114 assertEquals(listener.name, should, listener.newSelection);
Note:
See TracChangeset
for help on using the changeset viewer.