Ignore:
Timestamp:
2014-09-13T00:40:11+02:00 (5 years ago)
Author:
bastiK
Message:

applied #10503 - Note download code (patch by ToeBee)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
1 added
2 edited

Legend:

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

    r7509 r7531  
    1111import org.openstreetmap.josm.Main;
    1212import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask;
     13import org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask;
    1314import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    1415import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler;
     
    5455                Main.worker.submit(new PostDownloadHandler(task, future));
    5556            }
     57
     58            //TODO: This eventually needs to be a checkbox in the UI
     59            //For now I'm adding it as a hidden feature since this is still a work in progress
     60            if (Main.pref.getBoolean("osm.notes.enableDownload", false)) {
     61                DownloadNotesTask task = new DownloadNotesTask();
     62                Future<?> future = task.download(false, area, null);
     63                Main.worker.submit(new PostDownloadHandler(task, future));
     64            }
    5665        }
    5766    }
  • trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java

    r7434 r7531  
    2323import org.openstreetmap.josm.Main;
    2424import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask;
     25import org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask;
    2526import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeCompressedTask;
    2627import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeTask;
     
    5960        addDownloadTaskClass(DownloadOsmTask.class);
    6061        addDownloadTaskClass(DownloadGpsTask.class);
     62        addDownloadTaskClass(DownloadNotesTask.class);
    6163        addDownloadTaskClass(DownloadOsmChangeTask.class);
    6264        addDownloadTaskClass(DownloadOsmUrlTask.class);
Note: See TracChangeset for help on using the changeset viewer.