Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Get ALL resources
Get ALL resources [message #287504] Fri, 01 July 2005 06:10 Go to next message
Eclipse UserFriend
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 #287552 is a reply to message #287504] Sat, 02 July 2005 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dj_houghton.nospam.ca.ibm.com

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
Re: Get ALL resources [message #287589 is a reply to message #287552] Mon, 04 July 2005 09:43 Go to previous message
Eclipse UserFriend
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
Previous Topic:Sourcecode seems to be out of sync or something
Next Topic:How to catch and/or cancel the closing of an Editor
Goto Forum:
  


Current Time: Thu May 08 17:43:15 EDT 2025

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

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

Back to the top