To rename parts and correct references to
those parts,
you can use the refactoring function of the workbench.
To rename a part:
- Select
the part to rename by using one of the following methods:
- In
the EGL editor, place the cursor on the part name and right-click.
- In either the Outline, Parts List, or Parts Reference view, right-click
the part.
- For generatable parts, in the Project Explorer view,
right-click
the file that contains the part.
- In the popup menu,
click . The Rename window opens.
- In the Rename window,
type a new name for the part; remember to
follow EGL naming conventions.
- To view a list of the changes
that EGL will make if you proceed,
click Preview.
- If you clear Update
references, EGL will
not search other files for references to change. In most cases, select
this check box.
- Click OK.
When
you rename a part, the following changes occur:
- EGL changes
the name of the part to the new name
- EGL searches the build
path for references to that part and changes
the references to match the new name of the part. For example, if
you rename a record part, EGL changes variable declarations to the
new name of the record
- For generatable parts, EGL changes
the name of the file to match
the new part name
Note: You cannot use this
method to rename functions.