From: Antti Villberg Date: Fri, 18 Sep 2020 06:23:32 +0000 (+0300) Subject: ElementUtils.setHidden does not hide element X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=3e285814e08a59e2de7fcbdf1fb6868468fe9116;p=simantics%2Fplatform.git ElementUtils.setHidden does not hide element gitlab #604 Change-Id: I7aeac94bb0e6d9841b19ea28c2f98386aeeb2f54 --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java index 4e64751df..60f11220e 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java @@ -602,6 +602,12 @@ public class MonitorClass { TextNode node = (TextNode)e.removeHint(KEY_SG_NODE); if (node != null) node.remove(); + TextNode prefixNode = (TextNode) e.getHint(KEY_SG_PREFIX_NODE); + if (prefixNode != null) + prefixNode.remove(); + TextNode suffixNode = (TextNode) e.getHint(KEY_SG_SUFFIX_NODE); + if (suffixNode != null) + suffixNode.remove(); } @Override