Specifying merge options for model-to-model transformation output
Before you begin
Procedure
- In the Project Explorer view, right-click the transformation configuration file; then click Open.
- In the Transformation Configuration editor, click the Properties tab.
- Specify how the model that the transformation generates should be merged with target model.
- Click .
Example
For example, assume that the transformation generates an output model called MyOutputModel.input, which is an instance of the input.ecore metamodel. Assume that the plugin.xml file of the input.ecore metamodel plug-in contains a merge extension that specifies the default Ecore merge strategy. If you create a transformation configuration that specifies MyOutputModel.input as the target model in a transformation configuration, and specifies the override merge option, the transformation replaces the contents of MyOutputModel.input with the contents of the temp.input model that the transformation generates at run time.
If you specify other merge options in the transformation configuration, such as automatic, silent, or visual and the input.ecore metamodel plug-in specifies the default EMF merge strategy, the transformation merges the contents of temp.input with MyOutputModel.input.
If the input.ecore metamodel plug-in does not specify a merge strategy, no merge occurs, regardless of the information in the transformation configuration. The transformation runs as though the override merge option is specified.