From a1a4d2b03feeaebf14d959abff3c964aa712ba2f Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 26 Oct 2020 10:57:37 +0200 Subject: [PATCH] Avoid repetitive binding fetches for ChartAndSubscriptionItemData gitlab #629 (cherry picked from commit 912837abcdf29fbe9423703c3a180fdc238f9b03) --- .../charts/query/ChartAndSubscriptionItemData.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java b/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java index 9438e404b..c3439977a 100644 --- a/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java +++ b/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java @@ -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; -- 2.47.1