使用 IntelliJ 生成类图 [英] Use IntelliJ to generate class diagram

查看:33
本文介绍了使用 IntelliJ 生成类图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让 IntelliJ 10.5(在 Mac 上)生成显示我项目中所有类的类图?我确定我忽略了一些明显的东西,但我只能获得显示图表"功能以一次显示一个类.(我还想出了如何添加额外的类,但同样,一次只能添加一个.)

How do I get IntelliJ 10.5 (on the Mac) to generate a class diagram showing all of the classes in my project? I'm sure I'm overlooking something obvious, but I can only get the "Show Diagram" feature to show one class at a time. (I also figured out how to add additional classes, but again, only one at a time.)

推荐答案

使用Diagrams |Show Diagram... 从包的上下文菜单中.在项目根上调用它会显示模块依赖关系图.

Use Diagrams | Show Diagram... from the context menu of a package. Invoking it on the project root will show module dependencies diagram.

如果需要多个包,可以拖拽&将它们放到已经打开的第一个包的图表中,然后按 e 将其展开.

If you need multiple packages, you can drag & drop them to the already opened diagram for the first package and press e to expand it.

注意:此功能在 Ultimate Edition 中可用,而不是在免费的 Community Edition 中可用.

Note: This feature is available in the Ultimate Edition, not the free Community Edition.

这篇关于使用 IntelliJ 生成类图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆