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

Bug 499676

Summary: [Java9] Merge SWT2FXEventConverter into FXCanvasEx.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF FXAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: 5.0.0 (Oxygen) M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 501056    

Description Alexander Nyßen CLA 2016-08-15 13:43:31 EDT
In case gesture support is added to Java9, we should merge SWT2FXEventConverter into FXCanvasEx and tweak FXCanvas to rely on TKSceneListener only via reflection, and only in the Java8 case (as this is prevented when using JIGSAW).
Comment 1 Alexander Nyßen CLA 2016-08-18 02:14:21 EDT
Instead of merging SWT2FXEventConverter we may rather use an adopted version of the patch I developed from scratch for https://bugs.openjdk.java.net/browse/JDK-8143596, which properly handles inertia events as well. If my patch would be applied for Java-9, we would thereby ensure that FXCanvasEx behaves likewise for Java-8.
Comment 2 Alexander Nyßen CLA 2016-09-21 02:30:58 EDT
As JDK-8143596 will be fixed in JavaSE-1.9, removed SWT2FXGestureConverter (to not offer API that will be useless with JavaSE-1.9) and backported fix for JDK-8143596 to FXCanvasEx directly (so it provides a JavaSE-1.8 workaround for missing forwarding of gesture events that behaves identical to FXCanvas in JavaSE-1.9).

Resolving as fixed in 5.0.0 M3.