Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate sequence diagrams from Java source code?

Is there any command line tool which takes Java source and generates sequence diagrams? Or are there any tools that convert Java code to XML and convert the XML to sequence diagrams in any of the standard image format using open api ? i know some tools which generate sequence diagrams from text description such as uml graph. is there any way to convert java code to text description format.so that i can use the available tools.

like image 557
pavan Avatar asked Nov 22 '11 06:11

pavan


People also ask

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.

What software is used to make sequence diagrams?

Lucidchart. Lucidchart is one of the highest-rated diagramming tools currently on the market. They offer a wide variety of diagram templates, a full shapes library, and impressive collaboration features.


1 Answers

Quick Sequence Diagram Editor works off simple text files.

Perhaps you could use this in combination with Eclipse:

  1. Highlight a method name in your editor window
  2. Right-Click, select "Open Call Hierarchy"
  3. In the "Call Hierarchy" window which opens, expand the stack path elements you want
  4. Select the top-level stack element
  5. Right-Click, select "Copy Expanded Hierarchy"
  6. Paste into a text editor of your choice (Vi, Nano, Notepad++, etc)
  7. Use some text conversion / regex utility to convert to Quick Sequence Diagram Editor text format.
like image 103
Stewart Avatar answered Oct 25 '22 14:10

Stewart