score:-1
You can achieve this by this way: There's a dropdown in the 'File Search' dialog. Its label is: 'File name patterns'. Here you can specify the whole filename as well as extension of file, that you want to search in.
score:0
You can search for code inside source-jars attached to your workspace. Just use ctrl+H / Java Search. However I couldn't find a way to search for comments and java-docs inside those sources.
score:0
The most practical way of achieving this is to expand all the jars / other archives you need to search in - using simple script to automate if they are too many. Put the files in a folder and create a generic Eclipse project from it or just put it in a sub-folder to your existing java project (without making it a resource of course). Then you can use Ctrl-H to search in and Ctrl-R to find resources by name.
See the result:
score:1
Currently there is no Eclipse plugin can do this AFAIK. However you can write a simple utility to do the work:
URL url = FindResourceMain.class.getResource("/" + filePath);
Where filePath is the path you are interested.
Currently it will only find resources from root of class path. E.g. if there is a file config/settings.xml, you can find with using "config/settings.xml", but not "settings.xml".
Hope it will help. And hopefully someone will enhance the code and create an Eclipse plugin.
score:1
Is not possible, use Total Commander to search in jar/zip etc.
score:2
Searching inside a jar or finding the class name which contains a particular text is very easy with WinRar search. Its efficient and always worked for me atleast.
just open any jar in winrar, click on ".." until you reach the top folder from where you want to start the search(including subfolders).
Make sure to check the below options:
1.) Provide '*' in fields 'file names to find', 'Archive types'
2.) select check boxes 'find in subfolders', 'find in files', 'find in archives'.
score:2
you can do like this. press ctrl-h -- > java search(the tab like file search)--search for: Field limit to:all occurrences scope:workspace then press search button
score:16
Recently discovered the following plugin has beta support for searching into linked source jars: https://github.com/ajermakovics/eclipse-instasearch
You have to enable searching source jars in the preferences as it is turned off by default. Depending on how much source you have, the indexing process is very slow, but then search is very fast.
I have an Eclipse workspace with the enterprise versions of Alfresco (Explore, Share and SOLR) and Alfresco Workdesk (Vanilla, Office and Mobile). Indexing took about 8 minutes on my Early 2011 MacBook Pro. Search is almost instantanious.
Source: stackoverflow.com
Related Query
- How to make eclipse "File Search" to also search inside source jars containing some text?
- How can I make Eclipse file search not include svn directories?
- How to search for a file inside Eclipse CVS Repository without doing check out
- How to make VSCode search files inside Jars
- How to compile jar file containing only .java source files into .jar files containing .class files with Eclipse
- How to search inside current xml file in eclipse
- How do I hotkey directly to File Search tab in Eclipse
- How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?
- How to make war file in Eclipse
- How do you open an external Vim editor containing the active Eclipse editor file
- Eclipse - How to import a local source file into the same folder?
- Open directory containing a source file via Eclipse
- Why would eclipse not show search results inside file in results list?
- How to make (EPIC perl) plugin on eclipse do syntax coloring for a file that does not have .pl extension
- How to exclude a source file from being build in eclipse (C++)?
- How to determine absolute file path of a Java source file in Eclipse plugin?
- How can I browse the source code in a jar file containing source code in Eclipse?
- How can I parameterize an Eclipse generated make file
- How to include the jars referenced in "Java Build Path" section of an Eclipse project in a jar file generated with Ant using a build.xml file
- How to make Eclipse recognise a Git source tree that was a Bazaar source tree
- Eclipse Plugin : how to modify a file source programatically?
- How can I get Eclipse File Search to skip certain files?
- How to make the runnable jar file for a maven eclipse project with hibernate configuration
- Need Lucene 4.1.0 source jars or javadoc jars (to make developing with Lucene 4.1.0 in Eclipse usable)
- How to make Eclipse expand all code when a file is opened?
- How to make the source directory visible in Eclipse M2T JET projects?
- how to make .jar file in Eclipse MARS
- how can I instruct Eclipse to search for my AndroidManifest.xml file in another folder?
- How to mark file as source in Eclipse
- How to search for a file from Eclipse Plugin?
More Query from same tag
- Creating Button with Image in eclipse not working
- Eclipse Operation Failure When Using Periods
- Worklight Flight Ticket Sample App, push notification issues
- Versioning files error, using Magnolia in java with apache chemistry and standard CMIS
- java.lang.OutOfMemoryError: Java heap space importing a serialized file in eclipse
- Adding a folder generated at runtime as source folder using Ant in Eclipse
- Eclipse is telling me a method is undefined when it clearly is in fact defined
- Eclim for jsp files
- can't display the console on glassfish 4 with java 8 144 and use eclipse
- Upgraded Grails project from 2.2.1 to 2.3.6 ; run-app fails with Tomcat, won't debug with Jetty
- Eclipse, Python and the Google SDK
- Amazon Cloud Development leveraging Cloud Watch, Elastic Load Balancer (ELB), and Autoscale on Tomcat Server
- Unable to start Eclipse Mars on OSX
- Is there a way to run two or more python modules simultaneously from Eclipse(pyDev)?
- Cannot Start Intent
- where to put properties file in project (no resources folder is there)
- How to check in Eclipse if a particular library is in Java build path?
- org.apache.camel.NoSuchLanguageException: No language could be found for: simple
- Eclipse CDT - Symbol `__RLIMIT_NPROC` could not be resolved
- Subclipse + SVNKit keeps asking for credentials when connecting through svn+ssh
- Integrate code generation with eclipse c++ build
- Maven IDEA plugin (or eclipse plugin)
- How to open a .launch file in Eclipse
- JavaFX - StackedAreaChart and method setLowerBound
- How to use eclipse and cvs commit and update
- GAE - No meta-data found
- PHP (WAMP) - Exlipse PDT, xDebug: not stopping at breakpoint
- AssertionFailedException while creating CellEditor in Eclipse
- Integration testing using Jenkins
- How to access DefaultTableModel from another class