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/tools/PlatformHookOsx.java

    r12620 r12634  
    1717import java.util.Collections;
    1818import java.util.List;
     19import java.util.concurrent.Executors;
    1920
    2021import javax.swing.UIManager;
     
    148149                    Object oFiles = args[0].getClass().getMethod("getFiles").invoke(args[0]);
    149150                    if (oFiles instanceof List) {
    150                         Main.worker.submit(new OpenFileTask((List<File>) oFiles, null) {
     151                        Executors.newSingleThreadExecutor(Utils.newThreadFactory("openFiles-%d", Thread.NORM_PRIORITY)).submit(
     152                                new OpenFileTask((List<File>) oFiles, null) {
    151153                            @Override
    152154                            protected void realRun() throws SAXException, IOException, OsmTransferException {
Note: See TracChangeset for help on using the changeset viewer.