Ignore:
Timestamp:
2015-04-18T16:54:05+02:00 (9 years ago)
Author:
simon04
Message:

see #11000 - Remote control: allow to specify layer_name for load_and_zoom, load_object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java

    r7896 r8221  
    6464     *     i.e., parent relations, and for nodes, additionally, parent ways
    6565     * @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}.
    6667     * @param monitor ProgressMonitor to use, or null to create a new one
    6768     */
    6869    public DownloadPrimitivesWithReferrersTask(boolean newLayer, List<PrimitiveId> ids, boolean downloadReferrers,
    69             boolean full, ProgressMonitor monitor) {
     70            boolean full, String newLayerName, ProgressMonitor monitor) {
    7071        super(tr("Download objects"), monitor, false);
    7172        this.ids = ids;
     
    7475        this.newLayer = newLayer;
    7576        // 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);
    7778    }
    7879
Note: See TracChangeset for help on using the changeset viewer.