If you modify the source model of a transformation configuration,
you can update the corresponding mapping model to reflect the changes. When
you add model elements to the source model, you can then specify alternate
file names for the files that the transformation generates for the added model
elements. When you move model elements within the source model, for example
from one package to another, you can update the mapping model to include the
location of the moved source model elements. When you remove model elements
from the source model, you can update the mapping model to reflect this change.
You must be in the Modeling perspective.
To update a mapping model after a source UML model changes:
- In the Model Explorer view, select the source
model elements of a transformation configuration.
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Mapping tab.
- On the Mapping page, click Update
Mapping Model.
- In the Update Options window, complete one
the following steps:
- If you added elements to the source model, select the Add
Artifacts for new source elements check box.
- If you moved elements in the source model, select the Update
model structure using source element structure check box
- If you removed elements from the source model, select the Remove
empty Packages and orphan Artifacts check box.
- Click OK.
- In the Update Results window, review the list
of artifacts.
- Click OK. The mapping model
is updated in the Model Explorer view.
- Click Close.