Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-02-06 20:41:51 +0000
committeratikhomirov2009-02-06 20:41:51 +0000
commit2c85d84829dc4f16010437f2a7258d6bc634026a (patch)
tree4526a282c3c80ef9fd9d3cbaee7d91da603f0b5e
parent217fff9fa98d4bc35f90ad1d9f94c5ba3996d14e (diff)
downloadorg.eclipse.gmf-tooling-2c85d84829dc4f16010437f2a7258d6bc634026a.tar.gz
org.eclipse.gmf-tooling-2c85d84829dc4f16010437f2a7258d6bc634026a.tar.xz
org.eclipse.gmf-tooling-2c85d84829dc4f16010437f2a7258d6bc634026a.zip
[259583] employ real m2m transformation - QVTO transfromation to handle GMFMap to GMFGen step;v20090206-1609
new argument for the transformation (domain genmodel)
-rw-r--r--tests/org.eclipse.gmf.tests/transforms/Map2Gen.qvto24
1 files changed, 20 insertions, 4 deletions
diff --git a/tests/org.eclipse.gmf.tests/transforms/Map2Gen.qvto b/tests/org.eclipse.gmf.tests/transforms/Map2Gen.qvto
index 95a7d5ed5..f38775c00 100644
--- a/tests/org.eclipse.gmf.tests/transforms/Map2Gen.qvto
+++ b/tests/org.eclipse.gmf.tests/transforms/Map2Gen.qvto
@@ -1,17 +1,33 @@
modeltype GMFMAP uses mappings('http://www.eclipse.org/gmf/2006/mappings');
modeltype GMFGEN uses gmfgen('http://www.eclipse.org/gmf/2008/GenModel');
-transformation Map2Gen(in mapModel : GMFMAP, out gmfgenModel : GMFGEN);
+transformation Map2Gen(in mapModel : GMFMAP, in domainGenModel : GENMODEL, out gmfgenModel : GMFGEN);
configuration property rcp : Boolean;
configuration property useMapMode : Boolean;
configuration property useFullRunTime : Boolean;
-main(in mapRoot : GMFMAP::Mapping@mapModel, out genEditor : GMFGEN::GenEditorGenerator@gmfgenModel) {
- genEditor := mapRoot.map process();
+main() {
+ var mapRoot := mapModel.rootObjects()![GMFMAP::Mapping];
+ var genEditor := mapRoot.map process();
+ // 1. (+) structure (NodeMapping -> GenNode, LinkMapping -> GenLink), labels
+ // 2. (*) visual id
+ // 3. (*) viewmaps
+ // 4. (-) navigator, actions,
+ // 5. (+) parsers
+ // 6. (+) palette
+ // 7. (*) propertysheet (without navigator item)
+ // 8. (+) diagram runtime model
+ // 9. (+) genmodel and ElementTypes (not part of the structure step?)
+ // 10. (-) Audits and Metrics
+ // 11. (+) preference pages
}
-mapping GMFMAP::Mapping::process() : GMFGEN::GenEditorGenerator {
+// 1. Can I define an imperative operation (like main), not a helper or query?
+// 2. access and new for a transformation are supported? (spec: 8.1.11 Composing Transformation)
+// 3. Dot within a comment gives codecompletion
+
+mapping GMFMAP::Mapping::process() : GMFGEN::GenEditorGenerator@gmfgenModel {
copyrightText := 'FROM QVTO TRANSFORMATION';
diagram := object GenDiagram {};
modelID := rcp.repr() + useMapMode.repr() + useFullRunTime.repr();

Back to the top