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.
-
Seems like converting to XML would be an unnecessary step.Dave Newton– Dave Newton2011-11-22 06:21:33 +00:00Commented Nov 22, 2011 at 6:21
-
then how can i generate the diagramspavan– pavan2011-11-22 06:22:18 +00:00Commented Nov 22, 2011 at 6:22
-
1Specifically from source, not inside Eclipse, and free? I don't know of any. There are a few free tools that will generate sequence diagrams from actual program flow. The source-level ones pretty much all use the Eclipse AST and live as Eclipse plugins.Dave Newton– Dave Newton2011-11-22 06:24:33 +00:00Commented Nov 22, 2011 at 6:24
-
1yes there is UMLet plugins which is open source to generate sequence diagrams. But I think it does not generate it from the source code. You can see the detail from here umlet.comNaved– Naved2011-11-22 06:30:52 +00:00Commented Nov 22, 2011 at 6:30
-
1IBM Rational Software Architect ibm.com/developerworks/rational/library/08/0610_xu-woodRaihan– Raihan2011-11-22 09:57:22 +00:00Commented Nov 22, 2011 at 9:57
|
Show 1 more comment
1 Answer
Quick Sequence Diagram Editor works off simple text files.
Perhaps you could use this in combination with Eclipse:
- Highlight a method name in your editor window
- Right-Click, select "Open Call Hierarchy"
- In the "Call Hierarchy" window which opens, expand the stack path elements you want
- Select the top-level stack element
- Right-Click, select "Copy Expanded Hierarchy"
- Paste into a text editor of your choice (Vi, Nano, Notepad++, etc)
- Use some text conversion / regex utility to convert to Quick Sequence Diagram Editor text format.
2 Comments
captainrad
As far as #7 goes.. are there any utilities that actually support this?
Stewart
I used the search / replace function of
Vi, which supports fairly complex regex. Other options might be sed, awk or other Unix power tools.