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.
The changes are applied.
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.
The changes are applied.