get subpackages from IPackageFragment [message #157311] |
Wed, 05 May 2004 11:16 |
Eclipse User |
|
|
|
Originally posted by: jochen.kressin.artnolgoy.com
Hi,
how is it possible to get all subpackages from an IPackageFragment? As far as I
can see the method getChildren() only returns ICompilationUnits and IClassFiles
and I cannot find something like getSubpackes() (despite of the existance of the
method hasSubpackes). I am using Eclipse 3.0, Milestone 8.
Thanks,
Jochen
|
|
|
Re: get subpackages from IPackageFragment [message #171816 is a reply to message #157311] |
Wed, 04 August 2004 16:13 |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Jochen Kressin wrote:
> Hi,
>
> how is it possible to get all subpackages from an IPackageFragment?
You cannot since Java has no concept of sub-packages. You can get the
package fragment root via getParent() and then its children using
getChildren().
Dani
> As far as I can see the method getChildren() only returns
> ICompilationUnits and IClassFiles and I cannot find something like
> getSubpackes() (despite of the existance of the method hasSubpackes).
> I am using Eclipse 3.0, Milestone 8.
>
> Thanks,
>
> Jochen
|
|
|
|
Powered by
FUDForum. Page generated in 0.03203 seconds