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

Bug 486550

Summary: Guard FXFocusAndSelectOnClickPolicy from selecting its host if the host is not the explicit event target.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier
Version: 0.2.0   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M5   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2016-01-26 07:41:38 EST
The FXFocusAndSelectOnClickPolicy currently does not disregard events when an explicit event target other than the host can be identified. However, when registering the policy on a hierarchy of visual parts with nested visualizations, a click on a leaf visual will select the whole hierarchy. Therefore, the policy should be guarded against processing events for which an explicit event target other than the host can be identified.
Comment 1 Matthias Wienand CLA 2016-01-26 08:26:14 EST
I added a check to the FXFocusAndSelectOnClickPolicy so that its host is only selected if it is the explicit event target, i.e. if the event target is registered for the host within the visual-part-map. The code is published on the master branch, therefore, I resolve this ticket as fixed for 3.11.0M5.