当我在 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.
关于java - 如何在一个类图中显示所有类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16872767/