Get ALL resources [message #287504] |
Fri, 01 July 2005 06:10  |
Eclipse User |
|
|
|
Originally posted by: vducloux.cosmosbay-vectis.com
Hi everyone, as the subject says, I would like to get in an array all
the resources of a project at any depth....
I now do the following :
IResource[] ir = getProject().members(IResource.DEPTH_INFINITE);
BUT I only get the resources at the root level of the project, meaning
that I get none of the resources which are under one folder !!!
Can anyone please help me.... I'm continuing to search on my side ....
Thanks in advance,
Victor
|
|
|
|
Re: Get ALL resources [message #287589 is a reply to message #287552] |
Mon, 04 July 2005 09:43  |
Eclipse User |
|
|
|
Originally posted by: vducloux.cosmosbay-vectis.com
Hi,
Thanks for the help,
How come I didn't think of IResourceVisitor ???
Once again thanks,
Victor
DJ Houghton a écrit :
> The depth flags are not applicable for IContainer#members. Please see
> the javadoc for the list of applicable flags.
>
> You want to add a resource visitor. See IResourceVisitor for more
> information. Check out the appropriate flags on IResource#accept to see
> which ones you want to call. (include team private, derived, phantoms, etc)
>
>
> Ducloux Victor wrote:
>
>> Hi everyone, as the subject says, I would like to get in an array all
>> the resources of a project at any depth....
>>
>> I now do the following :
>>
>> IResource[] ir = getProject().members(IResource.DEPTH_INFINITE);
>>
>> BUT I only get the resources at the root level of the project, meaning
>> that I get none of the resources which are under one folder !!!
>>
>> Can anyone please help me.... I'm continuing to search on my side ....
>>
>>
>> Thanks in advance,
>>
>> Victor
|
|
|
Powered by
FUDForum. Page generated in 0.02984 seconds