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/DownloadGpsTask.java

    r12630 r12634  
    7575        // We need submit instead of execute so we can wait for it to finish and get the error
    7676        // message if necessary. If no one calls getErrorMessage() it just behaves like execute.
    77         return Main.worker.submit(downloadTask);
     77        return MainApplication.worker.submit(downloadTask);
    7878    }
    7979
     
    9999            // We need submit instead of execute so we can wait for it to finish and get the error
    100100            // message if necessary. If no one calls getErrorMessage() it just behaves like execute.
    101             return Main.worker.submit(downloadTask);
     101            return MainApplication.worker.submit(downloadTask);
    102102
    103103        } else if (url.matches(PATTERN_TRACKPOINTS_BBOX)) {
Note: See TracChangeset for help on using the changeset viewer.