Bug 559029

Summary: In the MVC Logo example, CloneOnClickHandler selection is overwritten by FocusAndSelectOnClickHandler
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: low-hanging fruit

Description Matthias Wienand CLA 2020-01-10 10:09:46 EST
The CloneOnClickHandler should clone the clicked part and select the clone. However, when FocusAndSelectOnClickHandler is executed afterwards on the clicked part, the selection is changed again, overwriting the desired behavior.

Possible solutions:

1) Overwrite the default FocusAndSelectOnClickHandler, so that it will not be active when cloning is done.

2) Overwrite the DefaultHandlerResolver so that only the first IOnClickHandler is executed.

3) Convert the CloneOnClickHandler into a CloneOnDragHandler (implementing IOnDragHandler) so that it is executed after the click handlers.