RAD Studio (Common)
ContentsIndex
PreviousUpNext
Searching Source Code for Usages

In addition to the diagram search facility, UML Modeling enables you to track how an element or member is used in a source-code project. The Search for Usages dialog box enables you to find the references to, and overrides of, the elements and members in implementation projects.  

The Search for Usages command is available on the context menu of an element in a diagram or in the Model View. Note that Search for Usages is not available for the design projects.

To search source code for element usages:

  1. Either select an element or a namespace and click SearchSearch for usages or right-click an element or a namespace and choose Search for Usages on the context menu. The dialog box opens with the selected element specified in the section Element to search.
  2. In the Options section, check the following options as required:
    • Usages of the Element
    • Usages of Members
    • Usages of Derived Classes
    • Implementations
    • Overriding
    • Include Usings/Imports
    • Skip self
  3. Click Search.
The search results are displayed in a tab in the Search for Usages window as a tree view, each node containing all usages of an element in a certain class. Note that each new search adds its own tab to the window. 

The Search for Usages window provides a toolbar with the buttons that enable you to expand or collapse the treeview nodes, and repeat the search in the selected tab with the same settings. 

The context menu of a search results tab provides the following commands:

Command 
Close  
Close all  
Close all but this  
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!