]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/service/ExternalOperation.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / ExternalOperation.java
diff --git a/bundles/org.simantics.db/src/org/simantics/db/service/ExternalOperation.java b/bundles/org.simantics.db/src/org/simantics/db/service/ExternalOperation.java
new file mode 100644 (file)
index 0000000..0e1568a
--- /dev/null
@@ -0,0 +1,19 @@
+package org.simantics.db.service;\r
+\r
+public interface ExternalOperation {\r
+       /**\r
+        * Undoes the operation. If operation is disposed, does nothing.\r
+        */\r
+       void undo();\r
+\r
+       /**\r
+        * Redoes the operation. If operation is disposed, does nothing.\r
+        */\r
+       void redo();\r
+\r
+       /**\r
+        * Tells if external operation is still valid. For example operations\r
+        * related to experiments are disposed when the experiment is disposed.\r
+        */\r
+       boolean isDisposed();\r
+}\r