Ignore:
Timestamp:
2017-09-07T01:05:36+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - do not longer fire ChangesetCacheEvent in EDT - now up to listeners to run their code in it if required

File:
1 edited

Legend:

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

    r12747 r12767  
    1616import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener;
    1717import org.openstreetmap.josm.data.UserIdentityManager;
    18 import org.openstreetmap.josm.gui.util.GuiHelper;
    1918import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    2019
     
    3231 * clears itself if the OSM API URL is changed in the preferences.
    3332 *
    34  * {@link ChangesetCacheEvent}s are delivered on the EDT.
    35  *
    3633 */
    3734public final class ChangesetCache implements PreferenceChangedListener {
     
    8077
    8178    private void fireChangesetCacheEvent(final ChangesetCacheEvent e) {
    82         GuiHelper.runInEDT(() -> {
    83             for (ChangesetCacheListener l: listeners) {
    84                 l.changesetCacheUpdated(e);
    85             }
    86         });
     79        for (ChangesetCacheListener l: listeners) {
     80            l.changesetCacheUpdated(e);
     81        }
    8782    }
    8883
Note: See TracChangeset for help on using the changeset viewer.