2.4.1. QVT Launch Configuration
A QVT launch configuration provides all required information to
execute a QVT transformation. You can create a QVT launch
configuration via
Run | Run..
or
Run | Debug..
, then selecting
New
from the context menu of the
QVT Application
entry.
After you have
chosen a QVT script, you can select a execution direction offered by
the transformation signature in this QVT script. For the first defined
direction of the transformation signature, you have to define an EMF
Model in the
First Set of Models
field. For the second direction, you can define an EMF Model in
Second Set of Models
. Whether the
first or the second model will be the target model is determined by
the execution direction. In the example above, the second direction is
the execution direction, so that the second model will be the target
model and the first model will be the source model. If no
Second Set of Models
is provided, an
in-place
transformation is defined, i.e. the
transformation uses the first model both as source and as target
model. Note that if you define the same model in
First Set of Models
and
Second Set of Models
, the transformation is not
executed in
in-place
mode, i.e. new
created model elements are not introduced as new candidates to top
level relations during the transformation. If a defined target model
not exists, it will be created for you. However the source model must
always exist in order to execute the transformation. It is also
possible to define more than one models in the
First Set of Models
or
Second Set of Models
field to have multiple source and/or
target models. Note however that when you define multiple target
models, new element instances are stored in the first listed target
model if the containing element (which may be in another model) is not
explicitly set by the QVT transformation.