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

    r12581 r12634  
    1919import org.openstreetmap.josm.data.osm.UserInfo;
    2020import org.openstreetmap.josm.gui.ExceptionDialogUtil;
     21import org.openstreetmap.josm.gui.MainApplication;
    2122import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    2223import org.openstreetmap.josm.gui.io.CloseChangesetDialog;
     
    5758    @Override
    5859    public void actionPerformed(ActionEvent e) {
    59         Main.worker.submit(new DownloadOpenChangesetsTask());
     60        MainApplication.worker.submit(new DownloadOpenChangesetsTask());
    6061    }
    6162
     
    8081        Collection<Changeset> changesetsToClose = dialog.getSelectedChangesets();
    8182        CloseChangesetTask closeChangesetTask = new CloseChangesetTask(changesetsToClose);
    82         Main.worker.submit(closeChangesetTask);
     83        MainApplication.worker.submit(closeChangesetTask);
    8384    }
    8485
Note: See TracChangeset for help on using the changeset viewer.