]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7434) Added DefaultMouseListener to all modelled graph explorers. 53/853/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 16 Aug 2017 08:15:36 +0000 (11:15 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 16 Aug 2017 08:15:36 +0000 (11:15 +0300)
Change-Id: Id5661baa6d3102e99b2457f54e0233b4f9738a41

bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/GraphExplorerComposite.java
bundles/org.simantics.modeling.ui/plugin.xml

index f583d7e7f1df374f0466232cf40d786a4b14cf2b..249dad55ccc7c921e01fbff3e1a7730c97eab0ae 100644 (file)
@@ -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;
index 64d39a0e2b8190edc26891ea37d6f43212dbcd79..7a29cd7864f0f8a1c4f0b00861ea2a25715acfb3 100644 (file)
          point="org.simantics.ui.doubleClick">
       <doubleClickAction
             name="Expand Browser Node"
-            priority="0.5"
+            priority="-1"
             class="org.simantics.modeling.ui.ExpandNodeHandler">
       </doubleClickAction>
    </extension>