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

Bug 427106

Summary: Forward multitouch gestures to SwtFXCanvas
Product: [Tools] GEF Reporter: Jan Koehnlein <jan>
Component: GEF FXAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: nyssen
Version: unspecifiedFlags: nyssen: iplog+
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
gesture support for the SwtFXCanvas none

Description Jan Koehnlein CLA 2014-01-31 06:10:17 EST
Created attachment 239521 [details]
gesture support for the SwtFXCanvas

The FXCanvas does forward SWT gesture events to the FX scene. 
See https://javafx-jira.kenai.com/browse/RT-33454
As the extension of the FXCanvas has been postponed by the JavaFX project, I would like to contribute my patch to GEF4. 

Disclaimer :-)
- I could only test it with Java 1.7 on MacOSX. So feel free to reject it if it breaks on other platforms. I've also added a Demo application. Feel free to remove/move it to an appropriate location.
- I have no idea how to unit test this :-)
- At least on MacOSX, JavaFX already converts vertical scroll gestures  to mouse wheel events. There is no way I can avoid this.
Comment 1 Alexander Nyßen CLA 2014-01-31 06:39:49 EST
Thanks Jan! 

Following the contribution guidelines (https://wiki.eclipse.org/Development_Resources/IP_Due_Diligence_for_Git_and_Gerrit; here, the Git section applies), it is required that you confirm that your contribution matches the Eclipse Foundation Contributor’s Certificate of Origin (http://www.eclipse.org/legal/CoO.php).
Comment 2 Jan Koehnlein CLA 2014-01-31 07:28:59 EST
I hereby confirm certify that my contribution matches the Eclipse Foundation Contributor’s Certificate of Origin as defined in http://www.eclipse.org/legal/CoO.php.
Comment 3 Alexander Nyßen CLA 2014-01-31 08:04:48 EST
Thanks! Created CQ 7897 to keep track of the contribution.
Comment 4 Alexander Nyßen CLA 2014-02-06 12:35:18 EST
CQ 7897 has been approved (under the obligation that the respective copyright headers are added).
Comment 5 Alexander Nyßen CLA 2014-02-06 12:52:15 EST
Added copyright headers as required. Renamed org.eclipse.gef4.swtfx.gestures.Demo into org.eclipse.gef4.swtfx.examples.snippets.SwtFXCanvasGesturesDemo and moved it into the org.eclipse.gef4.swtfx.examples plug-in.

Pushed patch with above outlined changes to origin/master, resolving this as FIXED.

Jan, thank's again for your contribution.
Comment 6 Alexander Nyßen CLA 2014-08-11 16:29:17 EDT
Change component to FX, as SwtFX is succeeded by FX.UI.