在Eclipse中查看Scaladoc [英] Viewing Scaladoc in Eclipse

查看:333
本文介绍了在Eclipse中查看Scaladoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse 中,我将Scala项目的 Javadoc Location 属性设置为文件:/ D:/ EclipseWorkspace / MyProject / target / scala -2.9.1 / api 其中 D:/ EclipseWorkspace / MyProject 是我的scala项目的位置。

In Eclipse I have set the Javadoc Location property of my Scala project to file:/D:/EclipseWorkspace/MyProject/target/scala-2.9.1/api where D:/EclipseWorkspace/MyProject is the location of my scala project.

现在,如果我在一个实现类/ trait的Scala文件中,当我键入 Shift + F2 时,Eclipse会打开该Scaladoc页面类/特质。但是,如果Eclipse尝试打开< ObjectName> .html ,而Scaladoc生成的文件名为<

Now, if I am in a Scala file that implements a class/trait, when I type Shift+F2, Eclipse opens the Scaladoc page of that class/trait. However, this does not work if it is an object since Eclipse tries to open <ObjectName>.html whereas the Scaladoc-generated file name is <ObjectName>$.html.

推荐答案

解决方案

自从发布以来,Scaladoc已经整合4.0.0 RC1 的Scala-IDE插件。您可以将鼠标悬停在您的术语上,或者当光标在标识符上时按F2。

Scaladoc is now integrated since release 4.0.0 RC1 of the Scala-IDE plugin. You can just hover over your term, or press F2 while the cursor is on the identifier.

这篇关于在Eclipse中查看Scaladoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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