]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Fix district node/edge hiding profiles to work 00/2900/1 release/1.39.0
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 20 May 2019 07:46:17 +0000 (10:46 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Mon, 20 May 2019 07:46:17 +0000 (10:46 +0300)
gitlab #46
APROS-15365

Change-Id: I345d461e7f3707a4255519e71a2e1c1a903c5959

org.simantics.district.network/src/org/simantics/district/network/profile/HideStyle.java

index 8e053a065c6d88d923c29d1592586678e2316c46..d5f2620fc27732f8cc09cfbc4b231649e6e6d47f 100644 (file)
@@ -22,12 +22,14 @@ public class HideStyle extends StyleBase<Boolean> {
     public void applyStyleForNode(EvaluationContext observer, INode node, Boolean result) {
         SingleElementNode n = (SingleElementNode) node;
         n.setVisible(false);
+        n.setHidden(true);
     }
 
     @Override
     protected void cleanupStyleForNode(EvaluationContext evaluationContext, INode node) {
         SingleElementNode n = (SingleElementNode) node;
         n.setVisible(true);
+        n.setHidden(false);
     }
 
     @Override