Examples for the QVTr Editor

The org.eclipse.gmt.umlx.qvtr.examples plug-in contains some QVTr source code.
You may use this by importing the plug-in:

From the main Eclipse menu invoke File->Import...
Select Plug-in Development->Plugins and Fragments
Next
The default settings (Import As: binary projects) are adequate
Next
Select org.eclipse.gmt.umlx.qvtr.examples
Add-> then Next

The imported project is a new project and so has no natures.
In order for the QVTr builder to analyze the source files and add error markers it is necessary to use Add QVTrelation Nature from the right button menu of the org.eclipse.gmt.umlx.qvtr.examples project within Navigator or Package Explorer Views.
In order to view or modify the (Meta-Model) Registrations it is similarly necessary to use Add Model Registry Nature.

Open qvtr/qvtr2qvt2/Relation2Core.qvtr.

The contents will be shown highlighted, and since this transformation is work in progress a number of meta-model compliance errors are also shown.

ModelMorfExamples

Further QVTr examples and meta-models are provided with kind permission of the ModelMorf project. ModelMorf developed by Sreedhar Reddy and his team at TCS provides an execution engine for QVTr transformations. ModelMorf is available from http://www.tcs-trddc.com/modelmorf/index.htm.

The import statement in Import/spec/UmlToRdbms_1.qvt has been changed to use a string-literal file specification rather than a dot-separated package path. (The current QVTr specification is for a simple identifier.)

Duplication of meta-models has been reduced by moving all meta-models to the root folder of each example.

The DNF example makes use of an unspecified and undefined ID property.