Finding text in models

In UML models, you can search for text, such as a specific word or a group of letters.

Typically, you search for a specific model element or group of model elements that share the same name or group of letters in their name. You can also search for a specific word in the documentation of a model element.

You can make your search more specific or more general by specifying search conditions.

You must have a model open in the Modeling perspective.

To find text in a model:
  1. Click Edit > Find/Replace.
  2. In the Find window, in the Find what field, specify the text that you want to find.
  3. In the Find in field, specify the model or model element in which to search.
  4. Optional: To specify search conditions, complete the following steps:
    • To search only for complete words, select the Match whole word only check box.
    • To search only for a model element in the model (that is, to exclude diagram elements or relationships that appear in the diagram editor), select the Do not search on diagrams check box.
    • To perform a case-sensitive search, select the Match case check box.
  5. Optional: To specify a more detailed search location, click Advanced and complete the following steps:
    • To search in only model element and diagram element names, under Fields, select the Name check box.
    • To search in only the documentation of model elements and diagram elements, under Fields, select the Documentation check box.
    • To search in specific types of model elements, under Types, select the check boxes for the appropriate model elements.
    • To search for a specific Object Constraint Language (OCL) expression, in the Additional OCL Filter field, type an OCL string.
  6. Click OK. The results appear in the Find and Replace view.
    Note: To organize the results in the Find and Replace view, you can rearrange the columns and sort the results alphabetically. To navigate to the model element or diagram element in the model, right-click a result.

Parent topic: Searching models

Related concepts
Models
Search conditions

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.