Renaming a module or a library

As you develop or revise an application, you might want to rename a module or library. Use refactoring to avoid breaking dependencies that use the former name.

Renaming an existing module, mediation module, or library can break your application if you do not also update all the dependencies that use the former name. If you rename using refactoring, the dependencies will be automatically updated to use the new name.

To rename a module, mediation module, or library using refactoring:

  1. In the Business Integration view, right-click the module or library that you want to rename.
  2. From the pop-up menu, select Refactor > Rename.
  3. In the Rename wizard, type the new name for the module or library. The Preview button becomes available.
  4. Leave the check boxes selected. To see the refactoring actions that will be performed to complete the name change across the application, click Preview. Click the plus signs to see details. If you try to refactor while you have unsaved changes in an editor, you will be prompted to save the changes in the editor. Save the changes if you are sure you want to do so, or click Cancel to reconsider the changes before saving the editors and refactoring.
  5. Accept all the refactoring actions. Click OK to initiate the refactoring operation or Cancel to close the wizard without making the change. Be aware that you cannot undo a refactoring operation once it is performed except by refactoring again. The status bar shows that the workspace is being updated. It clears when the refactoring operation finishes.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.