Java search

The Java searching support allows you to find declarations and references of Java elements (packages, types, methods, fields). Searching is supported by an index that is kept up to date in the background as the resources corresponding to Java elements are changed. The Java search operates on workspaces independent of their build state. For examples, searches can be conducted when auto-build is turned off.

The following searches can be conducted from the pop-up menus of Java elements:

Command

Description

References

Finds all references to the selected Java element

Declarations

Finds all declarations of the selected Java element

Implementors

Finds all implementors of the selected Java interface

Read access

Finds all read accesses to the selected Java field

Write access

Finds all write accesses to the selected Java field

The scope of the search is defined as:

Workspace - all projects and files in the workspace are included in this search

Hierarchy - only the type hierarchy of the selected element is included in this search

Working Set - only resources that belong to the chosen working set are included in this search

Related concepts

Java development tools (JDT)

Related tasks

Searching Java code

Related reference

Search actions
Java Search tab

 Copyright IBM Corporation 2000, 2002. All Rights Reserved.