From: Reino Ruusu Date: Tue, 27 Feb 2018 14:35:06 +0000 (+0200) Subject: Fix to NatTable graph explorer issue. (fixes #7786) X-Git-Tag: v1.43.0~136^2~579 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=20f121685fb470550230a8aafe38731667b4d99c;p=simantics%2Fplatform.git Fix to NatTable graph explorer issue. (fixes #7786) Change-Id: I4de3502e86eebc5de915ca91311a4026edac3f5a --- diff --git a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java index aa384ad1d..2e9d5a1fc 100644 --- a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java +++ b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java @@ -1313,6 +1313,7 @@ public class NatTableGraphExplorer extends GraphExplorerImplBase implements Grap // } else { // viewer.refresh(element,true); // } + element.initData(); natTable.redraw(); } diff --git a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/TreeNode.java b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/TreeNode.java index ae7baa7c5..269966c30 100644 --- a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/TreeNode.java +++ b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/TreeNode.java @@ -114,7 +114,7 @@ public class TreeNode implements IAdaptable { Map runtimeLabels; public String getValueString(int column) { - if (column == 0) + if (labels == null) initData(); if (labeler != null) { String key = explorerContext.getGe().getColumns()[column].getKey();