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

Bug 484640

Summary: Investigate replacement of AbstractFXOnClickPolicy by AbstractFXOnDragPolicy.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 0.2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 481810    

Description Matthias Wienand CLA 2015-12-18 03:56:35 EST
The AbstractFXOnClickPolicy can be used to process mouse clicks (i.e. mouse press events). However, these events can already be processed by an AbstractFXOnDragPolicy. The distinction between click and press-drag-release events was initially introduced to allow processing a mouse press event before the press-drag-release events are processed. However, in view of the currently ongoing refactoring of transaction/interaction handling (see bug #481810), we should investigate if this distinction is still necessary.

In JavaFX the MouseEvent#MOUSE_CLICKED event is only generated if the mouse remains stationary (within a threshold) for a short amount of time. However, other event data, such as the click count, can also be evaluated for MouseEvent#MOUSE_PRESSED events.
Comment 1 Alexander Nyßen CLA 2016-01-25 13:27:30 EST
As we have decided to keep the differentiation between click and drag (at least for now), resolving this as INVALID.