From: Hannu Niemistö Date: Wed, 16 Aug 2017 08:15:36 +0000 (+0300) Subject: (refs #7434) Added DefaultMouseListener to all modelled graph explorers. X-Git-Tag: v1.31.0~239 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F853%2F1;p=simantics%2Fplatform.git (refs #7434) Added DefaultMouseListener to all modelled graph explorers. Change-Id: Id5661baa6d3102e99b2457f54e0233b4f9738a41 --- 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">