- Timestamp:
- 2019-01-12T21:19:19+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java
r14247 r14684 78 78 79 79 private final CopyOnWriteArrayList<ListenerInfo> inEDTListeners = new CopyOnWriteArrayList<>(); 80 private final CopyOnWriteArrayList<ListenerInfo> immed atelyListeners = new CopyOnWriteArrayList<>();80 private final CopyOnWriteArrayList<ListenerInfo> immediatelyListeners = new CopyOnWriteArrayList<>(); 81 81 82 82 /** … … 96 96 */ 97 97 public void addSelectionListener(DataSelectionListener listener) { 98 immed atelyListeners.addIfAbsent(new DataListenerInfo(listener));98 immediatelyListeners.addIfAbsent(new DataListenerInfo(listener)); 99 99 } 100 100 … … 120 120 private void remove(ListenerInfo searchListener) { 121 121 inEDTListeners.remove(searchListener); 122 immed atelyListeners.remove(searchListener);122 immediatelyListeners.remove(searchListener); 123 123 } 124 124 … … 146 146 @Override 147 147 public void selectionChanged(SelectionChangeEvent event) { 148 fireEvent(immed atelyListeners, event);148 fireEvent(immediatelyListeners, event); 149 149 try { 150 150 GuiHelper.runInEDTAndWaitWithException(() -> fireEvent(inEDTListeners, event)); … … 170 170 public void resetState() { 171 171 inEDTListeners.clear(); 172 immed atelyListeners.clear();172 immediatelyListeners.clear(); 173 173 MainApplication.getLayerManager().addAndFireActiveLayerChangeListener(this); 174 174 }
Note:
See TracChangeset
for help on using the changeset viewer.