Changeset 16865 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-08-10T23:19:07+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/session
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java
r9983 r16865 22 22 */ 23 23 public GpxTracksSessionExporter(GpxLayer layer) { // NO_UCD (test only) 24 super(layer, "tracks", "0.1", "gpx"); 24 this(layer, "tracks"); 25 } 26 27 protected GpxTracksSessionExporter(GpxLayer layer, String type) { 28 super(layer, type, "0.1", "gpx"); 25 29 } 26 30 -
trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionImporter.java
r15247 r16865 56 56 57 57 support.addPostLayersTask(importData.getPostLayerTask()); 58 return importData.getGpxLayer();58 return getLayer(importData); 59 59 } 60 60 … … 63 63 } 64 64 } 65 66 protected Layer getLayer(GpxImporter.GpxImporterData importData) { 67 return importData.getGpxLayer(); 68 } 65 69 } -
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r16643 r16865 166 166 registerSessionLayerImporter("imagery", ImagerySessionImporter.class); 167 167 registerSessionLayerImporter("tracks", GpxTracksSessionImporter.class); 168 registerSessionLayerImporter("routes", GpxRoutesSessionImporter.class); 168 169 registerSessionLayerImporter("geoimage", GeoImageSessionImporter.class); 169 170 registerSessionLayerImporter("markers", MarkerSessionImporter.class); -
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r15717 r16865 33 33 import org.openstreetmap.josm.gui.MapView; 34 34 import org.openstreetmap.josm.gui.layer.GpxLayer; 35 import org.openstreetmap.josm.gui.layer.GpxRouteLayer; 35 36 import org.openstreetmap.josm.gui.layer.Layer; 36 37 import org.openstreetmap.josm.gui.layer.NoteLayer; … … 73 74 registerSessionLayerExporter(WMTSLayer.class, ImagerySessionExporter.class); 74 75 registerSessionLayerExporter(GpxLayer.class, GpxTracksSessionExporter.class); 76 registerSessionLayerExporter(GpxRouteLayer.class, GpxRoutesSessionExporter.class); 75 77 registerSessionLayerExporter(GeoImageLayer.class, GeoImageSessionExporter.class); 76 78 registerSessionLayerExporter(MarkerLayer.class, MarkerSessionExporter.class);
Note:
See TracChangeset
for help on using the changeset viewer.