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/actions/downloadtasks/DownloadOsmChangeTask.java

    r12630 r12634  
    7777        // Extract .osc filename from URL to set the new layer name
    7878        extractOsmFilename("https?://.*/(.*\\.osc)", url);
    79         return Main.worker.submit(downloadTask);
     79        return MainApplication.worker.submit(downloadTask);
    8080    }
    8181
     
    123123                if (isCanceled()) return;
    124124                // Let's load all required history
    125                 Main.worker.submit(new HistoryLoaderAndListener(toLoad));
     125                MainApplication.worker.submit(new HistoryLoaderAndListener(toLoad));
    126126            } catch (RejectedExecutionException e) {
    127127                rememberException(e);
     
    200200                // Some primitives still need to be loaded
    201201                // Let's load all required history
    202                 Main.worker.submit(new HistoryLoaderAndListener(toLoadNext));
     202                MainApplication.worker.submit(new HistoryLoaderAndListener(toLoadNext));
    203203            }
    204204        }
Note: See TracChangeset for help on using the changeset viewer.