]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/UpdateNode3.java
Added new interface for user filters
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / UpdateNode3.java
index cdff0d8dadc33fa177684a032c3f4f63b9406f6d..9df0830cb3b3872dcfda1c0803ef52e9c003b354 100644 (file)
@@ -40,6 +40,26 @@ public class UpdateNode3 {
                this.un3 = un3;
        }
        
+       public boolean isVisible() {
+           if (un1 != null)
+               return un1.isVisible();
+           if (un2 != null)
+            return un2.isVisible();
+           if (un3 != null)
+            return un3.isVisible();
+           return false;
+       }
+       
+       public void setVisible(boolean visible) {
+           if (un1 != null)
+            un1.setVisible(visible);
+        if (un2 != null)
+            un2.setVisible(visible);
+        if (un3 != null)
+            un3.setVisible(visible);
+       }
+       
+       
        public static UpdateNode3 getCombinedTree(ModelUpdate update) throws DatabaseException {
                UpdateTree updateTree1 = update.getUpdateTree();
                UpdateTree updateTree2 = update.getUpdateTree2();