From 4925561a2a7be9f46201709dd9ab458061fdb9d5 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 23 May 2022 14:36:40 +0300 Subject: [PATCH] NatTable based GraphExplorer does not process empty selections gitlab #843 Change-Id: I1d2997b5c33b3abf569052ae95ee63580a13df93 --- .../simantics/browsing/ui/nattable/NatTableGraphExplorer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 c05b3b408..e6aaf51b2 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 @@ -1481,8 +1481,7 @@ public class NatTableGraphExplorer extends GraphExplorerImplBase implements Grap nodes.add(match.get(0)); } final ISelection sel = new StructuredSelection(nodes.toArray()); - if (coll.size() == 0) - return; + // Schedule viewer and selection update if necessary. if (natTable.isDisposed()) return; -- 2.47.1