Is there any API to get all the files of particular content type in a Eclipse project?
One option is to visit all resources and collect the files of a content type.
I am looking at API which takes IProject and content type id as parameters and returns IPath or IFile or IResource objects. For example get all Java files in a project.
Thanks in advance.
No, there is not. Your idea is generally how that would be done.