How to use Eclipse Refactor

Eclipse provides a re-factor facility by which a change in a class/file name is automatically reflected in all the affected classes/files in the projects. 

·         Rename

You should perform rename as a normal operation in Eclipse. This operation might need to modify other files, as these may have references to the class defined by this file. In case of renaming a folder, the package name has to be changed for the files contained in it. As a result of this operation, all the files that need to be modified will be checked out automatically if they are not checked out already.

 

·         Move

Move is used to change the package location of java classes. Move also affects the project files. Therefore, dependent files must be checked out. The integration will automatically check out the dependent files.

 

·         Rename Project

This operation does not affect any class files. The only file that gets modified is .project file. If .project file is not checked out, the rename project operation will automatically check out this file. The project is renamed in Eclipse only. This operation does not change the Synergy project name.

 

·         Move Project

To move a project linked to Synergy, perform a Eclipse move operation on the project and provide a new location for the project. Your project will be moved to this new location. This operation will change the work area of the project in the Synergy repository.