From: jsimomaa Date: Sat, 16 Nov 2019 06:44:49 +0000 (+0200) Subject: Fix dynamic visualisations UI initialization X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F3562%2F2;p=simantics%2Fdistrict.git Fix dynamic visualisations UI initialization * Show if elements are hidden when first initializing the view gitlab #59 Change-Id: I3156ecdfb8f2e8580885dc5c45159947100a5ff9 (cherry picked from commit 12f7720a7e4055ead86f6b2b2926fbf31c5cf37e) --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java index 055b503a..a1b21629 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java @@ -1455,6 +1455,13 @@ public class DynamicVisualisationsUI { hoveringVertexEnabledButton.setSelection(visualisation.isKeyVariablesVertexHover()); hoveringEdgesEnabledButton.setSelection(visualisation.isKeyVariablesEdgesHover()); + hideConsumersButton.setSelection(visualisation.isHideConsumers()); + hideEdgesButton.setSelection(visualisation.isHideEdges()); + hideProducersButton.setSelection(visualisation.isHideProducers()); + hideValvesButton.setSelection(visualisation.isHideValves()); + hidePumpingStationsButton.setSelection(visualisation.isHidePumpingStations()); + hidePointsButton.setSelection(visualisation.isHidePoints()); + Map colorContributions = visualisation.getColorContributions(); for (Entry entry : colorContributions.entrySet()) {