Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » question about resourcetraversal
question about resourcetraversal [message #17903] Tue, 26 August 2008 22:17
Eclipse UserFriend
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
Previous Topic:Eclipse 3.2.2: Contribute a pull down action (button) to (not-owned) View's toolbar. Possible?
Next Topic:question about resourcetraversal
Goto Forum:
  


Current Time: Sat Nov 02 17:06:04 GMT 2024

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

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

Back to the top