Bug 530996 - Snippets view broken due to changes made in findMouseEventTargetInDescendantsAt()
Summary: Snippets view broken due to changes made in findMouseEventTargetInDescendants...
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-10 18:13 EST by John Collier CLA
Modified: 2018-04-17 17:47 EDT (History)
3 users (show)

See Also:


Attachments
minimal palette viewer in a view to show breakage (3.58 KB, application/zip)
2018-04-17 17:47 EDT, Nitin Dahyabhai CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Collier CLA 2018-02-10 18:13:10 EST
Due to changes made to the function findMouseEventTargetInDescendantsAt() in Figures.java for Bug 472848, the Snippets view in Eclipse is broken as of Mars.1. 

When there are multiple folders of snippets, if a user tries to select a snippet that isn't in the first folder / row, the folder will collapse and open the first folder, making it very difficult to properly select the snippet. As a result, I believe this change should be reverted so that the Snippets view can function properly

See Bug 486925 for more details.
Comment 1 Eclipse Genie CLA 2018-02-10 18:19:31 EST
GitHub Pull Request 1 created by [johnmcollier]
https://github.com/eclipse/gef-legacy/pull/1
Comment 2 Alexander Nyßen CLA 2018-02-11 14:09:12 EST
The fix to bug #486925 seems to be valid, as it ensures that findMouseEventTargetInDescendantsAt() behaves according to the contract stated in its javadoc. It didn't do that before.

I would thus assume that the mentioned snippet view relies on the previously incorrect behavior. Rather than reverting the change, I would propose to investigate how the snippet view can be adjusted to properly follow the contract.
Comment 3 Nitin Dahyabhai CLA 2018-04-17 17:47:38 EDT
Created attachment 273659 [details]
minimal palette viewer in a view to show breakage