| question about resourcetraversal [message #17903] | 
Tue, 26 August 2008 18:17  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: marc.esher.comcast.net 
 
Hey All, 
  Given an IFolder, I'd like to traverse it, to an infinite depth, and get  
all resources that match a certain pattern. For each resource that matches  
the pattern, I'd like to put it in a list (or whatever). 
 
  It appears that I have  
org.eclipse.core.resources.mapping.ResourceTraversal and  
IResource.accept(IResourceProxyVisitor visitor) at my disposal, passing in  
container.members() as the IResource array. 
 
  However, I'm having trouble determining which to choose. Are there  
guidelines for when one uses a ResourceTraversal and when on egoes with  
IResource.accept().  A simple, clear example of each would really shed light  
on this for me. 
 
Thanks! 
 
marc
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03394 seconds