Moving a source file
You can use the refactoring function of the workbench to move source files and correct references to those files.
With refactoring, you can move EGL source files to a new location in an EGL package in your workspace.
- In the Project Explorer view, right-click the file and then click . The Move window opens.
- In the Move window, select a destination for the file. You can create a new package for the file with the Create Package button.
- You can click Preview for a list of the changes that EGL will make if you proceed.
- If you clear the Update references to the moved elements check box, EGL will not search other files for references to change. In most instances, select this check box.
- Click OK.
Moving a file makes the following changes:
- EGL moves the file to the new location
- EGL updates the package statement in the file
- EGL searches the build path for references to parts in the file and updates references and import statements as necessary
- For Program parts within an EGL plug-in project, EGL also corrects the reference to the program in the plugin.xml file.
You might still need to check for other changes that refactoring causes.