Classpath Container Implementation for Eclipse 3.6 [message #694266] |
Fri, 08 July 2011 08:29  |
Eclipse User |
|
|
|
Hi everyone,
I'm working on a Eclipse plugin, which makes use of a custom classpath container (CPE_CONTAINER). Therefore I implemented a custom classpath container according to a very nice tutorial by IBM (www.ibm.com/developerworks/opensource/tutorials/os-eclipse-classpath/index.html).
This worked very well for Eclipse 3.5, but now I upgraded to Eclipse 3.6 and I cannot add my classpath container to any project using the "add library" button in the build path preferences. If I add the container manually, it seems to be in the project but if I start the project I get some ClassDefNotFound-Exceptions.
If I add the libraries from the container manually it works though, so the libraries are not corrupted.
Does anybody have an idea what I have to change in order to get this working again?
|
|
|
Re: Classpath Container Implementation for Eclipse 3.6 [message #694270 is a reply to message #694266] |
Fri, 08 July 2011 08:39   |
Eclipse User |
|
|
|
Hi,
I have not read the tutorial nor I'd like to suggest this is a
regression but what I can do is to point you to a Classpath-Container I
just implemented which works on 3.7/4.1 (my guess is that it would work
also in 3.6).
* Core:
https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.tooling.jdt.core
* UI:
https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.tooling.jdt.ui
I used the code found in the JDT-JUnit-Bundles to find out how it is done.
Tom
Am 08.07.11 10:29, schrieb Florian Lettner:
> Hi everyone,
> I'm working on a Eclipse plugin, which makes use of a custom classpath
> container (CPE_CONTAINER). Therefore I implemented a custom classpath
> container according to a very nice tutorial by IBM
> (www.ibm.com/developerworks/opensource/tutorials/os-eclipse-classpath/index.html).
>
>
> This worked very well for Eclipse 3.5, but now I upgraded to Eclipse 3.6
> and I cannot add my classpath container to any project using the "add
> library" button in the build path preferences. If I add the container
> manually, it seems to be in the project but if I start the project I get
> some ClassDefNotFound-Exceptions.
> If I add the libraries from the container manually it works though, so
> the libraries are not corrupted.
>
> Does anybody have an idea what I have to change in order to get this
> working again?
|
|
|
|
Re: Classpath Container Implementation for Eclipse 3.6 [message #695138 is a reply to message #694270] |
Mon, 11 July 2011 05:31   |
Eclipse User |
|
|
|
Hi Tom,
My implementation for library container page works but I am facing a problem with the implementation.
I have created a class path container page with implementations of IClasspathContainer and ClasspathContainerInitializer, for adding a Library to a java project using java build path property page.
The library gets added to project after clicking finish button of add library wizard and changes get reflected in package explorer instantly but not in java build path property page. I have to either close and re-open the java build path page or just navigate to some other property page and come back to java build path page so that the library gets visible.
Is this the same behaviour with your plugin?
So I want to somehow refresh that java build path page or is it happening because of some mistake I made while implementing the classpath container page and IClasspathContainer and ClasspathContainerInitializer.
Could you please provide any help on this?
Thanks.
|
|
|
Re: Classpath Container Implementation for Eclipse 3.6 [message #695800 is a reply to message #694266] |
Tue, 12 July 2011 14:15  |
Eclipse User |
|
|
|
On 08.07.2011 10:29, Florian Lettner wrote:
> Hi everyone,
> I'm working on a Eclipse plugin, which makes use of a custom classpath
> container (CPE_CONTAINER). Therefore I implemented a custom classpath
> container according to a very nice tutorial by IBM
> (www.ibm.com/developerworks/opensource/tutorials/os-eclipse-classpath/index.html).
>
> This worked very well for Eclipse 3.5, but now I upgraded to Eclipse
> 3.6 and I cannot add my classpath container to any project using the
> "add library" button in the build path preferences.
Please try using 3.7 and if it still doesn't work, file a bug against
JDT Core.
Dani
> If I add the container manually, it seems to be in the project but if
> I start the project I get some ClassDefNotFound-Exceptions.
> If I add the libraries from the container manually it works though, so
> the libraries are not corrupted.
>
> Does anybody have an idea what I have to change in order to get this
> working again?
|
|
|
Powered by
FUDForum. Page generated in 0.04684 seconds