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

Bug 458439

Summary: Create image versions of JavaFX standard cursors without an SWT equivalent.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF FXAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M5   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2015-01-26 11:21:57 EST
Currently, not all of the JavaFX standard cursors (defined as constants in the Cursor class) have an SWT equivalent. When integrating JavaFX into SWT, those cursors cannot be converted. Therefore, image versions of these cursors have to be created, so that they can be used for the JavaFX/SWT integration.

Cursors without an SWT equivalent:
 - Cursor.CLOSED_HAND
 - Cursor.DISAPPEAR
 - Cursor.MOVE
 - Cursor.OPEN_HAND
Comment 1 Alexander Nyßen CLA 2015-02-09 12:48:46 EST
It seems JavaFX8 has implemented support for transferring cursors (see javafx.embed.swt.SWTCursors). We should compare that with our implementation and make sure there are no collisions in case JavaFX8 is used.
Comment 2 Alexander Nyßen CLA 2016-01-31 07:39:15 EST
Fixed that all cursors set on FXCanvas were ignored by FXCanvasEx. Instead, fixed missing support for image cursors by setting a respective platform cursor on the cursor frame (from within the listener). Resolving this as fixed, as we no longer provide a mapping of cursors but rely on the one provided by JavaFX.