Developers switching from e4 on SWT over to e4 on JavaFX have been missing the feature to reorder the tabs inside their window.
One of the main targets of 1.0.0 is to close the gap between the SWT and JavaFX implementation so I’ve been working on this feature lately and today I can report about initial progress.
As of now the implementation makes use of reflection to access TabPaneSkin stuff but we are working with upstream JavaFX to get in a proper API like we’ve done already before.
Things not yet implemented:
- Detatching via DnD
- Splitting of areas via DnD
This new support will be in the nightlies – if you find issues please attach them to Bug 434228 – [e4] Add support for DnD of Parts
I finally managed to get it working in my app. The use of caspian stylesheet prevented it from working. It looks very good so far. There are some bugs but i guess you’re already aware of it, since it is work in progress.
Please file bugs for things who don’t work
Pingback: JavaFX links of the week, May 19 // JavaFX News, Demos and Insight // FX Experience
Hi Tom, looks amazing! Could you share please the source codes, so we can learn?
TabPane subclass: at http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/internal/DnDTabPane.java
Feedback impl: http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/internal/DefaultDnDFeedback.java
Feedback markers: http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/markers
Thank Tom, I appreciate it.
Exactly what I was after. Looking forward to seeing this in JavaFX. Thanks
Pingback: JRebirth Workbench First Step | JRebirth's Blog
Hi Tom, I was wondering if it’s possible to handle the event when tab is dropped outside the TabPane head.
The code in the latest release supports that yes
Is there a sample code that I can use?
Please ask at our forum – see efxclipse.org