Howto validate IContainerEntry returned from JavaCore.newContainerEntry() [message #78733] |
Wed, 02 February 2005 01:38 |
Eclipse User |
|
|
|
Originally posted by: klutzie.abc.com
Hi,
I'm creating my own plugin, and I'm using the
JavaCore.newContainerEntry(IPath, boolean) API to create a
IContainerEntry, which reference a container created in another plugin
(Let's say plugin A). Is there any way to validate the ContainerEntry
returned? Because there might be a situation that plugin A does not
present, thus there will be an exception when I'm setting this
ContainerEntry to the JavaProject.
Is there a way to validate the ContainerEntry so that I will know whether
the plugin A is present or not. If plugin A is absent, I will not add the
ContainerEntry to the JavaProject.
I've tried to use JavaConventions.validateClasspathEntry(IJavaProject,
IContainerEntry, boolean) and do a check using IJavaModelStatus.getCode()
== IJavaModelStatus.OK
but seems like it does not work.
Is there any other way to check the validity of the ContainerEntry
returned?
i've tried to ask this in the jdt newsgroup, but i wasnt able to get any
answer, and this is kind of urgent for me.
Thanks a lot folks~
klutzie
|
|
|
Powered by
FUDForum. Page generated in 0.02729 seconds