Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] Container class path entry

Hi,

How can I make a container classpath entry modifiable?

For instance, I add a jar file as class path entry. For this jar I add src
jar and javadoc path as follows:

IClasspathAttribute[] attributes = new IClasspathAttribute[]{
              JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOC
ATION_ATTRIBUTE_NAME, ulcJavaDocLocation)};

fClasspathEntries.add(JavaCore.newLibraryEntry(devjar, devjarsrc, null,
EMPTY_RULES, attributes, false));

Now in Eclipse, I add this container to a project and view the Java Build
Path Libraries.

For my jar file I see src attachment and javadoc location but both are non
modifiable.

How do I make them modifiable? I am unable to find the relevant API?

BTW, for JREContainer for JRE jar files the above attributes are modifiable.
I looked up JREContainer class but did not see any special API to make these
properties modifiable.

Thanks for your help.

Best regards,

Janak



Back to the top