开发者

How to programmatically specify JRE javadoc location in eclipse?

You can manually set it via

_Package Explorer / JRE System Library / rt.jar -> contextmenu -> properties - Attach Javadoc..

And the settings are stored in .metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.launching.prefs.

开发者_StackOverflow

I wonder is there anyway I can programmatically specify it?

Thanks a lot!


Javadoc is here.

The method you want is IVMInstall#setJavadocLocation(URL). You need to create a VMStandin from the existing IVMInstall, modify its javadoc location, then do VMStandin#convertToRealVM() which will apply the changes.

JavaRuntime has a few methods for getting IVMInstalls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜