为什么 Eclipse 不为所有类生成 javadoc

发布于 2024-12-26 12:40:29 字数 112 浏览 2 评论 0原文

我在 Eclipse Galileo 中有一个项目,有 Main 类,以及其他类和接口。但是,如果我生成 javadoc,如果我单击“所有类框架”,则只有主类 Javadoc。如何生成其他类的 javadoc?

I have a project in Eclipse Galileo, there is the Main class, plus other classes and interfaces. But if I generate javadoc, if I click in "all classes Frame" there is only the Main class Javadoc. How do I generate javadoc of the other classes?

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

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

发布评论

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

评论(2

巷雨优美回忆 2025-01-02 12:40:29

我也遇到了同样的问题,直到我更改了 Javadoc 对话框设置。具体来说,在选择“Project”->“Generate Javadoc...”后的第一个对话框窗口中,确保项目名称旁边有一个复选标记,而不是表示仅包含某些类的蓝色方块。如果有蓝色方块,请单击它,直到它变成复选标记。

I had this same problem too until I changed my Javadoc dialog settings. Specifically, in the first dialog window after selecting "Project"->"Generate Javadoc...", make sure there is a check mark next to your project name, not a blue square that indicates that only some of the classes are included. If there is a blue square, click on it until it becomes a check mark.

缱绻入梦 2025-01-02 12:40:29

我自己也遇到过几次这个问题。我遇到的第一个问题就是前面提到的问题。

A) 确保突出显示所有课程。 IE 在主项目中有一个复选框而不是蓝色框。蓝色框表示仅选择了该项目的某些组件。

B) 检查可见性设置。默认情况下,对话框的“为具有可见性的成员创建 javadoc:”设置为公共。这意味着它只会为公共对象创建文档。这可能是也可能不是您想要的。

在犯了这两个错误之后,我纠正了它们,并再次尝试,得到了相同的结果。查看控制台,它会生成几条“正在加载包的源...”消息,然后停止。 Eclipse 实际上并没有尝试重新生成我的 javadocs。

单击“下一个”->“下一个”直到对话框的最后一页并勾选“在浏览器中打开生成的索引”旁边的复选框,如何将其踢到裤子上并生成完整列表。

I have had this issue a few times myself. The first issues I hit were the ones previously mentioned.

A) Make sure you have all your classes highlighted. I.E. have a checkbox in the main project instead of a blue box. The blue box indicates only some components of that project are selected.

B) Check the visibility settings. By default the dialog's setting for "Create javadoc for members with visibility:" is set to public. Meaning it will only create docs for public objects. This may or may not be what you want.

After having made both of these mistakes I corrected them and tried again with the same results. Looking at the console it would generate several "Loading source for package ..." messages and then stop. Eclipse wasn't actually trying to re-generate my javadocs.

Some how clicking through next->next until the last page of the dialog and ticking off the check box next to "Open generated index in browser" kicked it in the pants and it generated the full list.

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