aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto b/plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto
index 001bde02d..2a522884f 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates/MetaModel.qvto
@@ -12,6 +12,7 @@
import xpt.StringOperations;
import xpt.GenModelUtils;
import gmf.CodeGenerationUtils;
+import gmf.GenPackageUtils;
modeltype genmodel uses "http://www.eclipse.org/emf/2002/GenModel";
modeltype ecore uses "http://www.eclipse.org/emf/2002/Ecore";
@@ -30,14 +31,14 @@ library MetaModel;
-- GenPackageImpl#getQualifiedPackageInterfaceName()
--
helper getQualifiedPackageInterfaceName(gp : genmodel::GenPackage) : String {
- return (if gp.genModel.suppressEMFMetaData then getQualifiedPackageClassName(gp) else getReflectionPackageName(gp) + '.' + getPackageInterfaceName(gp) endif)
+ return getGenPackageQualifiedPackageInterfaceName(gp)
}
--
-- GenPackageImpl#getQualifiedFactoryInterfaceName()
--
helper getQualifiedFactoryInterfaceName(gp : genmodel::GenPackage) : String {
- return getReflectionPackageName(gp) + '.' + getPrefixedName(gp, 'Factory')
+ return getGenPackageQualifiedFactoryInterfaceName(gp)
}
--
@@ -66,7 +67,7 @@ helper getItemProviderAdapterFactoryClassName(gp : genmodel::GenPackage) : Strin
-- GenClass#getQualifiedInterfaceName
--
helper getQualifiedInterfaceName(gc : genmodel::GenClass) : String {
- return (if null <> gc.ecoreClass.instanceClassName then gc.ecoreClass.instanceClassName.xpandReplaceAll('\\$', '\\.') else getInterfacePackageName(gc.genPackage) + '.' + gc.ecoreClass.name endif)
+ return getGenPackageQualifiedInterfaceName(gc)
}
--