From 4d0af33dff4368cc241d1920c52718df57aa55c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Wed, 16 Aug 2017 11:15:36 +0300 Subject: [PATCH] (refs #7434) Added DefaultMouseListener to all modelled graph explorers. Change-Id: Id5661baa6d3102e99b2457f54e0233b4f9738a41 --- .../browsing/ui/swt/widgets/GraphExplorerComposite.java | 1 + bundles/org.simantics.modeling.ui/plugin.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/GraphExplorerComposite.java b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/GraphExplorerComposite.java index f583d7e7f..249dad55c 100644 --- a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/GraphExplorerComposite.java +++ b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/GraphExplorerComposite.java @@ -373,6 +373,7 @@ public class GraphExplorerComposite extends Composite implements Widget, IAdapta } else { explorer = createExplorerControl(explorerComposite, maxChildren); } + explorer.addListener(new DefaultMouseListener(explorer)); if (args.containsKey("useNodeBrowseContexts") && Boolean.TRUE.equals(args.get("useNodeBrowseContexts"))) { useNodeBrowseContexts = true; diff --git a/bundles/org.simantics.modeling.ui/plugin.xml b/bundles/org.simantics.modeling.ui/plugin.xml index 64d39a0e2..7a29cd786 100644 --- a/bundles/org.simantics.modeling.ui/plugin.xml +++ b/bundles/org.simantics.modeling.ui/plugin.xml @@ -1653,7 +1653,7 @@ point="org.simantics.ui.doubleClick"> -- 2.47.1