Changeset 34805 in osm for applications/editors/josm/plugins/opendata/src/org/openstreetmap
- Timestamp:
- 2019-01-01T18:13:20+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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.