Java programmers usually searches for some methods, keywords or even identifiers in the source files, project or in the workspace as a whole. The search capability uses an index of Java code in your workspace that needs to be kept up-to-date, Independent of Java builds, Means you don’t have to select the “Build Automatically” preference or need to save your modifications in order to do a search.
Searching In A File
To search for some text in a file in the active editor.