Ignore:
Timestamp:
2019-01-01T18:13:20+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14347

Location:
applications/editors/josm/plugins/opendata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/build.xml

    r34698 r34805  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="opendata" default="dist" basedir=".">
    3     <property name="plugin.main.version" value="14256"/>
     3    <property name="plugin.main.version" value="14347"/>
    44    <property name="plugin.author" value="Don-vip"/>
    55    <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/actions/DownloadDataTask.java

    r34661 r34805  
    66import java.io.File;
    77import java.io.IOException;
     8import java.util.Optional;
    89import java.util.concurrent.Future;
    910import java.util.regex.Pattern;
     
    1314import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    1415import org.openstreetmap.josm.actions.downloadtasks.DownloadParams;
     16import org.openstreetmap.josm.data.osm.DataSet;
    1517import org.openstreetmap.josm.gui.MainApplication;
    1618import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    8385
    8486        @Override
    85         protected OsmDataLayer createNewLayer(String layerName) {
     87        protected OsmDataLayer createNewLayer(DataSet ds, Optional<String> optLayerName) {
    8688            File associatedFile = ((NetworkReader) reader).getReadFile();
    8789            String filename = ((NetworkReader) reader).getReadFileName();
    88             if (layerName == null || layerName.isEmpty()) {
     90            String layerName = optLayerName.orElse("");
     91            if (layerName.isEmpty()) {
    8992                if (associatedFile != null) {
    9093                    layerName = associatedFile.getName();
Note: See TracChangeset for help on using the changeset viewer.