Ignore:
Timestamp:
2009-10-27T01:27:50+01:00 (15 years ago)
Author:
Gubaer
Message:

More cleanup in download logic (less globals, more encapsulation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadAction.java

    r2327 r2328  
    3434   
    3535
    36     public DownloadDialog dialog;
     36    private DownloadDialog dialog;
    3737    private ExtendedDialog downloadDialog;
    3838
     
    7878                if (dialog.isDownloadOsmData()) {
    7979                    DownloadOsmTask task = new DownloadOsmTask();
    80                     Future<?> future = task.download(this, dialog.getSelectedDownloadArea(), null);
     80                    Future<?> future = task.download(dialog.isNewLayerRequired(), dialog.getSelectedDownloadArea(), null);
    8181                    Main.worker.submit(new PostDownloadHandler(task, future));
    8282                    finish = true;
     
    8484                if (dialog.isDownloadGpxData()) {
    8585                    DownloadGpsTask task = new DownloadGpsTask();
    86                     Future<?> future = task.download(this,dialog.getSelectedDownloadArea(), null);
     86                    Future<?> future = task.download(dialog.isNewLayerRequired(),dialog.getSelectedDownloadArea(), null);
    8787                    Main.worker.submit(new PostDownloadHandler(task, future));
    8888                    finish = true;
Note: See TracChangeset for help on using the changeset viewer.