获取Eclipse项目中内容类型的所有资源的API [英] API to get all the resources of a content type in a Eclipse project
本文介绍了获取Eclipse项目中内容类型的所有资源的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有API可以获取Eclipse项目中特定内容类型的所有文件?
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.
我正在看API将IProject和内容类型id作为参数,并返回IPath或IFile或IResource对象。例如获取项目中的所有Java文件。
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.
提前感谢。
推荐答案
不,没有。你的想法一般是怎么做的。
No, there is not. Your idea is generally how that would be done.
这篇关于获取Eclipse项目中内容类型的所有资源的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文