| Validate ContainerEntry returned from newContainerEntry [message #194598] |
Mon, 31 January 2005 05:31 |
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?
Thanks a lot folks~
klutzie
|
|
|
Powered by
FUDForum. Page generated in 0.03396 seconds