Searching and replacing in models

The IBM® Rational® Rhapsody® search facility is available to use in Eclipse for various operations.

About this task

Procedure

To access Rational Rhapsody search in Eclipse:

  1. With your Rational Rhapsody model open in Eclipse, choose Search > Search to open the Search window. (You can also right‑click an element in the model browser and select Search.)
  2. For the Rational Rhapsody search facility, click the Rhapsody tab. (You can also right‑click an element on the model browser and select Search inside.)

    In the Rational Rhapsody search facility you can use any of the standard search facilities. You can also customize your search using the following buttons.

    • Exact string allows a non-regular expression search. When selected, the search looks for the string entered into the search field (such as char*).
    • Wildcard allows wildcard characters in the search field such as * and produces results during the search operation that include additional characters. For example, the search *dishwasher matches class dishwasher and attribute itsdishwasher.
    • Regular Expression allows the use of Unix‑style regular expressions. For example, itsdishwasher can be located using the search term [s]dishwasher.

    The search results display in the Search tab of the Eclipse output window.

Results

After locating elements using the Search facility, you can perform the following operations in the Search window:

To sort the items in the list, click the heading for the column to sort according to information in that column.

Working with an item located in a search

About this task

To work with an item located in the search:

Procedure

  1. Double-click an item in the list to open its Features window and highlight its location on the model browser.
  2. Make any required changes from these entry points.

Feedback