如何从Java代码生成UML图(尤其是序列图)? [英] How to generate UML diagrams (especially sequence diagrams) from Java code?

查看:1619
本文介绍了如何从Java代码生成UML图(尤其是序列图)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从现有Java代码生成UML图(尤其是序列图)?

How can I generate UML diagrams (especially sequence diagrams) from existing Java code?

推荐答案

ObjectAid UML Explorer



我使用的是什么。从存储库中轻松 安装

ObjectAid UML Explorer

Is what I used. It is easily installed from the repository:

Name:     ObjectAid UML Explorer
Location: http://www.objectaid.com/update/current

并生成相当不错的UML图表:

And produces quite nice UML diagrams:


ObjectAid UML Explorer与其他UML工具不同。它使用
的UML符号来显示现有代码
的图形表示,它与文本编辑器一样准确和最新,而
非常容易使用。几个独特的功能使这成为可能:

The ObjectAid UML Explorer is different from other UML tools. It uses the UML notation to show a graphical representation of existing code that is as accurate and up-to-date as your text editor, while being very easy to use. Several unique features make this possible:


  • 您的源代码和库是显示的模型,它们不会反向工程为不同的格式。

  • 如果您在Eclipse中更新代码,您的图表也会更新;没有必要对源代码进行反向工程。

  • 重构更新图表和源代码。当您重命名字段或移动类时,您的图表只会反映
    更改而不会失去同步。

  • Eclipse工作区中的所有图表都会根据适当的重构更改进行更新。如有必要,可以从
    版本控制系统中检出它们。

  • 图表完全集成到Eclipse IDE中。您可以将Java类从任何其他视图拖到图表上,并且图表相关的
    信息会在适用的其他视图中显示。

  • Your source code and libraries are the model that is displayed, they are not reverse engineered into a different format.
  • If you update your code in Eclipse, your diagram is updated as well; there is no need to reverse engineer source code.
  • Refactoring updates your diagram as well as your source code. When you rename a field or move a class, your diagram simply reflects the changes without going out of sync.
  • All diagrams in your Eclipse workspace are updated with refactoring changes as appropriate. If necessary, they are checked out of your version control system.
  • Diagrams are fully integrated into the Eclipse IDE. You can drag Java classes from any other view onto the diagram, and diagram-related information is shown in other views wherever applicable.

这篇关于如何从Java代码生成UML图(尤其是序列图)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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