Eclipse: find resource on classpath

自作多情 提交于 2019-12-05 02:57:18

问题


Is there a way in eclipse to search the classpath for arbitrary resource file names (or patterns)?

I know I can use either

Navigate > Open Type

(which will scan the classpath for classes) or

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?


回答1:


The classpath helper plugin is at least a starting point. 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.




回答2:


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. Think, it should work for you.



来源:https://stackoverflow.com/questions/2996371/eclipse-find-resource-on-classpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!