This tab in the Search dialog allows you to search for Java elements. To show the tab invoke Search > Java.
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.
[qualification '.']typeName ['<' typeArguments '>']
Examples:
java.lang.Object
Runnable
List<String>
Type arguments can be specified to search for references to parameterized types using following syntax:
'<' { [ '?' {'extends'|'super'} ] type ( ',' [ '?' {'extends'|'super'} ] type )* | '?' } '>'
[declaringType '.'] ['<' typeArguments '>'] methodName ['(' parameterTypes ')'] [returnType]
Type arguments have the same syntax as explained in the type patterns section.
Examples:
java.lang.Runnable.run() void
main(*)
<String>toArray(String[])
['<' typeArguments '>'] [declaringQualification '.'] typeName ['(' parameterTypes ')']
Type arguments have the same syntax as explained in the type patterns section.
Note that the constructor name should not be entered as it is always the same as the type name.
Examples:
java.lang.Object()
Test(*)
<Exception>Sample(Exception)
[declaringType '.'] fieldName [fieldType]
Examples:
java.lang.String.serialVersionUID long
field*
packageNameSegment {'.' packageNameSegment}
Examples:
java.lang
org.e*.jdt.c*e
Select to search for one of the following kinds of elements:
Select to limit your search results to one of the following kinds of matches:
Match locations allow to further narrow the location of matches.
Select the location where to search for:
Select where in the scope to search for results
Select to limit your search results to one of the following scope
Press Choose to select or create a working set.
The search results are presented in the Search view.
The View Menu contains these options: