Changeset 7597 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2014-10-04T17:54:40+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/downloadtasks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r7575 r7597 68 68 public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) { 69 69 CheckParameterUtil.ensureParameterNotNull(url, "url"); 70 if (url.matches(PATTERN_TRACE_ID) || url.matches(PATTERN_EXTERNAL_GPX_SCRIPT) || url.matches(PATTERN_EXTERNAL_GPX_FILE)) { 70 if (url.matches(PATTERN_TRACE_ID) 71 || url.matches(PATTERN_EXTERNAL_GPX_SCRIPT) 72 || url.matches(PATTERN_EXTERNAL_GPX_FILE)) { 71 73 downloadTask = new DownloadTask(newLayer, 72 74 new OsmServerLocationReader(url), progressMonitor); … … 101 103 102 104 public DownloadTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) { 103 super(tr("Downloading GPS data") );105 super(tr("Downloading GPS data"), progressMonitor, false); 104 106 this.reader = reader; 105 107 this.newLayer = newLayer; … … 132 134 String name = newLayerName != null ? newLayerName : tr("Downloaded GPX Data"); 133 135 134 GpxImporterData layers = GpxImporter.loadLayers(rawData, reader.isGpxParsedProperly(), name, tr("Markers from {0}", name)); 136 GpxImporterData layers = GpxImporter.loadLayers(rawData, reader.isGpxParsedProperly(), name, 137 tr("Markers from {0}", name)); 135 138 136 139 GpxLayer gpxLayer = addOrMergeLayer(layers.getGpxLayer(), findGpxMergeLayer()); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java
r7531 r7597 72 72 73 73 public DownloadTask(OsmServerReader reader, ProgressMonitor progressMonitor) { 74 super(tr("Downloading Notes") );74 super(tr("Downloading Notes"), progressMonitor, false); 75 75 this.reader = reader; 76 76 } 77 78 77 79 78 @Override
Note:
See TracChangeset
for help on using the changeset viewer.