You can replace the UML model elements in your source project with
shortcuts to the Java™ elements that the transformation generates. The
transformation replaces the elements with pointers to the corresponding generated Java element.
This is helpful when you want to see how the elements that the transformation
generates correspond to the structure of your source model.
Before you apply the UML-to-Java transformation, you should read the
information that is available at . From the
Transformations/Configurations list,
select
UML to Java. On the
Transformation
Description page, click
View Transformation Documentation.
You
must be in the Modeling perspective.
To replace source elements with shortcuts to UML-to-Java transformation
output:
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Common tab.
- On the Common page, click Replace UML elements.
Note: The transformation does not replace model elements
if data will be lost.
- Click Apply.
- Click Close.