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.
- Right-click on the package to be renamed, and then click
.
This opens the
Rename COBOL JVM Package dialog box.
- 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.
- 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.
- 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.
- Highlight the namespace component of the class name or place the cursor within the namespace, and then right-click.
- Click
.
This opens the
Rename COBOL JVM Package dialog box.
- 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.
- 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.
- Click
Continue to apply the change.