问题描述
尝试对现有项目进行逆向工程,这将有助于了解类之间如何协作/相互依赖。是否可以使用内置功能或使用一些免费插件在IntelliJ IDEA中构建项目范围的UML图(或任何类型的类图)?
Trying to reverse-engineer existing project and it would be of great help to see how classes collaborate/depend on each other. Is there a way to build project-wide UML diagram (or class diagram of any kind) in IntelliJ IDEA using build-in functionallity or using some free plugin?
推荐答案
无论使用哪种方式,都右键单击软件包
。单击图
> 显示图
(Ctrl + Alt + Shift + U)。您将在图编辑器中看到您的软件包。
Right click on your package
no matter which. Click Diagrams
> Show Diagram
(Ctrl+Alt+Shift+U). You will see your package in diagram editor.
现在:
- 您可以
扩展
(E)或崩溃
(C)所有节点。 - 您可以显示依赖项
- 您可以显示节点的许多属性(构造函数,方法,属性...)
- 您可以拖放项目浏览器中的其他软件包。
- You can
expand
(E) orcollapse
(C) all nodes. - You can show dependencies
- You can show many attributes of nodes (constructors, methods, properties...)
- You can drag&drop other packages from project explorer.
所以,多玩一点,我想您会实现您所需要的。
So, play with it a bit and i think you will achieve what you need.
这就是它的样子:
This is how it could looks like:
这篇关于如何在IntelliJ IDEA中构建项目范围的UML图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!