Search menu commands:
Name |
Function |
---|---|
Search... |
Opens the search dialog (Ctrl+H) |
File... |
Opens the search dialog on the File search page |
Java... |
Opens the search dialog on the Java search page |
Text |
Searches for the selected text in the chosen scope:
|
References |
Finds all references to the selected Java element in the chosen scope:
|
Declarations |
Finds all declarations of the selected Java element in the chosen scope:
Note: A strict declaration search would only ever return a single declaration. Since that's not interesting, declaration searches are relaxed as follows:
|
Implementors |
Finds all implementors of the selected interface in the chosen scope:
|
Read Access |
Finds all read accesses to the selected field in the chosen scope:
|
Write Access |
Finds all write accesses to the selected field in the chosen scope:
|
Occurrences in File |
Finds all occurrences of the selected Java element in its file (Ctrl+Shift+U)
|
Referring Tests |
Finds all JUnit tests that refer to the currently selected type |
Search scopes submenu:
Scope |
Availability |
Description |
---|---|---|
Workspace |
all elements |
Searches in the full workspace |
Project |
all elements |
Searches in the project enclosing the selected element |
Hierarchy |
types and members |
Searches in the type's hierarchy |
Working Set |
all elements |
Searches in a working set |
Custom scopes can be configured using the working set dialog. Existing working sets are shown in the Search scope submenus after they've been used in a search.
A Java search can also be conducted via the context menu of all Java views. The search context menu is also available in the Java editor. The search is only performed if the currently selected text can be resolved to a Java element.
The type of the selected Java element defines which search context menus are available. The Java editor does not constrain the list of available Java searches based on the selection.