- Timestamp:
- 2020-10-15T08:27:39+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r16913 r17202 47 47 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 48 48 import org.openstreetmap.josm.io.MultiFetchServerObjectReader; 49 import org.openstreetmap.josm.io.OsmApi;50 49 import org.openstreetmap.josm.io.OsmTransferException; 51 50 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 324 323 protected int conflictsCount; 325 324 protected Exception lastException; 325 protected MultiFetchServerObjectReader reader; 326 326 327 327 DownloadTask(String title, Dialog parent) { … … 332 332 protected void cancel() { 333 333 canceled = true; 334 OsmApi.getOsmApi().cancel(); 334 synchronized (this) { 335 if (reader != null) { 336 reader.cancel(); 337 } 338 } 335 339 } 336 340 … … 423 427 protected void realRun() throws SAXException, IOException, OsmTransferException { 424 428 try { 425 MultiFetchServerObjectReaderreader = createReader();426 reader.append(relation.getMemberPrimitives( ));429 reader = createReader(); 430 reader.append(relation.getMemberPrimitives(Relation.class)); 427 431 DataSet dataSet = reader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false)); 428 432 mergeDataSet(dataSet); … … 456 460 protected void realRun() throws SAXException, IOException, OsmTransferException { 457 461 try { 458 MultiFetchServerObjectReaderreader = createReader();462 reader = createReader(); 459 463 reader.append(relations); 460 464 DataSet dataSet = reader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
Note:
See TracChangeset
for help on using the changeset viewer.