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%2F43%2F3543%2F1;p=simantics%2Fdistrict.git Fix dynamic visualisations UI initialization * Show if elements are hidden when first initializing the view gitlab #59 Change-Id: I3156ecdfb8f2e8580885dc5c45159947100a5ff9 --- 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()) {