Changeset 4497 in josm for trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java
- Timestamp:
- 2011-10-07T21:50:14+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java
r4191 r4497 39 39 40 40 private OsmDataLayer layer; 41 private boolean fullRelation; 41 42 private MultiFetchServerObjectReader multiObjectReader; 42 43 private OsmServerObjectReader objectReader; … … 48 49 * @param toUpdate a collection of primitives to update from the server. Set to 49 50 * the empty collection if null. 51 * @param fullRelation true if a full download is required, i.e., 52 * a download including the immediate children of a relation. 50 53 * @throws IllegalArgumentException thrown if layer is null. 51 54 */ 52 public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids ) throws IllegalArgumentException {55 public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation) throws IllegalArgumentException { 53 56 super(tr("Download objects"), false /* don't ignore exception */); 54 57 ensureParameterNotNull(layer, "layer"); 55 58 this.ids = ids; 56 59 this.layer = layer; 60 this.fullRelation = fullRelation; 57 61 } 58 62 … … 145 149 synchronized(this) { 146 150 if (canceled) return; 147 objectReader = new OsmServerObjectReader(r.getId(), OsmPrimitiveType.RELATION, true /* full */);151 objectReader = new OsmServerObjectReader(r.getId(), OsmPrimitiveType.RELATION, fullRelation); 148 152 } 149 153 theirDataSet = objectReader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
Note:
See TracChangeset
for help on using the changeset viewer.