You can rename an SQLJ file by using
the Refactoring wizard. When
you rename an SQLJ file, the class is also renamed. Optionally, all
references
to the class that occur in Java™ files
or SQLJ files that are in source
folders in SQLJ-enabled Java projects
in your workspace are also
updated.
To rename an SQLJ
file:
- In the Java perspective,
right-click an SQLJ file in a Java project,
and then click on the pop-up menu.
- Complete the steps of the Refactoring wizard. After
you click Next on the Rename page of the wizard,
you
are prompted to make the Java files
that are associated with the
SQLJ file writable. Click Yes in the message
box.
The SQLJ file name is changed to
the name that you specified in the
wizard. The class name in the file is changed to the new file name,
and, optionally,
all references to the class name that are in the workspace are also
changed
to the new class name.