As I stated in an earlier post, Iโve been running Eclipse Neon on the Java 9 + Jigsaw builds for a little while and havenโt had any issues. I spent a few hours over the weekend tinkering with some modularity tool ideas. I wrote a little plug-in for Eclipse Neon that visualizes the connections between the various modules.
๐ modules1
The implementation is a little rough right now as I was focused on just sorting out how to get the various bits of technology to work. The Modules Dependencies View updates whenever the user highlights a Java project (e.g. in the Package Explorer, Project Explorer, or Navigator): it queries the Java runtime associated with the project for its list of modules and readability associations between them, and then uses Eclipse GEF Zest to visualize the results.
The part where I query the Java runtime is a huge hack right now, but the good news is that in playing with the visualization, I may have sorted out a better less hacky way of getting this done. More on this later.
Iโm also just relearning how to use Zest (not that I was ever much of an expert with it), so thereโs probably more that I can do with the layout algorithm. One thing that I did do was make it so that you can drill down into any single module with a double-click.
While I was at it, I threw together a quick tree view that lets you drill down through the reads relationships between modules.
Itโs all very ugly of course, but itโs been pretty helpful for me see all the parts. I need to test this with a custom jimage (perhaps Iโll build one based on one of the compact profiles).
It would also be cool to include full build path of the Java project (e.g. workspace contents and JAR files) in the visualization. I also completely disregarded layers and should probably put some thought into representing them.
I havenโt pushed out the code yet; it will appear in Eclipse Labs when itโs a little more fully-baked.
Note that JDK 9 is going to slip a bit: with less than two weeks to go before the โfeature completeโ deadline, a proposal has been put forward to extend the release date by six months.
| Reference: | Visualizing Java 9 Module Relationships from our JCG partner Wayne Beaton at the Eclipse Hints, Tips, and Random Musings blog. |
Thank you!
We will contact you soon.
Wayne BeatonDecember 7th, 2015Last Updated: December 7th, 2015

This site uses Akismet to reduce spam. Learn how your comment data is processed.