Classpath container hicups, or bug in 3.1M6? [message #203063] |
Wed, 11 May 2005 05:07 |
Eclipse User |
|
|
|
Hi there,
this follows a message of mine that as not been answered.
I have made my own ClassPathcontainer and intitialiser but I don't get it
to work as expected.
I have an action changing the nature of my project and creating or
removing the classpath container according to the nature.
When I want to remove my container and therefore remove it's jars from
build class path I need to do 2 things,
first call
JavaCore.setClasspathContainer(path, new IJavaProject[]{project},new
IClasspathContainer[]{null}, null);
to remove it from cache.
then remove it's jars path from the project raw classpath
(myJavaProject.setRawClasspath).
Is this the right thing to do?
This a bit tidious to do that, I do not understant why there is no method
in JavaCore to remove Classpath Container both from container cache and
from build path?
Another problem is that the automatic rebuild is not launched after these
modifications, which is anoying.
Can someone tell me what is wrong ?
than you.
SeB
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds