[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] getting IResource objects for all files in an IResource directory
|
I've got a ResourceSelectionDialog that can return a folder, and so I can
cast the getResult() to an IResource. Now, what I want to do is get the
IResource objects for all files inside that folder. I started to do it with
just casting that to a File object and doing a listFiles(). But then i've
gotta go through the rigamarole of turning those File objects into resources
and quite frankly i'm not having any luck.
In the end, my goal is to get the project-relative path for each of those
files (i.e. for each file resource, call resource.getProjectRelativePath())
But I figure there's probably an built-in mechanism in eclipse for doing
this already since this seems like it'd be a fairly common thing.
Any help is greatly appreciated.
Thanks.
Marc