I have an Eclipse plugin, that among other things, can create a project and give it several classpath entries. This in and of itself works fine.
These jars do not have source included in the, however there is a URL that can be used for Javadoc. I want to set this up programmatically for these classpath entries that the plug-in creates. This is what I m doing:
IClasspathEntry cpEntry;
File[] jarFile = installFilePath.listFiles();
IPath jarFilePath;
for (int fileCount = 0; fileCount < jarFile.length; fileCount++)
{
jarFilePath = new Path(jarFile[fileCount].getAbsolutePath());
cpEntry = JavaCore.newLibraryEntry(jarFilePath, null, null);
entries.add(cpEntry);
}
I could not figure out how to set the JavaDoc URL location on a claspath entry. This can be done in the Eclipse UI - for instance, if you right-click the project, go to Properties... -> Java Build Path, and expand one of the JAR entries and edit the "Javadoc Location", you can specify a URL. How do I do this from within a plug-in?