get subpackages from IPackageFragment [message #157311] |
Wed, 05 May 2004 11:16 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.02695 seconds