IPackageFragmentRoot [message #465756] |
Wed, 04 April 2007 12:23  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds