From: jsimomaa Date: Mon, 20 May 2019 07:46:17 +0000 (+0300) Subject: Fix district node/edge hiding profiles to work X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F2900%2F1;p=simantics%2Fdistrict.git Fix district node/edge hiding profiles to work gitlab #46 APROS-15365 Change-Id: I345d461e7f3707a4255519e71a2e1c1a903c5959 --- diff --git a/org.simantics.district.network/src/org/simantics/district/network/profile/HideStyle.java b/org.simantics.district.network/src/org/simantics/district/network/profile/HideStyle.java index 8e053a06..d5f2620f 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/profile/HideStyle.java +++ b/org.simantics.district.network/src/org/simantics/district/network/profile/HideStyle.java @@ -22,12 +22,14 @@ public class HideStyle extends StyleBase { 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