- Timestamp:
- 2011-07-09T21:00:26+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r4191 r4217 300 300 progressMonitor.subTask(tr("Downloading OSM data...")); 301 301 try { 302 DataSet loaded = OsmReader.parseDataSet(in, progressMonitor.createSubTaskMonitor( ProgressMonitor.ALL_TICKS, false));302 DataSet loaded = OsmReader.parseDataSet(in, progressMonitor.createSubTaskMonitor(pkg.size(), false)); 303 303 rememberNodesOfIncompleteWaysToLoad(loaded); 304 304 merge(loaded); … … 324 324 progressMonitor.subTask(tr("Downloading OSM data...")); 325 325 try { 326 DataSet loaded = OsmReader.parseDataSet(in, progressMonitor.createSubTaskMonitor( ProgressMonitor.ALL_TICKS, false));326 DataSet loaded = OsmReader.parseDataSet(in, progressMonitor.createSubTaskMonitor(1, false)); 327 327 rememberNodesOfIncompleteWaysToLoad(loaded); 328 328 merge(loaded); … … 404 404 case RELATION: msg = tr("Fetching a package of relations from ''{0}''", OsmApi.getOsmApi().getBaseUrl()); break; 405 405 } 406 progressMonitor.indeterminateSubTask(msg); 406 progressMonitor.setTicksCount(ids.size()); 407 progressMonitor.setTicks(0); 407 408 Set<Long> toFetch = new HashSet<Long>(ids); 408 toFetch.addAll(ids);409 409 while(! toFetch.isEmpty() && !isCanceled()) { 410 410 Set<Long> pkg = extractIdPackage(toFetch); 411 progressMonitor.subTask(msg + "... " + progressMonitor.getTicks() + "/" + progressMonitor.getTicksCount()); 411 412 try { 412 413 multiGetIdPackage(type, pkg, progressMonitor);
Note:
See TracChangeset
for help on using the changeset viewer.