Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates-dynmodel.migrated/Facility.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates-dynmodel.migrated/Facility.qvto18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates-dynmodel.migrated/Facility.qvto b/plugins/org.eclipse.gmf.codegen/templates-dynmodel.migrated/Facility.qvto
new file mode 100644
index 000000000..cca3ed16f
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates-dynmodel.migrated/Facility.qvto
@@ -0,0 +1,18 @@
+import xpt.GlobalVarOperations;
+
+modeltype genModel uses "http://www.eclipse.org/emf/2002/GenModel";
+modeltype genModel_1 uses "http://www.eclipse.org/gmf/2008/GenModel";
+
+library Facility;
+
+helper getNameToken(gp : genModel::GenPackage) : String {
+ return gp.prefix
+}
+
+helper fieldName(gp : genModel::GenPackage) : String {
+ return 'instance' + getNameToken(gp)
+}
+
+helper getDMA() : genModel_1::DynamicModelAccess {
+ return xpandGetObjectGlobalVar('DynamicModelAccess').oclAsType(genModel_1::DynamicModelAccess)
+}

Back to the top