From: Marko Luukkainen Date: Mon, 23 May 2022 11:36:40 +0000 (+0300) Subject: NatTable based GraphExplorer does not process empty selections X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F4913%2F2;p=simantics%2Fplatform.git NatTable based GraphExplorer does not process empty selections gitlab #843 Change-Id: I1d2997b5c33b3abf569052ae95ee63580a13df93 --- 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;