Changeset 11092 in josm for trunk/src


Ignore:
Timestamp:
2016-10-07T21:21:43+02:00 (8 years ago)
Author:
simon04
Message:

fix #13767 - Asynchronous initializations for more reactive UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r10975 r11092  
    8181import org.openstreetmap.josm.gui.layer.MainLayerManager;
    8282import org.openstreetmap.josm.gui.layer.OsmDataLayer.CommandQueueListener;
     83import org.openstreetmap.josm.gui.layer.TMSLayer;
    8384import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
    8485import org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference;
     
    101102import org.openstreetmap.josm.tools.OpenBrowser;
    102103import org.openstreetmap.josm.tools.OsmUrlToBounds;
     104import org.openstreetmap.josm.tools.OverpassTurboQueryWizard;
    103105import org.openstreetmap.josm.tools.PlatformHook;
    104106import org.openstreetmap.josm.tools.PlatformHookOsx;
     
    528530                i.get();
    529531            }
     532            // asynchronous initializations to be completed eventually
     533            service.submit((Runnable) TMSLayer::getCache);
     534            service.submit((Runnable) OsmValidator::initializeTests);
     535            service.submit(OverpassTurboQueryWizard::getInstance);
    530536            service.shutdown();
    531537        } catch (InterruptedException | ExecutionException ex) {
Note: See TracChangeset for help on using the changeset viewer.