question about resource traversal in eclipse [message #332872] |
Tue, 11 November 2008 22:18  |
Eclipse User |
|
|
|
Originally posted by: marc.esher.comcast.net
Greetings all,
What's the preferred method of traversing resources in eclipse, i.e. user
right clicks on a directory, selects menu item to perform some action on
each resource in that directory and all subdirs? I'd like to simply get a
List of all resources for a dir and its subdirs. Just checking to see what's
built into the framework before going down the recursion route.
thanks!
marc
|
|
|
|
Re: question about resource traversal in eclipse [message #332896 is a reply to message #332876] |
Thu, 13 November 2008 03:03   |
Eclipse User |
|
|
|
Originally posted by: marc.esher.comcast.net
awesome. that was what i was hoping to hear.
is this "idiom" documented with examples anywhere? the reason I ask is that
in order to even learn this was a possible approach, I basically stumbled
through other people's code that appeared to do something similar to what i
want to do, and that seemed awfully inefficient to me. I wasn't able to find
any non-API documentation on this though.
thanks.
marc
"Prakash G.R." <grprakash@gmail.com> wrote in message
news:gfdsvi$7da$1@build.eclipse.org...
> You need to create a IResourceVisitor and call the IFolder.accept() method
>
> - Prakash
> --
>
> http://blog.eclipse-tips.com
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03678 seconds