Viewing part references
The EGL Parts Reference view lists, in a tree format, the data declarations and functions that are in a main part. A primary use of the view is to navigate quickly to a part that is the basis of a data declaration.
- Right-click the file that contains the part
- Click Open in Parts Reference
- To expand or contract a section of a subtree, click the + or - icon at the side of the tree node
- To expand all sections in a subtree, right click on the node that defines the subtree and click Expand branch to end
- To expand all sections in the view, right click on any node and click Expand all branches to end
| Task | Keystrokes |
|---|---|
| Open a part or widget-type definition that is referenced in the view | Double-click the part or widget-type definition, or a function included in the part. Alternatively, right-click a node and click Open Part. |
| List the parts that are referenced in a selected part | Right-click the part or widget-type definition, or a function included in the part; and then, click Open in Parts List. |
| View one section in the tree so that you can focus on one aspect of the part | Right-click a tree node (for example, Data Declarations or a specific record declaration), right-click Go into, and, if necessary, expand the tree that is now displayed. To return to the previous display, click the left arrow in the EGL Reference view. |
| Generate a part | Right-click the part and click Generate (to generate with the default build descriptor) or Generate with Wizard (to work through a set of screens where you can select a different build descriptor). |
| Rename a part | Right-click the part, click Refactor > Rename, and follow the directions in Renaming parts." |
| Move a part | Right-click the part, click Refactor > Move, and follow the directions in Moving parts." |
| Search for parts, data declarations, or functions | As described in the next section. |
Filter parts |
Click the pop-down button of filter and choose
the filter to show parts you want. There are three filters with functions
as follows:
|
Copy the current displayed tree |
Right-click a tree node and click Copy to copy the current displayed tree structure based on the selected tree node. Note that only the structure of expanded subtrees will be copied. It's usually used with the filter function to copy only the parts you want under the tree. |
Other options vary by part type.
Search for parts, data declarations, and functions
- Right- click the part or widget type
- Click Declarations
- Select the scope of your search
- Inspect the Search view, where you can open the file by double-clicking the file name
- Right-click the part, widget type, or function
- Click References
- Select the scope of your search
- Inspect the Search view, where you can open a file by double-clicking the file name
- Right-click the EGL Parts Reference view and then click Find
in tree.
The EGL Parts Reference Find window opens.
- 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
my?Partto locate parts named "my1Part" and "my2Part", but not "my10Part". Typemy*Partto locate parts named "my1Part", "my2Part", and "my10Part". - Select one of two search types. Part search searches for EGL parts and Text search searches for text in the tree
- Select the options for the search.
- If you selected Part 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 make a text search case-sensitive, select the Case sensitive check box.
- 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 search for only a complete part name or text string, select the Whole word check box.
- 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.
- To move to the next result, click Find.
- When you are finished, click Close.