Is there a tool to extract Java projects into class diagrams?

Asked 2 years ago, Updated 2 years ago, 80 views

I have to submit the output as a class diagram, but it's not small, so it's kind of weird to fill it out one by one... I'm looking for a tool that can be extracted by project or package.

I tried ObjectAid Class Diagram among the Eclipse plug-ins, but the reverse engineering of this plug-in is not possible on a project-by-project basis and only on a file-by-file basis, so it's not the way I want it to do it.

uml classdiagram java

2022-09-22 22:01

1 Answers

There are plugins called doclets that you use to create javadoc, so please use them.

I usually used apiviz until JDK 6 (1.6).

https://code.google.com/archive/p/apiviz/

There's also a thing called ydoc.

https://www.yworks.com/products/ydoc

However, I am not sure if the above tools will be properly supported after JDK 7. (APIViz version 1.3.2 says yes.)

In the case of apiviz, when exporting JavaDOC from Eclipse, you can set doclet. And we need a program called Graphviz to create a UML image.

.1. Right-click the project => export => Java => JavaDoc and select

2. Select "Use Custom doclet" and

3. In Settings

Doclet Name : org.jboss.apiviz.APIviz
Doclet Class-Path: ... #apiviz-1.3.2. Where GA.jar is located

.4. Additional VM options and JavaDoc options describe:

## VM Options
-encoding UTF-8 -charset UTF-8 -docendocing UTF-8
-J-Dgraphviz.home=[Location of executable in Graphviz]
-J-Xmx512m
##Extra Javadoc options
-d OutputPath [Path to Output]


2022-09-22 22:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.