Question about availability of com.intellij.openapi.graph module in recent IntelliJ Ultimate 2021.3
Answered
Is there in recent IntelliJ Ultimate 2021.3 (213.5744.223) a library that replaced com.intellij.openapi.graph (based on yWorks one)?
I know of com.intellij.diagram library, but I would like to do some custom layout and rendering of Graph nodes/ports and Edges (by adding some JComponents).
Please sign in to leave a comment.
Hello!
I am the main (as I am a single) developer of the diagram subsystem in the IntelliJ platform.
Let me clarify a few points relating to the functionality we provide:
So to answer the questions you have asked:
Currently no, but it is approaching and is likely to become available in 2022.1. It will have smaller functionality but will be also in orders of magnitude easier than everything we have now. All previous API will still be available as well.
You may do it with diagram package as well it is that it's unobvious how and is pretty hard :c That's why we are developing the new API.
I will try to check it soon, sorry for that.
2.14. The docs for 2.17 are here. 2.17 and 2.14 are 99% the same regarding the provided API.
I can still use that package in 2021.3, but i encountered a blocking bug that i submitted yesterday: https://youtrack.jetbrains.com/issue/IDEA-284561
Christoffer thank you for the example project (that helped a lot). I can confirm that the issue you are describing is indeed reproducible on 2021.3.
You're welcome, i'm glad it helped you!
One more question - which version of yWorks do IntelliJ 2021.3 uses ? Seeing *Layouter like names of classes may indicate 1.x series, but how can we get this info ?
Just to mention, I found that the API supports layouts by using example below, which may indicate the graph API corresponds to some between version of yWorks 1.x or 2.x .
@... - thank you for a clear and comprehensive answer.
@... - Thank you, i'm so happy that you have eyes on it.
Hi There,
I'm coming back with new IntelliJ Ultimate question - version 2022.2.5 the package
<depends>com.intellij.diagram</depends>
Seems to be gone, can I have an update on status of it , was it moved or removed totally ?
Tomasz Kosinski Not sure what you mean, the plugin with this ID still exists in IntelliJ IDEA Ultimate. Please make sure to follow steps exactly from https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html.
Yann Cebron - Unfortunately I'm blind or there is no more access to API like below, I tried to dig into recent documentation and found nothing about it Intellij Ultimate Plugin SDK development docs, and what worked some time ago stopped.
Can you provide example for latest Plugin SDK how to create custom Diagrams ?
Have you added the necessary dependency on the plugin in your Gradle build file as well? Please provide links to your project to reproduce.