Oracle® Solaris Studio 12.4: IDE Quick Start Tutorial

Exit Print View

Updated: October 2014
 
 

Finding Class, Method, and Field Usages

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.

  1. In the customer.cc file, right-click the Customer class on line 42, and choose Find Usages (Alt-F7).

  2. In the Find Usages dialog box, click Find.

  3. The Usages window opens and displays all of the usages of the Customer class in the source files of the project.

    image:Usages window

Find Usages runs in the background so you can do other tasks while it is search a large number of files. The Usages window updates results as they are incrementally found. There is a progress indicator and an incrementing count of occurrences. You can stop the search at any point and your search results up to that point are saved. You can navigate between the search hits, change the view from logical to physical, and run Find Usages again with different settings.