]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/gui/WaypointNameMatcher.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / gui / WaypointNameMatcher.java
index db0f827947475e692586c1f9ca01053f7ddff389..83a10bb7cd864e38198a126d86be30c7a40597a1 100644 (file)
@@ -10,7 +10,7 @@ import tim.prune.data.Track;
  * Class to deal with the matching of waypoint names
  * and the representation in a list
  */
-public class WaypointNameMatcher extends AbstractListModel
+public class WaypointNameMatcher extends AbstractListModel<String>
 {
        private ArrayList<DataPoint> _waypoints = null;
        private int _numPoints = 0;
@@ -73,7 +73,7 @@ public class WaypointNameMatcher extends AbstractListModel
        /**
         * @see javax.swing.ListModel#getElementAt(int)
         */
-       public Object getElementAt(int inIndex)
+       public String getElementAt(int inIndex)
        {
                return _matches.get(inIndex).getWaypointName();
        }