Changeset 14684 in josm for trunk/src


Ignore:
Timestamp:
2019-01-12T21:19:19+01:00 (6 years ago)
Author:
simon04
Message:

Fix typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java

    r14247 r14684  
    7878
    7979    private final CopyOnWriteArrayList<ListenerInfo> inEDTListeners = new CopyOnWriteArrayList<>();
    80     private final CopyOnWriteArrayList<ListenerInfo> immedatelyListeners = new CopyOnWriteArrayList<>();
     80    private final CopyOnWriteArrayList<ListenerInfo> immediatelyListeners = new CopyOnWriteArrayList<>();
    8181
    8282    /**
     
    9696     */
    9797    public void addSelectionListener(DataSelectionListener listener) {
    98         immedatelyListeners.addIfAbsent(new DataListenerInfo(listener));
     98        immediatelyListeners.addIfAbsent(new DataListenerInfo(listener));
    9999    }
    100100
     
    120120    private void remove(ListenerInfo searchListener) {
    121121        inEDTListeners.remove(searchListener);
    122         immedatelyListeners.remove(searchListener);
     122        immediatelyListeners.remove(searchListener);
    123123    }
    124124
     
    146146    @Override
    147147    public void selectionChanged(SelectionChangeEvent event) {
    148         fireEvent(immedatelyListeners, event);
     148        fireEvent(immediatelyListeners, event);
    149149        try {
    150150            GuiHelper.runInEDTAndWaitWithException(() -> fireEvent(inEDTListeners, event));
     
    170170    public void resetState() {
    171171        inEDTListeners.clear();
    172         immedatelyListeners.clear();
     172        immediatelyListeners.clear();
    173173        MainApplication.getLayerManager().addAndFireActiveLayerChangeListener(this);
    174174    }
Note: See TracChangeset for help on using the changeset viewer.