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 . 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:
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Properties tab.
- 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.
- Click Apply.
- Click Close.