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.

    The changes are applied.

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.

    The changes are applied.