How to create an indirect reference to the javadoc for a classpath entry [message #333583] |
Wed, 17 December 2008 16:36 |
Eclipse User |
|
|
|
I setup the classpath for a jdt-based project using indirect library
references via:
IClasspathEntry javaEntry = JavaCore.newVariableEntry(new
Path("ECLIPSE_HOME/plugins/mylib_0.1.1/lib/java-main.jar"), null, null,
null, javadocAttr, true);
I would like to setup the javadoc reference for the library the same way.
However I don't see how to do that. I currently just setup an absolute
path reference but that breaks whenever the user upgrades their eclipse
installation. I.e. I do:
javadocAttr = new IClasspathAttribute[]
{JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_ LOCATION_ATTRIBUTE_NAME,
"jar:file:" + pathToEclipseInstallation +
"plugins/mylib_0.1.1/javadoc/java-main.zip!/")};
newClasspathAttribute only takes a String as the value -- seems like I
would like for it to be an IClasspathEntry. Is there another mechanism I
can use?
Thanks for any help,
Jeff.
P.S. A definitive "there is no way to do this" would also be helpful
(then I can stop looking :-).
|
|
|
Powered by
FUDForum. Page generated in 0.03365 seconds