Changeset 8787 in josm
- Timestamp:
- 2015-09-22T22:18:04+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r8540 r8787 80 80 progressMonitor.beginTask("", 1); 81 81 try { 82 progressMonitor.indeterminateSubTask( tr("Contacting OSM Server..."));82 progressMonitor.indeterminateSubTask(getTaskName()); 83 83 if (crosses180th) { 84 84 // API 0.6 does not support requests crossing the 180th meridian, so make two requests … … 112 112 } 113 113 114 /** 115 * Returns the name of the download task to be displayed in the {@link ProgressMonitor}. 116 */ 117 protected String getTaskName() { 118 return tr("Contacting OSM Server..."); 119 } 120 121 /** 122 * Builds the request part for the bounding box. 123 */ 114 124 protected String getRequestForBbox(double lon1, double lat1, double lon2, double lat2) { 115 125 return "map?bbox=" + lon1 + "," + lat1 + "," + lon2 + "," + lat2; … … 118 128 @Override 119 129 public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException { 120 progressMonitor.beginTask( tr("Contacting OSM Server..."), 10);130 progressMonitor.beginTask(getTaskName(), 10); 121 131 try { 122 132 DataSet ds = null; -
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r8782 r8787 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.io; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.io.InputStream; … … 100 102 101 103 @Override 104 protected String getTaskName() { 105 return tr("Contacting Server..."); 106 } 107 108 @Override 102 109 public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException { 103 110
Note:
See TracChangeset
for help on using the changeset viewer.