[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: How to get all the resources under a project?

Robbin,

It's really annoying how you ask the same questions on so many
newsgroups. Please don't do this. Ask on one newsgroup. If you must post
to multiple groups, use a single posting to all groups rather than ask
three separate questions as you've done for here, JDT, and platform.


robbin wrote:
> IResource[] resources = myProject.members();
>
> for(int i =0;i<resources.length;i++){
> if(resources[i].getType()==IResource.FOLDER){
> IResourceProxyVisitor visitor = new IResourceProxyVisitor(){
> public boolean visit( IResourceProxy proxy){
> proxy.requestResource();
> return true;
> };
> };
> resources[i].accept(visitor,IResource.NONE);
> }
> }
> My code is Above.
> I don't know how to traversing the tree under the resources[i]?