Java NetBeans 注释类图助手

发布于 2024-08-28 21:43:27 字数 162 浏览 3 评论 0原文

我开始使用 Netbeans 6.8 IDE 学习 Java。

我想知道 NetBeans 中是否有一个类似于 VS2008 的实用程序,可以方便地注释代码并稍后在类图中显示这些注释?

谢谢。

编辑:我找到了 Javadoc 功能。这是有一些帮助,但不是那么好。

i am starting to learn Java using Netbeans 6.8 IDE.

i am wondering if there is a utility in NetBeans similar to VS2008 that facilitates commenting code and later display these comments in class diagrams?

thanks.

EDIT: i found the Javadoc feature. it is some help but not that great.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风启觞 2024-09-04 21:43:27

NetBeans 6.8 不支持 NetBeans UML 插件(根据到此帖子,它可能会在 6.9 中返回)。推荐的替代方案是使用 Visual Paradigm 中的 SDE for NetBeans(他们提供免费的社区版本)与 NetBeans 一起使用的 UML 工具)。

一些替代方案(基于将在 javadoc 中生成图表的 Javadoc 样式注释):

  • APIviz - APIviz是一个 JavaDoc doclet,它扩展了 Java 标准 doclet。它生成全面的类似 UML 的类和包图,以便快速理解整体 API 结构。 (查看示例!)
  • UMLGraph - (...) 此外,此发行版中包含的 UMLGraphDoc doclet 自动将 UML 图添加到 javadoc 文档中。 (本文中的示例)。
  • yDoc(商业)- statsvn 项目
  • Doxygen - javadoc 的替代方案

就我个人而言,我会考虑 APIviz (您可以从 Ant 或等构建工具中调用)马文)。确实,请检查此示例 了解结果。

The NetBeans UML Plugin is not supported in NetBeans 6.8 (according to this thread, it may come back in 6.9). The recommended alternative is to use SDE for NetBeans from Visual Paradigm (they do offer a free, community edition of their UML tool that works with NetBeans).

Some alternatives (based on Javadoc style annotations that will generate diagrams in javadoc):

  • APIviz - APIviz is a JavaDoc doclet which extends the Java standard doclet. It generates comprehensive UML-like class and package diagrams for quick understanding of the overall API structure. (Check the samples!)
  • UMLGraph - (...) In addition, the UMLGraphDoc doclet included in this distribution automatically adds UML diagrams to javadoc documentation. (Example in this article).
  • yDoc (commercial) - Example in the statsvn project.
  • Doxygen - an alternative to javadoc

Personally, I would consider APIviz (that you can call from build tools like Ant or Maven). Really, check this sample to get an idea of the result.

枉心 2024-09-04 21:43:27

NetBeans 曾经有一个 UML 模块,但自版本 6.7 以来已停止使用。您可以采取的解决方法是在当前版本的基础上安装旧版本的 NetBeans,并使用旧版本从代码生成 UML 图。

您可能会看到的其他工具是 Doxygen,它将自动生成 Javadoc 等文档。与 graphviz 配合使用,它可以生成可视化调用图,而 Javadoc 则无法做到这一点。

NetBeans used to have a UML module, however it's been discontinued since version 6.7. What you can do as a workaround is install an older version of NetBeans alonside your current version, and use the older version to generate the UML diagrams from your code.

Other tools you might look at are Doxygen, which will auto-generate documentation like Javadoc. Paired with graphviz, it can generate visual call graphs, which Javadoc does not do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文