Replacing source model elements with shortcuts to 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.

About this task

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:

Procedure

  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.

Results

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.

Feedback