Setup instructions for a model-to-model transformation that
uses a diagram to specify input
This sample includes a mapping project, a source test project,
and a target test project. To set up the sample, you must import the
sample into your workspace, start a runtime workbench, and import
the sample models.
Import the sample
Procedure
On the sample overview page, click Import
the sample.
Click Finish.
If you are prompted
to switch to the Plug-in Development perspective,
click OK. The wizard creates
a new project in your workspace. The new plug-in project is displayed
in the Package Explorer view. You can now browse
the sample transformation mapping model and the transformation source
code.
Results
The imported plug-in is a mapping project that contains the
following items:
In the model folder, a transformation mapping
model named ClassesInDiagram.mapping
In the src folder, the transformation source
code that was generated from the mapping model
All additional files required to support the project
Import the sample models
Procedure
In the Project Explorer view, right-click the project;
then click Run as > Eclipse
application.
In the runtime workbench that opens, click Help > Help Contents.
In the runtime workbench, open this sample again: On the
Contents page, click Samples > Technology samples > Transformations > A model-to-model transformation that uses diagrams to specify
input.
On the sample overview page, click Import the
source project.
Click Finish.
If you are prompted to switch to the Modeling perspective,
click OK. The wizard creates
the new project in your workspace and adds it in the Package Explorer
view.
Results
You can now investigate how the sample uses diagrams to specify
input. Read the topic named "Sample configuration for a model-to-model
transformation that uses diagrams to specify input."