Search menu commands:
Name |
Function |
Keyboard Shortcut |
---|---|---|
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:
|
|
Implementors |
Finds all implementors of the selected interface in the chosen scope: (Workspace, Project or Working Set)
|
|
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 |
Workings Set |
all elements |
Searches in a working set |
Scopes can be saved and names in the working set dialog. Existing instances of working sets are also available in the Search Scope submenu
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.