Now the question is how to make the FXMLLoader use Guice to inject stuff. The problem is that you can’t pass the loader a delegate so that you can make Guice create the controller instance which means you can’t use constructor injection but that’s a minor problem for me.

So we let the FXMLLoader construct the controller and execute the injection afterwards:

I’ve packaged up the code in my runtime modules so you can make use of it quite easy. A similar implementation is available for Eclipse-DI but Eclipse-DI requires an OSGi-Runtime whereas the guice one can be used with or without OSGi.

In NetBeans it is possible to create JavaFX projects from templates and open samples. Is that possible in Eclipse? If not then do I start a JavaFX project with a normal Java project template and FXML with a normal XML template?

Is there a way to package the templates and samples for NetBeans and install them in in Eclipse? Maybe just importing the NetBeans JavaFX samples is just as easy?

Adding a project wizard is on my todo list for the 0.0.7 release. If I can find the time to fix some remaining CSS issues today and the wizard I’m going to release 0.0.7 today else I’m going to release it some time this week.