Changeset 34805 in osm for applications
- Timestamp:
- 2019-01-01T18:13:20+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/build.xml
r34698 r34805 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="opendata" default="dist" basedir="."> 3 <property name="plugin.main.version" value="14 256"/>3 <property name="plugin.main.version" value="14347"/> 4 4 <property name="plugin.author" value="Don-vip"/> 5 5 <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 6 6 import java.io.File; 7 7 import java.io.IOException; 8 import java.util.Optional; 8 9 import java.util.concurrent.Future; 9 10 import java.util.regex.Pattern; … … 13 14 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 14 15 import org.openstreetmap.josm.actions.downloadtasks.DownloadParams; 16 import org.openstreetmap.josm.data.osm.DataSet; 15 17 import org.openstreetmap.josm.gui.MainApplication; 16 18 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 83 85 84 86 @Override 85 protected OsmDataLayer createNewLayer( String layerName) {87 protected OsmDataLayer createNewLayer(DataSet ds, Optional<String> optLayerName) { 86 88 File associatedFile = ((NetworkReader) reader).getReadFile(); 87 89 String filename = ((NetworkReader) reader).getReadFileName(); 88 if (layerName == null || layerName.isEmpty()) { 90 String layerName = optLayerName.orElse(""); 91 if (layerName.isEmpty()) { 89 92 if (associatedFile != null) { 90 93 layerName = associatedFile.getName();
Note:
See TracChangeset
for help on using the changeset viewer.