]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/undo/UndoOperation.java
Moved source into separate src directory due to popular request
[GpsPrune.git] / src / tim / prune / undo / UndoOperation.java
diff --git a/src/tim/prune/undo/UndoOperation.java b/src/tim/prune/undo/UndoOperation.java
new file mode 100644 (file)
index 0000000..20f26b9
--- /dev/null
@@ -0,0 +1,22 @@
+package tim.prune.undo;\r
+\r
+import tim.prune.data.TrackInfo;\r
+\r
+/**\r
+ * Interface implemented by all Undo Operations\r
+ */\r
+public interface UndoOperation\r
+{\r
+       /**\r
+        * Get the description of this operation\r
+        * @return description of operation including parameters\r
+        */\r
+       public String getDescription();\r
+\r
+       /**\r
+        * Perform the undo operation on the specified track\r
+        * @param inTrackInfo TrackInfo object on which to perform the operation\r
+        * @throws UndoException when undo fails\r
+        */\r
+       public void performUndo(TrackInfo inTrackInfo) throws UndoException;\r
+}
\ No newline at end of file