Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » FXML Loading from deployed RCP4 Application(FXMLLoader)
FXML Loading from deployed RCP4 Application [message #1837764] Fri, 05 February 2021 16:43 Go to next message
Kamil Rosiak is currently offline Kamil RosiakFriend
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 16 times)
Re: FXML Loading from deployed RCP4 Application [message #1838051 is a reply to message #1837764] Sun, 14 February 2021 20:09 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6607
Registered: July 2009
Senior Member
first thing to check is if you have an upper/lower-case problem which does not happen in Eclipse because there you run the file-system (who might be case insensitive) and when exported you run on jar-file-system
Previous Topic:JavaFX documentation
Next Topic:eclipse plugin export error when using e(fx)clipse
Goto Forum:
  


Current Time: Sat Oct 16 08:12:44 GMT 2021

Powered by FUDForum. Page generated in 0.01734 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top