]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.interop.update/src/org/simantics/interop/update/model/NopOp.java
UpdateOp specific selection propagation
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / NopOp.java
1 package org.simantics.interop.update.model;
2
3 import org.simantics.db.Resource;
4 import org.simantics.db.Statement;
5 import org.simantics.db.WriteGraph;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.interop.test.GraphChanges;
8
9 /**
10  * No-operation.
11  * 
12  * @author MLMARKO
13  *
14  */
15 public class NopOp extends UpdateOp{
16         
17         private Resource r;
18         public NopOp(Resource r, GraphChanges changes) {
19                 super(changes);
20                 this.r = r;
21         }
22
23         @Override
24         protected void _apply(WriteGraph g) throws DatabaseException {
25                 
26         }
27         
28         @Override
29         public Resource getCreatedResource() {
30                 return r;
31         }
32         
33         @Override
34         public Resource getResource() {
35                 return r;
36         }
37         
38         @Override
39         public Statement getStatement() {
40                 return null;
41         }
42         
43         @Override
44         public boolean isAdd() {
45                 return false;
46         }
47         
48         @Override
49         public boolean isDelete() {
50                 return false;
51         }
52         
53         @Override
54         public boolean requiresOp(UpdateOp op) {
55             return false;
56         }
57         
58         @Override
59         public boolean selectOp(UpdateOp op, boolean select) {
60             return false;
61         }
62
63 }