Changeset 34801 in osm for applications/editors/josm
- Timestamp:
- 2019-01-01T14:44:20+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r34458 r34801 4 4 <property name="commit.message" value="Changed constructor for Plugin"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="14 153"/>6 <property name="plugin.main.version" value="14347"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/download/CadastreDownloadTask.java
r34711 r34801 9 9 import java.util.List; 10 10 import java.util.Objects; 11 import java.util.Optional; 11 12 import java.util.concurrent.ExecutionException; 12 13 import java.util.concurrent.Future; … … 111 112 112 113 @Override 113 protected CadastreDataLayer createNewLayer( StringlayerName) {114 String realLayerName = layerName != null ? layerName: url.substring(url.lastIndexOf('/')+1);114 protected CadastreDataLayer createNewLayer(DataSet dataset, Optional<String> layerName) { 115 String realLayerName = layerName.isPresent() ? layerName.get() : url.substring(url.lastIndexOf('/')+1); 115 116 if (realLayerName == null || realLayerName.isEmpty()) { 116 117 realLayerName = settings.getLayerName();
Note:
See TracChangeset
for help on using the changeset viewer.