简体   繁体   中英

Eclipse: find resource on classpath

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM