]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Fix dynamic visualisations UI initialization 62/3562/2
authorjsimomaa <jani.simomaa@gmail.com>
Sat, 16 Nov 2019 06:44:49 +0000 (08:44 +0200)
committerJani Simomaa <jani.simomaa@semantum.fi>
Tue, 19 Nov 2019 07:47:10 +0000 (07:47 +0000)
* Show if elements are hidden when first initializing the view

gitlab #59

Change-Id: I3156ecdfb8f2e8580885dc5c45159947100a5ff9
(cherry picked from commit 12f7720a7e4055ead86f6b2b2926fbf31c5cf37e)

org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java

index 055b503a37c2934504e13befadebb7b5a2544c6a..a1b21629d4b21fbd914c90d29efd3797ddd65d5d 100644 (file)
@@ -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<String, DynamicColorContribution> colorContributions = visualisation.getColorContributions();
                 for (Entry<String, DynamicColorContribution> entry : colorContributions.entrySet()) {