Mapping models, also called mapping files, are instances
of Eclipse Modeling Framework (EMF) metamodels, also called Ecore models,
that contain references to the metamodels that are being mapped. When you
create a mapping project, the authoring tools create a mapping model in the
project by using the input and output model or models that you specify. A
mapping project contains at least one mapping model. Creating
multiple mapping models in a project encourages the reuse of maps in other
mapping projects. You must have a mapping project in your
workspace.
To create a transformation mapping model:
- Click .
- In the Select a wizard window, click Transformation
Mapping; then click Next.
- On the Create a new map page, in the Project field,
select a destination project for the mapping model.
- In the Folder field, select a destination
folder for the mapping model.
- In the Map Name field, specify a name for
the mapping file.
- Optional: In the Version field,
specify a version number for the mapping model. The version
number applies to the mapping model; it does not affect the version number
of the mapping project to which this mapping file belongs.
- To specify the source and target input model or models, complete
the following steps:
- Click Add Model beside the corresponding
area of the New Transformation Mapping page.
- In the Load Resource dialog box, click
the appropriate button to browse to the model or models.
- Click the model or models; click Open,
and click OK.
- Click Finish.