]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Avoid repetitive binding fetches for ChartAndSubscriptionItemData
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Oct 2020 08:57:37 +0000 (10:57 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Oct 2020 09:45:20 +0000 (11:45 +0200)
gitlab #629

(cherry picked from commit 912837abcdf29fbe9423703c3a180fdc238f9b03)

bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java

index 9438e404ba05d530cdeb94faddcb1f22439867a4..c3439977aaed6aa7bef89ea1f35c0b4041a1044f 100644 (file)
@@ -12,7 +12,9 @@
 package org.simantics.charts.query;
 
 import org.simantics.charts.ui.ChartAndSubscriptionItemDialog;
+import org.simantics.databoard.Bindings;
 import org.simantics.databoard.annotations.Optional;
+import org.simantics.databoard.binding.Binding;
 import org.simantics.databoard.util.Bean;
 import org.simantics.trend.configuration.Scale;
 import org.simantics.trend.configuration.TrendItem.DrawMode;
@@ -24,6 +26,12 @@ import org.simantics.trend.configuration.TrendItem.DrawMode;
  */
 public class ChartAndSubscriptionItemData extends Bean {
 
+       public static final Binding BINDING = Bindings.getBindingUnchecked(ChartAndSubscriptionItemData.class);
+
+       public ChartAndSubscriptionItemData() {
+               super(BINDING);
+       }
+
        // Input
        public int index;
        @Optional public String chartName;