Changeset 9461 in josm for trunk/src/org
- Timestamp:
- 2016-01-15T13:04:22+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r8510 r9461 83 83 layer.getClass().getName())); 84 84 85 File file = createAndOpenSaveFileChooser(tr("Export GPX file"), GpxImporter. FILE_FILTER);85 File file = createAndOpenSaveFileChooser(tr("Export GPX file"), GpxImporter.getFileFilter()); 86 86 if (file == null) 87 87 return; -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r8846 r9461 363 363 @Override 364 364 public File createAndOpenSaveFileChooser() { 365 return SaveActionBase.createAndOpenSaveFileChooser(tr("Save GPX file"), GpxImporter. FILE_FILTER);365 return SaveActionBase.createAndOpenSaveFileChooser(tr("Save GPX file"), GpxImporter.getFileFilter()); 366 366 } 367 367 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r9078 r9461 965 965 @Override 966 966 public File createAndOpenSaveFileChooser() { 967 return SaveActionBase.createAndOpenSaveFileChooser(tr("Save OSM file"), "osm"); 967 String extension = Main.pref.get("save.extension.osm", "osm"); 968 return SaveActionBase.createAndOpenSaveFileChooser(tr("Save OSM file"), extension); 968 969 } 969 970 -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r9231 r9461 63 63 */ 64 64 public GpxExporter() { 65 super(GpxImporter. FILE_FILTER);65 super(GpxImporter.getFileFilter()); 66 66 } 67 67 -
trunk/src/org/openstreetmap/josm/io/GpxImporter.java
r9078 r9461 24 24 */ 25 25 public class GpxImporter extends FileImporter { 26 27 /**28 * The GPX file filter (*.gpx and *.gpx.gz files).29 */30 public static final ExtensionFileFilter FILE_FILTER = ExtensionFileFilter.newFilterWithArchiveExtensions(31 "gpx", "gpx", tr("GPX Files"), true);32 26 33 27 /** … … 71 65 */ 72 66 public GpxImporter() { 73 super(FILE_FILTER); 67 super(getFileFilter()); 68 } 69 70 /** 71 * Returns a GPX file filter (*.gpx and *.gpx.gz files). 72 */ 73 public static ExtensionFileFilter getFileFilter() { 74 return ExtensionFileFilter.newFilterWithArchiveExtensions( 75 "gpx", Main.pref.get("save.extension.gpx", "gpx"), tr("GPX Files"), true); 74 76 } 75 77
Note:
See TracChangeset
for help on using the changeset viewer.