Step 1 — Run Eclipse run-time

  1. Right-click on your transformation project (here pivot)
  2. Select Run As → Eclipse Application

This launches a new Eclipse instance (called Eclipse run-time).

Step 2 — Create a project

  1. In the Eclipse run-time, go to File → New → Project
  2. Select General → Project
  3. Click Next
  4. Enter a project name (for example Families)
  5. Click Finish

Step 3 — Create input models

  1. Right-click on project FamiliesNew → File
  1. Enter a file name (for example addams.fam)
  2. Xtext will prompt you to convert project Families into an Xtext project — click Yes
  3. Edit file addams.fam with a valid model conforming to the grammar.

In the example below, two families are defined in two different files.

Step 4 — Instantiate the transformation project

  • In the Eclipse run-time, go to File → New → Other…
  • Under BCerT, choose Generate transformation instance

  • Select the pivot meta-model in the list (you can use the search field)
  • Enter a name for the transformation instance
    (you can keep pivot; in this example we use Families2Persons)

  • Click Next
  • Select the source meta-model (in this example: families : families)
  • Specify the output file extension (in this example: per)
  • In the file list, select the input models to transform and add them to the selection

  • Click Finish to generate the transformation instance