]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/undo/UndoEditPoint.java
Version 7, February 2009
[GpsPrune.git] / tim / prune / undo / UndoEditPoint.java
index ae368652be0b36b98671c35dbcf213eb5f61c80c..1ee16dc72ea1ae6baa0732838ee80af2b3ed494a 100644 (file)
@@ -3,7 +3,7 @@ package tim.prune.undo;
 import tim.prune.I18nManager;\r
 import tim.prune.data.DataPoint;\r
 import tim.prune.data.TrackInfo;\r
-import tim.prune.edit.FieldEditList;\r
+import tim.prune.function.edit.FieldEditList;\r
 \r
 /**\r
  * Operation to undo the edit of a single point\r
@@ -32,8 +32,11 @@ public class UndoEditPoint implements UndoOperation
        public String getDescription()\r
        {\r
                String desc = I18nManager.getText("undo.editpoint");\r
+               String newName = _undoFieldList.getEdit(0).getValue();\r
                String pointName = _originalPoint.getWaypointName();\r
-               if (pointName != null && !pointName.equals(""))\r
+               if (newName != null && !newName.equals(""))\r
+                       desc = desc + " " + newName;\r
+               else if (pointName != null && !pointName.equals(""))\r
                        desc = desc + " " + pointName;\r
                return desc;\r
        }\r
@@ -41,7 +44,7 @@ public class UndoEditPoint implements UndoOperation
 \r
        /**\r
         * Perform the undo operation on the given Track\r
-        * @param inTrack Track object on which to perform the operation\r
+        * @param inTrackInfo TrackInfo object on which to perform the operation\r
         */\r
        public void performUndo(TrackInfo inTrackInfo) throws UndoException\r
        {\r
@@ -51,6 +54,5 @@ public class UndoEditPoint implements UndoOperation
                        // throw exception if failed\r
                        throw new UndoException(getDescription());\r
                }\r
-               // TODO: Deal with photo if necessary\r
        }\r
 }
\ No newline at end of file