Rename Refactoring JVM COBOL

You can rename a package and optionally any sub packages in a JVM COBOL project. This results in the class's namespace being renamed along with the class's folder structure to match the new package name.

To rename a package in the COBOL Explorer

Note: You need to be in the package presentation view.
  1. Right-click on the package to be renamed, and then click Refactor > Rename.

    This opens the Rename COBOL JVM Package dialog box.

  2. In the New name field, type your new package name.
    Note: By default, the Update references option is checked.
    • If you want to rename subpackages as well, check Rename subpackages.
  3. Click OK.

    This opens the Rename COBOL JVM Package dialog box. At this point, summary information on problems found and the code affected by the rename is displayed.

  4. Click Continue to apply the change.

To rename a package in the COBOL editor

Note: You do not need to be in the package presentation view.
  1. Highlight the namespace component of the class name or place the cursor within the namespace, and then right-click.
  2. Click Refactor > Rename.

    This opens the Rename COBOL JVM Package dialog box.

  3. In the New name field, type your new package name.
    Note: By default, the Update references option is checked.
    • If you want to rename subpackages as well, check Rename subpackages.
  4. Click OK.

    This opens the Rename COBOL JVM Package dialog box. At this point, summary information on problems found and the code affected by the rename is displayed.

  5. Click Continue to apply the change.