如何在Eclipse中获取适用于SWT和JFace的JavaDoc? [英] How to get JavaDoc for SWT and JFace in Eclipse?

查看:151
本文介绍了如何在Eclipse中获取适用于SWT和JFace的JavaDoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Eclipse的新手,不知道如何让SWT和JFace的JavaDocs在编辑时显示。



如何我这样做谢谢!

解决方案

我假设你自己下载了jar,并在你的项目中引用它们。如果是这样,您可以右键单击项目资源管理器中的jar(在引用库节点中),然后单击属性。出现的窗口可以定义jar的JavaDoc和源的位置(如果有的话)。



您也可以通过单击项目>属性> Java构建路径>库并扩展要添加javadoc / source的jar的节点来达到此目的。 p>

还值得一提的是,如果您使用Maven( http:// maven。 apache.org/ )构建项目时,依赖关系管理系统将为您寻找源和javadocs。但这是一个不同的话题。也许值得一看Ivy( http://ant.apache.org/ivy/ ) - 相似的依赖管理系统,但可以使用,而不会将您的灵魂出售给Maven,我被告知。






您也可以意味着你实际上看不到javadocs:Window> Show View> Other ...> Java> JavaDoc。此视图将向您显示当前关注的任何javadoc。或者只需将鼠标悬停在方法中即可在弹出窗口中查看javadoc。


I'm a newbie to Eclipse and can't figure out how to get the JavaDocs for SWT and JFace to show up when I am editing.

How do I do this? Thanks!

解决方案

I assume you've dowloaded the jars yourself and referenced them in your project. If so, you can right click the jar in the project explorer (in the 'Referenced Libraries' node) and click 'Properties'. The window that appears you can define the location of the jar's JavaDoc and source, if you have those available.

You can also reach this by clicking Project > Properties > Java Build Path > Libraries and expanding the node for the jar to which you want to add javadoc/source.

Also worth mentioning that if you use Maven (http://maven.apache.org/) for building your project, it's dependency management system will take care of finding sources and javadocs for you. But that's a different topic entirly. Also might be worth looking at Ivy (http://ant.apache.org/ivy/) - similar dependency management system, but can be used without selling your soul to Maven, I'm told.


You might also mean that you can't actually see the javadocs: Window > Show View > Other... > Java > JavaDoc. This view will show you the javadoc for whatever is currently in focus. Or just mouse over a method to see the javadoc in a popup.

这篇关于如何在Eclipse中获取适用于SWT和JFace的JavaDoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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