JavaFX Interoperability with e4/swt/osgi [message #1724471] |
Wed, 24 February 2016 07:02 |
Alexander Bunkowski Messages: 29 Registered: February 2014 |
Junior Member |
|
|
Hey Community.
I have a larger runnig e4 Application and want to use JavaFX inside one Part. The Dream would be something simple like:
public class MyFXPart {
@PostConstruct
private void postConstruct(Composite composite) {
final FXCanvas fxCanvas = new FXCanvas(composite, SWT.NONE);
//build fx scene here
fxCanvas.setScene(scene);
}
}
I found the following pieces of the puzzle:
1. Add the access rule: Accessible "javafx/**" under Buildpath/Libraries
2. Add VM Argument -Dorg.osgi.framework.bundle.parent=ext to launch config.
3. Somehow make use of javafx.embed.swt.FXCanvas
When i try to do this ill get errors like :javafx.embed.swt.FXCanvas cannot be found by [my bundle]
I read that there are some problems with osgi and fx and that e(fx)clipse has tools to deal with it. Is there a chance to use some bundles from e(fx)clipse and use them in an e4(swt based) eclispe?
I'm happy for every idea/hint.
Alex
[Updated on: Fri, 26 February 2016 09:25] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05421 seconds