Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 439080

Summary: Selection issue when gestures enabled
Product: [Tools] GEF Reporter: Greg Watson <g.watson>
Component: MiscAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Greg Watson CLA 2014-07-07 19:06:17 EDT
If there are no nodes selected in a graph and the GraphWidget is scrolled, the user will then be unable to select a node. The condition can be reset by clicking off the graph to unselect all nodes.

This occurs because GraphWidget.DragSupport#mousePressed() checks if the selectedItems list contains the item under the mouse and returns if it does. This is to presumably to prevent repeated selection of the same node. However, the RotateGestureListener#gesture() method obtains the selection list (using GraphWidget#getSelection()) and adds all the nodes if the selection is currently empty. This occurs if the widget is scrolled.

The only way I see to get around this problem is to disable gestures when creating a GraphWidget.
Comment 1 Alexander Nyßen CLA 2015-09-16 09:55:43 EDT
This bug seems to refer to the old Zest2 code base. Resolving as WONTFIX, as this code-base is no longer provided.