Replacing source model elements with shortcuts to UML-to-Java transformation output

You can replace the model elements in your source project with pointers, or direct references, to the elements that a transformation generates. The transformation alters the source model, so you can no longer edit source model elements that you transform. This is useful if you want to work in the target domain instead of working with the UML model. The transformation output becomes the primary engineering artifact.

If the transformation cannot transform source model elements, such as elements nested in classes, it moves these elements to the nearest package. If the transformation cannot move these elements, it deletes them.

To replace source model elements with shortcuts to the transformation output:

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. Click the Common tab.
  3. On the Common page, click Replace UML elements.
  4. Click File > Save.
The options are applied the next time that you run the transformation.
Note: If you create a new transformation configuration, you can specify this information on the Common page of the New Transformation Configuration wizard.
Related concepts
Relationships between UML model elements and UML-to-Java transformation output
Related tasks
Preventing UML-to-Java transformations from creating relationships between UML model elements and transformation output
Creating trace relationships between UML source model elements and UML-to-Java transformation output
Related information
Tutorials for transformations

Feedback