Changeset 7432 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2014-08-19T15:59:51+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java
r6973 r7432 29 29 import org.xml.sax.SAXException; 30 30 31 /** 32 * Task downloading a set of OSM primitives. 33 * @since 4081 34 */ 31 35 public class DownloadPrimitivesTask extends PleaseWaitRunnable { 32 36 private DataSet ds; … … 43 47 44 48 /** 45 * C reates the task49 * Constructs a new {@code DownloadPrimitivesTask}. 46 50 * 47 51 * @param layer the layer in which primitives are updated. Must not be null. … … 57 61 58 62 /** 59 * C reates the task63 * Constructs a new {@code DownloadPrimitivesTask}. 60 64 * 61 65 * @param layer the layer in which primitives are updated. Must not be null. … … 68 72 */ 69 73 public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation, 70 ProgressMonitor prog essMonitor) throws IllegalArgumentException {71 super(tr("Download objects"), prog essMonitor, false /* don't ignore exception */);74 ProgressMonitor progressMonitor) throws IllegalArgumentException { 75 super(tr("Download objects"), progressMonitor, false /* don't ignore exception */); 72 76 ensureParameterNotNull(layer, "layer"); 73 77 this.ids = ids; … … 151 155 for (Relation r : ds.getRelations()) { 152 156 if (canceled) return; 153 if (r.hasIncompleteMembers()) { 157 // Relations may be incomplete in case of nested relations if child relations are accessed before their parent 158 // (it may happen because "relations" has no deterministic sort order, see #10388) 159 if (r.isIncomplete() || r.hasIncompleteMembers()) { 154 160 synchronized(this) { 155 161 if (canceled) return;
Note:
See TracChangeset
for help on using the changeset viewer.