Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IPackageFragmentRoot
IPackageFragmentRoot [message #465756] Wed, 04 April 2007 12:23 Go to next message
Eclipse UserFriend
Originally posted by: samuele82.inwind.it

Hy all,
I'm developing an eclipse plugin which generates java code starting from a
statechart diagram.
In particular, my plugin should to be able to generate all import
declarations verifying which packages are included into jars present in
the build path.

I write this code:

if(newJProject.getRawClasspath()[i].getEntryKind()==
IClasspathEntry.CPE_LIBRARY)
IPackageFragmentRoot rootPackage=
newJProject.getPackageFragmentRoot(newJProject.getRawClasspa th()[i].toString());

How can I explore rootPackage variable, in order to read name's packages
which it contains?
Thanks in advance,
Samuel
Re: IPackageFragmentRoot [message #467051 is a reply to message #465756] Fri, 27 April 2007 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Hey...
someone can help me?!?!
I wrote this message several days ago...
Thanks in advance,
Samuel

Samuele wrote:

> Hy all,
> I'm developing an eclipse plugin which generates java code starting from a
> statechart diagram.
> In particular, my plugin should to be able to generate all import
> declarations verifying which packages are included into jars present in
> the build path.

> I write this code:

> if(newJProject.getRawClasspath()[i].getEntryKind()==
> IClasspathEntry.CPE_LIBRARY)
> IPackageFragmentRoot rootPackage=
>
newJProject.getPackageFragmentRoot(newJProject.getRawClasspa th()[i].toString());

> How can I explore rootPackage variable, in order to read name's packages
> which it contains?
> Thanks in advance,
> Samuel
Re: IPackageFragmentRoot [message #467120 is a reply to message #467051] Sat, 28 April 2007 01:50 Go to previous messageGo to next message
Eclipse UserFriend
doesn't the getChildren method work?
Re: IPackageFragmentRoot [message #467421 is a reply to message #467120] Thu, 03 May 2007 12:14 Go to previous message
Eclipse UserFriend
No, it doesn' work.
An org.eclipse.jdt.core.JavaCoreException arise when getChildren method is
called.
Why does it happen?
Thanks in advance,
Samuele
Previous Topic:clearing workbench state outside of WorkbenchAdvisor
Next Topic:Editor is not hidden when disabling activity
Goto Forum:
  


Current Time: Sat May 24 12:33:41 EDT 2025

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

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

Back to the top