From 20f121685fb470550230a8aafe38731667b4d99c Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Tue, 27 Feb 2018 16:35:06 +0200 Subject: [PATCH] Fix to NatTable graph explorer issue. (fixes #7786) Change-Id: I4de3502e86eebc5de915ca91311a4026edac3f5a --- .../simantics/browsing/ui/nattable/NatTableGraphExplorer.java | 1 + .../src/org/simantics/browsing/ui/nattable/TreeNode.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.47.1