Changeset 8221 in josm for trunk/src/org/openstreetmap/josm/gui/io
- Timestamp:
- 2015-04-18T16:54:05+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r7896 r8221 64 64 * i.e., parent relations, and for nodes, additionally, parent ways 65 65 * @param full if the members of a relation should be downloaded as well 66 * @param newLayerName the name to use for the new layer, can be {@code null}. 66 67 * @param monitor ProgressMonitor to use, or null to create a new one 67 68 */ 68 69 public DownloadPrimitivesWithReferrersTask(boolean newLayer, List<PrimitiveId> ids, boolean downloadReferrers, 69 boolean full, ProgressMonitor monitor) {70 boolean full, String newLayerName, ProgressMonitor monitor) { 70 71 super(tr("Download objects"), monitor, false); 71 72 this.ids = ids; … … 74 75 this.newLayer = newLayer; 75 76 // All downloaded primitives are put in a tmpLayer 76 tmpLayer = new OsmDataLayer(new DataSet(), OsmDataLayer.createNewName(), null);77 tmpLayer = new OsmDataLayer(new DataSet(), newLayerName != null ? newLayerName : OsmDataLayer.createNewName(), null); 77 78 } 78 79
Note:
See TracChangeset
for help on using the changeset viewer.