]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix to NatTable graph explorer issue. (fixes #7786) 06/1506/1
authorReino Ruusu <reino.ruusu@vtt.fi>
Tue, 27 Feb 2018 14:35:06 +0000 (16:35 +0200)
committerReino Ruusu <reino.ruusu@vtt.fi>
Tue, 27 Feb 2018 14:35:06 +0000 (16:35 +0200)
Change-Id: I4de3502e86eebc5de915ca91311a4026edac3f5a

bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/NatTableGraphExplorer.java
bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/TreeNode.java

index aa384ad1d75e5abe61fbe3b0ede5a66218e67d47..2e9d5a1fce4504f726f7269aa0af733368349ebb 100644 (file)
@@ -1313,6 +1313,7 @@ public class NatTableGraphExplorer extends GraphExplorerImplBase implements Grap
 //                             } else {
 //                                     viewer.refresh(element,true);
 //                             }
+                               element.initData();
                                natTable.redraw();
                        }
                        
index ae7baa7c51715eb95cfa0c52658731e81a12b0d5..269966c30722b0834b965362a17536c1bda1100e 100644 (file)
@@ -114,7 +114,7 @@ public class TreeNode implements IAdaptable {
        Map<String, String> runtimeLabels;
        
        public String getValueString(int column) {
-               if (column == 0)
+               if (labels == null)
                        initData();
                if (labeler != null) {
                        String key = explorerContext.getGe().getColumns()[column].getKey();