# Java search tab

This tab in the Search dialog allows you to search for Java elements.

## Search string

In this field, type the expression for which you wish to search, using the wildcard characters mentioned in the dialog as needed. This field is initialized based on the current selection.

- Depending on what is searched for, the search string should describe the element:
  - Type: the type name (may be qualified or not).
    Examples:
    - org.eclipse.jdt.internal.core.JavaElement
    - MyClass.Inner
    - Foo
  - Method: the defining type name (may be qualified or not as for Type search, optional), the method selector and its parameters (optional).
    Examples:
    - org.eclipse.jdt.internal.core.JavaElement.getHandleFromMemento(MementoTokenizer, WorkingCopyOwner)
    - equals(Object)
    - foo
  - Package: the package name for a package (e.g. org.eclipse.jdt.internal.core)
  - Constructor: the defining type name (may be qualified or not as for Type search, optional) and the constructor parameters (optional).
    Examples:
    - org.eclipse.jdt.internal.core.JavaElement(JavaElement, String)
    - Foo
    Note that the constructor name should not be entered as it is always the same as the type name.
  - Field: the defining type name (qualified or not as for Type search, optional) and the field name.
    Examples:
    - org.eclipse.jdt.internal.core.JavaElement.name
    - foo
- From the drop-down menu, you can choose to repeat (or modify) a recent search.
  Select the Case sensitive field to force a case aware search. Case sensitive is enabled when a custom search string is entered.

## Search For

Select to search for one of the following kinds of elements:

- Type
- Method
- Package
- Constructor
- Field

## Limit To

Select to limit your search results to one of the following kinds of matches:

- Declarations
- Implementors (available only when searching for types)
- References
- All Occurrences
- Read Access (available only when searching for fields)
- Write Access (available only when searching for fields)

If you would like to search the JRE system libraries as well, select the Search the JRE system libraries checkbox.

## Scope

Select to limit your search results to one of the following scope

- Workspace
- Selected Resources
- Working Set

Press Choose to select or create a working set.

Java search

Conducting a Java search using the search dialog
Conducting a Java search using pop-up menus

Search