To move parts between source files and to
correct references
to those parts, you can use the refactoring function of the workbench.
To move a part:
- Select
the part that to move 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 pop-up menu,
click . The Textual Move window
opens.
- In the Textual Move window, select a new source file
for the part.
To create a new file to put the part into, you can click Create
EGL file. If you are moving a generatable part, the target
source file must have the same name as the part.
- To view a
list of the changes that EGL will make if you proceed,
click Preview.
- If you clear Update
references to the moved elements,
EGL will not search other files for references to change. In most
cases, select this check box.
- Click OK.
When you move a part, the following changes occur:
- EGL
moves the part into the target source file
- EGL searches the
build path for references to that part and changes
the references to match the new location of the part. For example,
if you move a Record part, EGL changes variable declarations and any import statement
to the new location of the record