Changeset 34803 in osm for applications/editors/josm/plugins/imagery-xml-bounds/src/org
- Timestamp:
- 2019-01-01T15:48:40+01:00 (6 years ago)
- 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 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.util.Optional; 6 7 import java.util.concurrent.Future; 7 8 … … 9 10 import org.openstreetmap.josm.actions.downloadtasks.DownloadParams; 10 11 import org.openstreetmap.josm.data.Bounds; 12 import org.openstreetmap.josm.data.osm.DataSet; 11 13 import org.openstreetmap.josm.gui.MainApplication; 12 14 import org.openstreetmap.josm.gui.layer.Layer; … … 93 95 94 96 @Override 95 protected OsmDataLayer createNewLayer() { 96 return new XmlBoundsLayer(d ataSet, XmlBoundsLayer.createNewName(), null);97 protected OsmDataLayer createNewLayer(DataSet ds, Optional<String> layerName) { 98 return new XmlBoundsLayer(ds, layerName.orElseGet(this::generateLayerName), null); 97 99 } 98 100 }
Note:
See TracChangeset
for help on using the changeset viewer.