[英]Eclipse: find resource on classpath
Is there a way in eclipse to search the classpath for arbitrary resource file names (or patterns)? 在eclipse中有没有办法在类路径中搜索任意资源文件名(或模式)?
I know I can use either 我知道我也可以使用
Navigate > Open Type
(which will scan the classpath for classes) or (将扫描类路径的类)或
Navigate > Open Resource
, Navigate > Open Resource
,
which will search for any resource type, but only in my project folders. 它将搜索任何资源类型,但仅在我的项目文件夹中搜索。 Is there any way to achieve a combination ob both, to do a resource search (something like
*.xsd
) that searches all jars on the classpath? 有没有办法实现组合ob两者,进行资源搜索(类似
*.xsd
)搜索类路径上的所有jar?
The classpath helper plugin is at least a starting point. classpath helper插件至少是一个起点。 Looks like it doesn't provide a search but it seems to list all entries on the classpath.
看起来它不提供搜索但似乎列出了类路径上的所有条目。
I don't know if your fit and willing to modify it but it should provide the basic code to add some filename-based search on top. 我不知道你是否适合并愿意修改它,但它应该提供基本的代码来添加一些基于文件名的搜索。
Which Version are you using? 您使用的是哪个版本?
Because when I open the search-menu (Java-Search), I could choose, which space should be searched, whether the hole workspace or including all JRE-Libraries. 因为当我打开搜索菜单(Java-Search)时,我可以选择,应该搜索哪个空间,是洞工作区还是包括所有JRE库。 Think, it should work for you.
想想,它应该适合你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.