Class GpxDataHelper
java.lang.Object
org.openstreetmap.josm.gui.layer.gpx.GpxDataHelper
Helper class to select and load "GPX data" (GPX, NMEA, pos) files.
- Since:
- 18042
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileOpens a file chooser to let the user select a "GPX data" file and returns it.static GpxDataloadGpxData(File file) LoadsGpxDatafrom the given file and returns it.
-
Constructor Details
-
GpxDataHelper
private GpxDataHelper()
-
-
Method Details
-
chooseGpxDataFile
Opens a file chooser to let the user select a "GPX data" file and returns it.- Returns:
- the file chosen by the user, or
null
-
loadGpxData
LoadsGpxDatafrom the given file and returns it. Shows message dialog in case of error.- Parameters:
file- gpx data file, must not be null- Returns:
GpxDatafile, or null in case of error
-