You can modify names, fields (attributes), and methods (operations)
of Java™ classes
and interfaces from Unified Modeling Language (UML) class diagrams.
To modify a Java class or interface:
In the diagram editor, click the name, an attribute, or an operation
of a Java class
or interface and press F2.
Type your modifications and press Enter.
The changes are saved to the source code file of the Java class
or interface.