Ignore:
Timestamp:
2017-08-24T15:54:00+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.worker, replace it by gui.MainApplication.worker + code refactoring to make sure only editor packages use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r12630 r12634  
    145145                        Future<?> future = osmTask.download(newLayer, new Bounds(minlat, minlon, maxlat, maxlon),
    146146                                null /* let the task manage the progress monitor */);
    147                         Main.worker.submit(new PostDownloadHandler(osmTask, future));
     147                        MainApplication.worker.submit(new PostDownloadHandler(osmTask, future));
    148148                    }
    149149                }
     
    196196            try {
    197197                final SearchCompiler.Match search = SearchCompiler.compile(args.get("search"));
    198                 Main.worker.submit(() -> {
     198                MainApplication.worker.submit(() -> {
    199199                    final DataSet ds = Main.getLayerManager().getEditDataSet();
    200200                    final Collection<OsmPrimitive> filteredPrimitives = SubclassFilteredCollection.filter(ds.allPrimitives(), search);
     
    214214        // add changeset tags after download if necessary
    215215        if (args.containsKey("changeset_comment") || args.containsKey("changeset_source")) {
    216             Main.worker.submit(() -> {
     216            MainApplication.worker.submit(() -> {
    217217                if (Main.getLayerManager().getEditDataSet() != null) {
    218218                    if (args.containsKey("changeset_comment")) {
Note: See TracChangeset for help on using the changeset viewer.