Finding Class, Method, and Field Usages

See Also

You can use the Usages window to show you everywhere a class (structure), function, variable, macro, or file is used in your project's source code.

To find where a class (structure), function, variable, macro, or file is used in your project:

  1. In the Source Editor, right-click the class, function, variable, macro, or file and choose Find Usages.
  2. In the Find Usages dialog box, select options for the scope of the search. For a class, you can choose to display all usages, all subtypes, or direct subtypes only.
  3. Click Find.

    A tab in the Usages window displays the file name and the lines of code for the usages found in that file.

For classes, the Usages window displays all the code lines that use the type, or use the type's members and static variables.

For methods, the Usages window displays the code lines that call the method.

For fields, the Usages window displays the code lines that set the field to a value or get the value of the field.

To jump to a specific occurrence of the code element:

See Also
Using the Navigator Window
Using the Classes Window
Going to a Type
Going to a Function or Variable
Going to a Declaration

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.