]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/load/BabelFileFormats.java
Version 16.3, July 2014
[GpsPrune.git] / tim / prune / load / BabelFileFormats.java
index ed7e627f424ea2794d51641d1ef791cca4b1481a..39359c1726f82167bc0ae848f66b8754ead6c0f4 100644 (file)
@@ -3,7 +3,7 @@ package tim.prune.load;
 /**
  * Class to manage the list of file formats supported by Gpsbabel
  * (older versions of gpsbabel might not support all of these, of course).
- * Certain supported formats such as txt, csv, gpx are not included here
+ * Certain supported formats such as txt, csv are not included here
  * as GpsPrune can already load them directly.
  */
 public abstract class BabelFileFormats
@@ -11,7 +11,7 @@ public abstract class BabelFileFormats
        /**
         * @return an object array for the format descriptions
         */
-       public static Object[] getDescriptions() {
+       public static String[] getDescriptions() {
                return getColumn(0);
        }
 
@@ -26,8 +26,10 @@ public abstract class BabelFileFormats
                {
                        final String[] suffixes = getColumn(2);
                        for (int i=0; i<suffixes.length; i++)
+                       {
                                if (suffixes[i] != null && suffixes[i].equalsIgnoreCase(inSuffix))
                                        return i;
+                       }
                }
                return -1;
        }
@@ -111,6 +113,7 @@ public abstract class BabelFileFormats
                        "GPSman", "gpsman", null,
                        "GPSPilot Tracker for Palm/OS", "gpspilot", null,
                        "gpsutil", "gpsutil", null,
+                       "GPX", "gpx", ".gpx",
                        "HikeTech", "hiketech", null,
                        "Holux (gm-100) .wpo Format", "holux", null,
                        "Holux M-241 (MTK based) Binary File Format", "m241-bin", null,