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

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 Modeling > Transform > Configure Transformations. 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:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Common tab.
  4. On the Common page, click Replace UML elements.
    Note: The transformation does not replace model elements if data will be lost.
  5. Click Apply.
  6. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.