Viewing part references

You can display a hierarchical view of the EGL parts that are referenced in a program, library, PageHandler, service, or report handler part; and you can access those parts:
  1. Open the Parts Reference view in one of the following ways:
    • In the Project Explorer view or the EGL Parts List view, right-click on an EGL file that contains a program, library, PageHandler, service, or report handler part. Select Open in Parts Reference.
    • Alternatively, open an EGL file in the EGL editor:
      1. If the Outline view is not displayed, open that view by selecting Show View > Outline from the Window menu.
      2. In the Outline view, right-click on a file, then click Open in Parts Reference.
  2. The program, library, PageHandler, service, or report handler part is at the top level of the hierarchy; each referenced part is a sub-item in that hierarchy; and for each part, the view displays parameters, data declarations, use declarations, and functions, as appropriate.
  3. Double-click on a part. The related source file opens in the EGL editor, and the part name is highlighted.

You can search for related EGL code by right-clicking on the part, clicking References or Declarations and then choosing a scope for the search.

You can also search for parts or text strings among the parts in the view:
  1. Right-click on the EGL Parts Reference view and then click Find in tree.

    The EGL Parts Reference Find window opens.

  2. Type a search string into the Search string field.
    • A question mark (?) represents any one character
    • An asterisk (*) represents a series of any characters

    For example, type myForm?Group to locate parts named myForm1Group and myForm2Group, but not myForm10Group. Type myForm*Group to locate parts named myForm1Group, myForm2Group, and myForm10Group.

  3. Choose a search type. Part search searches for EGL parts and Text search searches for text within the
  4. Select the options for the search.
    • You can select a type of part to search for by clicking a radio button under Search For.
    • Under Direction, choose to search Forward or Backward from the currently selected part.
    • To continue searching from the other end if the search reaches the bottom or the top of the tree, select the Wrap search check box.
    • To make a text search case-sensitive (so that myFormGroup is different from MYFORMGROUP), click the Case sensitive check box.
    • To search for only a complete part name or text string, select the Whole word check box.
  5. When you are finished setting the criteria for the search, click Find. The first result of the search is highlighted in the EGL Parts Reference view.
  6. To move to the next result, click Find.
  7. When you are finished, click Close.

Related concepts
EGL projects, packages, and files
Parts

Related tasks
Locating an EGL source file in the Project Explorer
Opening a part in an .egl file

Related reference
EGL editor

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.