问题
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