]> gerrit.simantics Code Review - simantics/platform.git/blob - ExternalOperation.java
d12414c79b2e86f46eb7b9ed283ce74459c80dc3
[simantics/platform.git] / ExternalOperation.java
1 package org.simantics.db.service;
2
3 public interface ExternalOperation {
4         /**
5          * Undoes the operation. If operation is disposed, does nothing.
6          */
7         void undo();
8
9         /**
10          * Redoes the operation. If operation is disposed, does nothing.
11          */
12         void redo();
13
14         /**
15          * Tells if external operation is still valid. For example operations
16          * related to experiments are disposed when the experiment is disposed.
17          */
18         boolean isDisposed();
19 }