Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Howto validate IContainerEntry returned from JavaCore.newContainerEntry()
Howto validate IContainerEntry returned from JavaCore.newContainerEntry() [message #78733] Wed, 02 February 2005 01:38
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?

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
Previous Topic:Problems with launching VE
Next Topic:Howto validate IContainerEntry returned from JavaCore.newContainerEntry()
Goto Forum:
  


Current Time: Sat May 10 01:48:30 EDT 2025

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

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

Back to the top