Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to create an indirect reference to the javadoc for a classpath entry
How to create an indirect reference to the javadoc for a classpath entry [message #333583] Wed, 17 December 2008 21:36
Jeff Norton is currently offline Jeff NortonFriend
Messages: 1
Registered: July 2009
Junior Member
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 :-).
Previous Topic:Saving and restoring a TreeViewer's expanded state
Next Topic:Adding simple code formatting to a SourceViewer?
Goto Forum:
  


Current Time: Tue Apr 23 10:39:32 GMT 2024

Powered by FUDForum. Page generated in 0.02703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top