是否有免费的 Eclipse 插件可以从 Java 类/包中创建 UML 图?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2272591/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a free Eclipse plugin that creates a UML diagram out of Java classes / packages?
提问by Eran Medan
This seemed to me like the easiest thing to find, a simple way to display my classes as UML in eclipse
这对我来说似乎是最容易找到的东西,一种在 eclipse 中将我的类显示为 UML 的简单方法
But except this: http://java2uml.gforge.enseeiht.fr/and this http://sourceforge.jp/projects/amateras/releases/I haven't found any new, maintained and "good" implementation (with all due respect to the above two)
但除了这个:http: //java2uml.gforge.enseeiht.fr/和这个http://sourceforge.jp/projects/amateras/releases/我还没有找到任何新的、维护的和“好的”实现(所有应尊重以上两个)
Anything else I've missed?
还有什么我错过的吗?
采纳答案by VonC
Did you consider
你考虑过吗
Creating UML 2 diagrams with Eclipse UML2 Tools - Tutorial?
使用 Eclipse UML2 工具创建 UML 2 图 - 教程?
I had older referencesfor such tools, but the new ones are build upon UML2 project (described in the tutorial). MDT-UML2Toolsis in the making, Omondois there, but not free.
Papyrus UML, for instance, is based on UML2 Tool.
我有这些工具的旧参考资料,但新的参考资料是建立在 UML2 项目上的(在教程中描述)。MDT-UML2Tools正在制作中,Omondo在那里,但不是免费的。例如,
Papyrus UML基于 UML2 工具。
There is a tool in the Marketplace that can do the above (UML Class, Package and Interaction). It's called ModelGoon. Last tried in July 2018.
Marketplace 中有一个工具可以执行上述操作(UML 类、包和交互)。它被称为ModelGoon。最后一次尝试是在 2018 年 7 月。
The full list is available at Eclipse marketplace.
完整列表可在Eclipse 市场上获得。
回答by rochb
I generally use Doxygento create documentation because it has built-in support to generate inheritance diagrams. There is an Eclipse plug-in for Doxygen called eclox. It is not longer maintained since December 1st.
我通常使用Doxygen来创建文档,因为它内置支持生成继承图。Doxygen 有一个名为eclox的 Eclipse 插件。自 12 月 1 日起不再维护。
Doxygen is based on Graphviz. You could directly use LightUML, which is based on Graphviz to create UML diagrams in Eclipse.
Doxygen 基于Graphviz。您可以直接使用LightUML,它基于 Graphviz 在 Eclipse 中创建 UML 图。
回答by thSoft
Annotate your classes with Ecore's annotations, then you can import an Ecore file from them. You can initialize an Ecore diagram from them, or export it to UML, and initialize a class diagram from it.
使用 Ecore 的注释对您的类进行注释,然后您可以从中导入 Ecore 文件。您可以从它们初始化一个 Ecore 图,或者将它导出到 UML,并从中初始化一个类图。
回答by Jonatan Ka?mierczak
If you want to stay within Eclipse: use free ObjectAid- discovers parents, nestings, associations.
If you want the tool, which in addition discovers and show children, usages, dependencies, annotations - then use free Class Visualizer.
如果您想留在 Eclipse 中:使用免费的ObjectAid- 发现父母、嵌套、关联。
如果您想要该工具,它还可以发现并显示子项、用法、依赖项、注释,那么请使用免费的Class Visualizer。