Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-02-11 21:08:06 +0000
committeratikhomirov2009-02-11 21:08:06 +0000
commit6db9b1c45ca14064f9029999fa555f0df344be4d (patch)
treeaaf58e302fc9037cd27ed43786c288328e588e51
parente8376878993dc58294c2e82d5a5a8f3ff8b1a115 (diff)
downloadorg.eclipse.gmf-tooling-20090211-1925.tar.gz
org.eclipse.gmf-tooling-20090211-1925.tar.xz
org.eclipse.gmf-tooling-20090211-1925.zip
[259583] employ real m2m transformation - QVTO transfromation to handle GMFMap to GMFGen step - Audits and Metricsv20090211-1925
-rw-r--r--plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
index b58f541a6..c4c6d669e 100644
--- a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
+++ b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
@@ -650,12 +650,13 @@ mapping GMFMAP::Auditable::auditTarget() : GMFGEN::GenAuditable
GMFMAP::AuditedMetricTarget::ruleTarget, GMFMAP::DomainAttributeTarget::ruleTarget
{} --assert (false) with log ('Uknown rule target', self);
mapping GMFMAP::DomainElementTarget::ruleTarget() : GMFGEN::GenDomainElementTarget {
- --element := self.element.findGenClass();
+ element := self.element.findGenClass();
}
mapping GMFMAP::NotationElementTarget::ruleTarget() : GMFGEN::GenNotationElementTarget {
- --element := self.element.findGenClass(); -- XXX double-check if domain's genmodel should be consulted here, not notation's
+ element := self.element.findGenClass(); -- XXX double-check if domain's genmodel should be consulted here, not notation's
}
mapping GMFMAP::DiagramElementTarget::ruleTarget() : GMFGEN::GenDiagramElementTarget {
+ -- alternatives:
-- element += self.element.resolveIn(GMFMAP::NodeMapping::structure, GMFGEN::GenCommonBase);
-- element += self.element.resolveIn(GMFMAP::LinkMapping::structure, GMFGEN::GenCommonBase);
-- element += self.element.resolveIn(GMFMAP::TopNodeReference::structure, GMFGEN::GenCommonBase);
@@ -667,8 +668,8 @@ mapping GMFMAP::AuditedMetricTarget::ruleTarget() : GMFGEN::GenAuditedMetricTarg
result.metricValueContext := resultClassifier.oclAsType(GENMODEL::GenDataType);
}
mapping GMFMAP::DomainAttributeTarget::ruleTarget() : GMFGEN::GenDomainAttributeTarget {
- --attribute := self.attribute.findGenFeature();
- --nullAsError := self.nullAsError;
+ attribute := self.attribute.findGenFeature();
+ nullAsError := self.nullAsError;
}
query GMFMAP::Severity::severity() : GMFGEN::GenSeverity {

Back to the top