Creating mapping models in model-to-model transformation mapping projects

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.

Before you begin

You must have a mapping project in your workspace.

About this task

To create a transformation mapping model:

Procedure

  1. Click File > New > Other.
  2. In the Select a wizard window, expand Transformation Authoring and click Transformation Mapping; then click Next.
  3. On the Create a new map page, in the Project field, select a destination project for the mapping model.
  4. In the Folder field, select a destination folder for the mapping model.
  5. In the Map Name field, specify a name for the mapping file.
  6. 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.
  7. To specify the source and target input model or models, complete the following steps:
    1. Click Add Model beside the corresponding area of the New Transformation Mapping page.
    2. In the Load Resource dialog box, click the appropriate button to browse to the model or models.
    3. Click the model or models; click Open, and click OK.
  8. Click Finish.

Feedback