FXML Loading from deployed RCP4 Application [message #1837764] |
Fri, 05 February 2021 16:43 |
Kamil Rosiak Messages: 1 Registered: February 2021 |
Junior Member |
|
|
Hello every one,
i have an RCP4 Application and migrated all views from a programmatically JavaFX to FXML .
I use the following code to load my fxml files:
FXCanvas canvas = new FXCanvas(parent, SWT.None);
InjectingFXMLLoader<Parent> iFXMLLoader = InjectingFXMLLoader.create(context,
Platform.getBundle(StringTable.BUNDLE_NAME), "/ProjectExplorerView.fxml");
InjectingFXMLLoader.Data<Parent, Object> fxmlData;
try {
fxmlData = iFXMLLoader.loadWithController();
Scene scene = new Scene((BorderPane) fxmlData.getNode());
canvas.setScene(scene);
((ProjectExplorerViewController) fxmlData.getController()).initializeView(context, fileSystem, canvas);
} catch (IOException e) {
e.printStackTrace();
}
Now my problem, when I start my application from Eclipse it works, but when I deploy it I get exceptions. Can anyone tell me which FXML loader to use for deployed RCP4 applications?
-
Attachment: errors.png
(Size: 156.67KB, Downloaded 104 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.04160 seconds