Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Generate a Sequence Diagram from Java Source Code

I have a question about generating sequence diagram from Java source code. When I googled I saw someone told to use visual paradigm (VP), but it does not generate sequence diagram for me. Some steps in my VP are different from manual. The manual says to choose method but my VP does not allow to select method in a special class. Reverse Engineering Sequence Diagram from Java Source Code

Does anyone have a new idea to generate sequence diagram from Java source code?

like image 692
AFF Avatar asked Jun 26 '13 04:06

AFF


People also ask

How can I automatically generate a UML diagram from a Java project?

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.

Can we generate sequence diagram in eclipse?

If you are using or wish to use the Eclipse IDE then you can install the ObjectAid UML plugin that can reverse engineer from: Java Stack Trace Console. Java Stack Frames from Debug View. Methods Call from Call Hierarchy View.


2 Answers

With Intellij 2019 there are two plugins can do this job:

  1. SequenceDiagram (currently 1.3). Go in your in Class method that you want to analyse and Tool>SequenceDiagram : enter image description here

  2. ZenUML support (currently 2019.1.2) enter image description here

like image 184
julien Avatar answered Oct 05 '22 14:10

julien


If you are using or wish to use the Eclipse IDE then you can install the ObjectAid UML plugin that can reverse engineer from:

  • Java Stack Trace Console
  • Java Stack Frames from Debug View
  • Methods Call from Call Hierarchy View

and MUCH more.

See http://www.objectaid.com/sequence-diagram

like image 25
dragonsfire Avatar answered Oct 05 '22 15:10

dragonsfire