Examples for the UMLX Editors

The org.eclipse.gmt.umlx.qvtr.examples plug-in contains some QVTc and 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 QVTc or QVTr builder to analyze the source files and add error markers it is necessary to use UMLX Natures->Add QVTcore Nature or UMLX Natures->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 UMLX Natures->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 examples have been changed fractionally to resolve incompatibilities with the Ballot 3 QVT syntax.

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

The DNF example has two errors becuase it makes use of an unspecified and undefined ID property.