From: Tuukka Lehtonen Date: Mon, 26 Oct 2020 08:57:37 +0000 (+0200) Subject: Avoid repetitive binding fetches for ChartAndSubscriptionItemData X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a1a4d2b03feeaebf14d959abff3c964aa712ba2f;p=simantics%2Fplatform.git Avoid repetitive binding fetches for ChartAndSubscriptionItemData gitlab #629 (cherry picked from commit 912837abcdf29fbe9423703c3a180fdc238f9b03) --- 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;