java – 如何在一个类图中显示所有类

当我在EA中进行逆向工程时,它会在包中导入源代码,但每个包放置一个类图.它不是很有用,因为我看不到类之间的所有关系(只有当前包中的关系).有没有选择从所有
java文件创建一个图表? 最佳答案 您可以在其中一个关键类上使用“
insert related elements”函数,并将级别数增加到最大值.

作为替代方案,请查看以下solution

If (…) your classes are spread out among different packages and namespaces so that EA generates multiple diagrams for them, you’ll have to merge them manually. Do this by opening both diagrams, selecting all (Ctrl-A) in one, copying (Ctrl-C) and pasting (Ctrl-V) into the other, then ask EA to Layout Diagram again.

点赞