Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Validate ContainerEntry returned from newContainerEntry
Validate ContainerEntry returned from newContainerEntry [message #194598] Mon, 31 January 2005 05:31
Eclipse UserFriend
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
Previous Topic:Java syntax highligting in custom editor
Next Topic:Can't get POST_RECONCILEjava element changes
Goto Forum:
  


Current Time: Wed Nov 05 12:00:40 EST 2025

Powered by FUDForum. Page generated in 0.03396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top