From 7fea8fb8fb1e02ce380f03e04c694b672198f0e0 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Mon, 20 May 2019 10:46:17 +0300 Subject: [PATCH] Fix district node/edge hiding profiles to work gitlab #46 APROS-15365 Change-Id: I345d461e7f3707a4255519e71a2e1c1a903c5959 --- .../src/org/simantics/district/network/profile/HideStyle.java | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.1