Ignore:
Timestamp:
2019-01-01T15:48:40+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14347

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java

    r34306 r34803  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.util.Optional;
    67import java.util.concurrent.Future;
    78
     
    910import org.openstreetmap.josm.actions.downloadtasks.DownloadParams;
    1011import org.openstreetmap.josm.data.Bounds;
     12import org.openstreetmap.josm.data.osm.DataSet;
    1113import org.openstreetmap.josm.gui.MainApplication;
    1214import org.openstreetmap.josm.gui.layer.Layer;
     
    9395
    9496        @Override
    95         protected OsmDataLayer createNewLayer() {
    96             return new XmlBoundsLayer(dataSet, XmlBoundsLayer.createNewName(), null);
     97        protected OsmDataLayer createNewLayer(DataSet ds, Optional<String> layerName) {
     98            return new XmlBoundsLayer(ds, layerName.orElseGet(this::generateLayerName), null);
    9799        }
    98100    }
Note: See TracChangeset for help on using the changeset viewer.