In the last few days I made a major step towards supporting all major Java-IDEs (Eclipse, Netbeans, IntelliJ IDEA) to develop “e4 on JavaFX” applications.
The key to this multi-IDE support is that we don’t use the MANIFEST-First approach from PDE but we use:
- Maven 3.5
- A custom maven-plugin for launching in Netbeans and IntelliJ
For every member on your team who likes the Eclipse IDE.
In Eclipse we use a custom launcher who uses the maven-project dependency information to launch OSGi and install all necessary bundles.
For every member on your team who likes Netbeans
As you notice hot-code replacement is not yet working (or maybe I’m using Netbeans wrong?) Is there anything i need to do after having changed the file to hot-swap it?
For every member on your team who likes IntelliJ
As you notice hot-code replacement is not yet working (or maybe I’m using IntelliJ IDEA wrong?) Is there anything i need to do after having changed the file to hot-swap it?
Wow! That looks Amazing! After that works, Gradle is around the corner!
Regarding your question about NetBeans, here is what I found in Stack Overflow (https://stackoverflow.com/questions/10084289/how-to-use-hotswap-in-netbeans)
1- Run your app in “debug” mode (something you’re doing)
2- Modify your .java files and save them
3- Click on the “Apply Code Changes” button that appears on the toolbar (it looks like three linked green rectangles, or Tools -> Options -> Java -> Java Debugger -> General -> Apply code changes after save)
I hope that helps!
I would like to ask questions about getting started with your e(fx)clipse examples.
Is the code in this demo the same as the examples in the “e4 on JavaFX with the bnd-maven-plugin” (https://github.com/BestSolution-at/e4-efxclipse-maven-sample and https://github.com/BestSolution-at/maven-e4-launcher)?
Can you describe which type of import to use for these projects into an eclipse workspace to run the demo (i.e. General, Maven or PlugIn development project)?
Yes and no – it is that code but I have not yet pushed the changes because I first have to publish the maven-plugin. Stay tuned for updates on that next week
Thanks for the reply Tom. Also, can you offer some guidance on importing the existing projects? I’ve not been successful with getting the code to run in my environment (Eclipse Oxygen), so I want to know if I’m missing some vital import step.
I read one of your other responses. I will move my question to the forum.
That’s awesome! Thank’s for cracking that nut!
Pingback: JavaFX links of the week, August 28 | JavaFX News, Demos and Insight // FX Experience
You know what would be great to port to other IDEs as well? FXGraph. Actually a colleague of mine has more or less switched over to IntelliJ. But he frequently returns to Eclipse only because of the FXGraph DSL & the live preview… 😀
Right any volunteers to help with that? The first and most important thing we need to port is the e4-model editor because without that writing e4 on JavaFX applications is not really funny
Maybe the cutest thing on Intellij would be if we could use a BndRun file to launch, as it has qutie nice an integration for that,