Class GpxDataHelper
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.gpx.GpxDataHelper
-
public final class GpxDataHelper extends java.lang.Object
Helper class to select and load "GPX data" (GPX, NMEA, pos) files.- Since:
- 18042
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GpxDataHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.File
chooseGpxDataFile()
Opens a file chooser to let the user select a "GPX data" file and returns it.static GpxData
loadGpxData(java.io.File file)
LoadsGpxData
from the given file and returns it.
-
-
-
Constructor Detail
-
GpxDataHelper
private GpxDataHelper()
-
-
Method Detail
-
chooseGpxDataFile
public static java.io.File 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
public static GpxData loadGpxData(java.io.File file)
LoadsGpxData
from the given file and returns it. Shows message dialog in case of error.- Parameters:
file
- gpx data file, must not be null- Returns:
GpxData
file, or null in case of error
-
-