Creating trace relationships between UML source model elements and UML-to-Java transformation output

Creating trace relationships enables you to use visual development tools to understand the relationships between source model elements and transformation output. This function is useful in large projects that might contain multiple models and transformation configurations. The transformation does not alter the source model.

To create a trace relationship between model elements and source code:

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. On the Common tab, click Create trace relationships.
  3. Click File > Save.
The next time that you run the UML-to-Java transformation, it adds a unique identifier to the source code comments of each transformed element that supports a @generated tag. If necessary, the transformation also refactors the code to reflect the changes to the model.
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
UML-to-Java transformations
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
Replacing source model elements with shortcuts to UML-to-Java transformation output
Related reference
Interpretation of UML elements by UML-to-Java transformations
Impact of code changes on UML-to-Java transformation output
Impact of model changes on UML-to-Java transformation output
Related information
Tutorials for transformations

Feedback