Specifying overwrite options for UML-to-Java transformation output

When the UML-to-Java transformation generates classes, operations, and fields, it assigns the @generated tag to these elements. The next time that you run the transformation, the transformation overwrites these elements. When you delete elements from the source model and reapply the UML-to-Java transformation, the transformation deletes previously generated fields and methods that still have the @generated tag and no longer have a corresponding source model element. However, for files that the transformation generates, you can specify whether or not files are deleted.

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 specify overwrite options for files that the UML-to-Java transformation generates:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Properties tab.
  4. Complete one of the following steps:
    • Click Ask before deleting obsolete generated files.
    • Click Always delete obsolete generated files.
    • Click Never delete obsolete generated files.
  5. Click Apply.
  6. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.