Changeset 67 in josm for src/org/openstreetmap
- Timestamp:
- 2006-03-23T07:50:37+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/SaveAction.java
r58 r67 14 14 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.data.osm.LineSegment; 16 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 18 import org.openstreetmap.josm.io.GpxWriter; … … 65 66 } 66 67 FileWriter fileWriter; 67 if (ExtensionFileFilter.filters[ExtensionFileFilter.GPX].acceptName(fn)) 68 if (ExtensionFileFilter.filters[ExtensionFileFilter.GPX].acceptName(fn)) { 69 for (LineSegment ls : Main.main.ds.lineSegments) { 70 if (ls.incomplete) { 71 JOptionPane.showMessageDialog(Main.main, "Export of data containing incomplete ways to GPX is not implemented.\nBe aware, that in future versions of JOSM, GPX support will be kept at a minimum.\nPlease use .osm or .xml as extension for the better OSM support."); 72 return; 73 } 74 } 68 75 new GpxWriter(fileWriter = new FileWriter(file), Main.main.ds).output(); 69 else if (ExtensionFileFilter.filters[ExtensionFileFilter.OSM].acceptName(fn))76 } else if (ExtensionFileFilter.filters[ExtensionFileFilter.OSM].acceptName(fn)) 70 77 OsmWriter.output(fileWriter = new FileWriter(file), Main.main.ds, false); 71 78 else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(fn)) {
Note:
See TracChangeset
for help on using the changeset viewer.