]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/service/ExternalOperation.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / 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 }