Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Q: resolve package name to IPackageFragment?
Q: resolve package name to IPackageFragment? [message #19074] Fri, 09 May 2003 12:13 Go to next message
Eclipse UserFriend
I'm using the search engine to find references to packages, but the results
only give me a package name. However, I need the IPackageFragment
corresponding to those packages it found. I can't find how to do that...

Thanks,

Frank
Re: resolve package name to IPackageFragment? [message #19733 is a reply to message #19074] Mon, 12 May 2003 07:06 Go to previous message
Eclipse UserFriend
Frank,

You can use IJavaProject.getPackageFragments() and iterate over the list to
find the one whose name is the given package name.

Jerome

"Frank Sauer" <frank.sauer@trcinc.com> wrote in message
news:b9gk48$uel$1@rogue.oti.com...
> I'm using the search engine to find references to packages, but the
results
> only give me a package name. However, I need the IPackageFragment
> corresponding to those packages it found. I can't find how to do that...
>
> Thanks,
>
> Frank
Previous Topic:Is there a way to add a comment using AST code generation?
Next Topic:(setting classpath programatically for a java project)
Goto Forum:
  


Current Time: Thu May 08 02:11:34 EDT 2025

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

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

Back to the top