X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftim%2Fprune%2Fundo%2FUndoOperation.java;fp=src%2Ftim%2Fprune%2Fundo%2FUndoOperation.java;h=20f26b9247e12550b985c5dc1e4f5f0ece7938a4;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hp=0000000000000000000000000000000000000000;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465;p=GpsPrune.git diff --git a/src/tim/prune/undo/UndoOperation.java b/src/tim/prune/undo/UndoOperation.java new file mode 100644 index 0000000..20f26b9 --- /dev/null +++ b/src/tim/prune/undo/UndoOperation.java @@ -0,0 +1,22 @@ +package tim.prune.undo; + +import tim.prune.data.TrackInfo; + +/** + * Interface implemented by all Undo Operations + */ +public interface UndoOperation +{ + /** + * Get the description of this operation + * @return description of operation including parameters + */ + public String getDescription(); + + /** + * Perform the undo operation on the specified track + * @param inTrackInfo TrackInfo object on which to perform the operation + * @throws UndoException when undo fails + */ + public void performUndo(TrackInfo inTrackInfo) throws UndoException; +} \ No newline at end of file