Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we generate sequence diagram in IntelliJ IDEA from Java code which is editable?

I am currently using SequenceDiagram Plugin from https://plugins.jetbrains.com/plugin/8286?pr= to generate Sequence Diagrams. But here the drawback is that I am not able to save them in a format like .uml or any other format so anyone can open this file and edit it. It only allows to export the sequnce diagram as an image.

Is there any way to save the sequence diagrams generated so they can be edited later?

like image 782
user2077648 Avatar asked Jul 22 '16 11:07

user2077648


People also ask

Can IntelliJ create UML diagram?

IntelliJ IDEA Ultimate allows you to generate UML diagrams. You can use ⌥⇧⌘U (macOS) or Ctrl+Alt+Shift+U (Windows/Linux) to generate a UML diagram for your code which can help you and your team to read and understand the codebase.

How do I get the UML diagram in IntelliJ Community Edition?

In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.


1 Answers

As the file https://github.com/Vanco/SequencePlugin/blob/master/src/org/intellij/sequencer/diagram/app/actions/ExportAction.java shows the plugin is able to export into images only. According to the licence you can modify the software if you keep in mind this part of the licence.

I think it is a good feature you suggested, it is not an easy job tho. If you plan to extend the feature try to contact with https://github.com/Vanco. I think it would be a handy thing for all of us!

Edit: I posted it as a comment, but it is part of the answer:

Here is a github repo: https://github.com/sherif181/java-sequence-diagram-generator it is not a plugin but looks handy for your case. It will generate LaTex documents that could be edited.

like image 159
Hash Avatar answered Oct 09 '22 07:10

Hash