X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2Fcontributor%2Flabeler%2FColumnLabelerContributorImpl.java;fp=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2Fcontributor%2Flabeler%2FColumnLabelerContributorImpl.java;h=51963dce2d669bd8b9a3e1cb24c659db058829d2;hb=9b3e9bcb03dfd9178df2f854b448efc6eeff64b8;hp=47dcf92c255a4b3a5015931e6d6aab7212e0d688;hpb=3372e19d902075d7fd24f6b686538e73fefd26bf;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/contributor/labeler/ColumnLabelerContributorImpl.java b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/contributor/labeler/ColumnLabelerContributorImpl.java index 47dcf92c2..51963dce2 100644 --- a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/contributor/labeler/ColumnLabelerContributorImpl.java +++ b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/contributor/labeler/ColumnLabelerContributorImpl.java @@ -12,6 +12,7 @@ *******************************************************************************/ package org.simantics.browsing.ui.graph.impl.contributor.labeler; +import java.util.HashMap; import java.util.Map; import org.simantics.browsing.ui.BuiltinKeys; @@ -56,11 +57,11 @@ abstract public class ColumnLabelerContributorImpl implements Contributor auxiliary) { return false; } - public Object createToolTipContentArea(Object event, Object parent, T input) { + public Object createToolTipContentArea(Object event, Object parent, T input, Map auxiliary) { return null; } @@ -108,17 +109,23 @@ abstract public class ColumnLabelerContributorImpl implements Contributor auxiliary = new HashMap<>(); @Override public boolean createToolTip(Object event, NodeContext nodeContext) { T input = (T)context.getConstant(BuiltinKeys.INPUT); - return ColumnLabelerContributorImpl.this.shouldCreateToolTip(event, input); + return ColumnLabelerContributorImpl.this.shouldCreateToolTip(event, input, auxiliary); } @Override public Object createToolTipContent(Object event, Object parent, NodeContext nodeContext) { T input = (T)context.getConstant(BuiltinKeys.INPUT); - return ColumnLabelerContributorImpl.this.createToolTipContentArea(event, parent, input); + try { + return ColumnLabelerContributorImpl.this.createToolTipContentArea(event, parent, input, auxiliary); + } finally { + auxiliary.clear(); + } } };