|
Refactoring
Introduction Refactoring allows the change of a project 'factor' in a straightforward, simple way. TJI provides the three most useful refactorings - changing a class name, changing a project's package and changing a project's 'base directory'.
Refactor Class Have the class you wish to change open and selected as the current editor. Select the 'Refactor Class' option and enter a new class name. The IDE will change the class name in the source file, rename the source file and change all the references to this class throughout the current project. If you need to change references to this class that exist in other projects (if, for example, this class forms part of a utilities package that is used by other projects), open those projects and use TJI's 'Replace in Project' functionality, with 'Case Sensitive' set to true and 'Whole Word' also set to true.
Refactor Package Select the 'Refactor Package' option and enter a new package name. TJI will change the package statement in all the source files within the current project and update the directories of these source files to match. Other files and sub-directories will also be moved, as appropriate.
Refactor Base Directory Effectively, this option allows you to move all the project files from one directory location to another, while preserving the sub-directory and package structure.
|