开发者

How to programmatically specify JRE javadoc location in eclipse?

开发者 https://www.devze.com 2023-01-04 07:00 出处:网络
You can manually set it via _Package Explorer / JRE System Library / rt.jar -> contextmenu -> properties

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

精彩评论

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