Searching data models

In the Search window, the Data Model Search page allows you to search data model resources. You can also use this page to find and replace object name strings.

About this task

Using the Data Model Search page, you can search for text that is contained in the name, label, or description of any object within a data model resource.

Procedure

To search a data model:

  1. Highlight a data model in the Data Project Explorer, and click Search > Search from the tool bar menu.
  2. In the window that opens, click the Data Model Search tab.
  3. Specify options for the search:
    Object with name
    Specify the expression that you want to search. Object names, labels, and documentation are searched. Use the following wildcards to narrow the scope of the search:
    • "*" matches any set of characters, including the empty string
    • "?" matches for any character
    • "\" is the escape for a literal; if you want to search for an asterisk, question mark, or backslash character, type a backslash before it to indicate that you are not using these characters as wildcards (e.g., "\*", "\?", or "\\")
    Case sensitive
    Select if you want the text search to be case sensitive.
    Regular expression
    Select if you want to search using a regular expression. The regular expression that you enter is checked for syntax errors.
    Scope
    Specify the scope of your search. You can search the whole workspace, pre-defined working sets, previously selected resources, or projects enclosing the selected resources.
  4. Optional: Click Replace to find a string in an object name and replace it with another string.
    Restriction: Although the replace function will show objects with object names, labels, or documentation strings that match the search string, you can only replace object name strings.

Results

The search results are listed in the Eclipse Search view.

What to do next

Double-click an object that is listed in the Eclipse Search view to highlight the object in the Data Project Explorer.

Feedback