To find declarations of or references to any program element in code in the workspace,
use the Search dialog. Launch the Search dialog box by clicking the Search button
on
the toolbar, or by selecting Search from the Workspace
menu.
In the Search dialog box, specify the following criteria:
Click Start to start the search. The number of occurrences found are shown as the search runs. Click Stop to halt the search and pass any results on to the Search Results window. Click Cancel to cancel the search without reporting any found occurrences.
The results of the search, if any occurrences were found, are added to the Search
Results window, which also lists the results of previous searches. The Search
Descriptions pane lists all the searches run in this session. If you select
one of the searches, the (number of) matches pane shows the list of
elements in which the declarations or references are made for the selected search.
You can rearrange this list by selecting the or
button from the toolbar to list the methods by method name or type name, respectively. If
you select one of the elements, the Source pane displays the program
element's source code, with the first declaration or reference highlighted.
You can re-run the search from the Search Results window to update the list of occurrences as the workspace changes.
Workspace
Repository
Projects and other program elements
Searching for a program element in the workspace
Searching for a program element in the repository
Searching for text in a source pane