Klocwork Architect search tips

From Insight-9.2

You open the Search dialog by clicking Search > Search.

Architect Search dialog.jpg

The Entity drop-down menu allows you to select one kind of identifier you want to search for. Or, you can select All (the default) to search for all entity types applicable to the language of your project. The list of entity types displayed in this menu depends on the language or your software system. For descriptions of all entity types, see Supported entity types.

The Attribute drop-down menu allows you to select the attribute you want to search for and display. The list of attribute types is dependent on attributes available and loaded in the system. See Default attribute types.

The Entity text field allows you to narrow your search by entering a string from the entity name.

The Attribute text field allows you to narrow your search by entering a string from the attribute value.

Search tips

  • You must enter text in the Entity field, the Attribute field, or both before you can search.* The search is case-sensitive.
  • A character string can be any number of characters.
  • Do not include angle brackets < > around the character string.
  • The asterisk (*) is a wildcard.
  • If the build contains duplicate entity names, to find all of the entities with that name, use an asterisk at the end. For example, if you want to find all occurrences of the file xyz.C in the build, enter the following in the text field: xyz.C*

Using the search list to move entities

You can drag entities from the Search list to the Project Tree view or Graphic view. This is an easy way to move entities from one location in the model hierarchy to another.

You can drag entities between models if the entity you are attempting to drag exists in both models. For example, if you performed a search in Model A, you can drag an entity from the Search results list into a new position in Model B, if the entity also exists in Model B. (This restriction does not bind custom diagrams. In custom diagrams you can arrange entities without regard for their location in the source software.)

In models, entities that are below the file level (class or interface level for Java) can only be dragged into file-level (class or interface level) entities. File-level (class or interface level for Java) entities can only be dragged into directories and other architecture blocks above the file (class or interface level) level. (These restrictions do not bind custom diagrams. In custom diagrams you can arrange entities without regard for their source hierarchy.)

See also