diff options
author | aradermache | 2013-05-02 09:50:51 +0000 |
---|---|---|
committer | aradermache | 2013-05-02 09:50:51 +0000 |
commit | 0d087549a375c1aa8e3f9fcc3e2d05c1363daeec (patch) | |
tree | 7ffca6df7d085a77ef5c327621dae3423ec76f7d /extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl | |
parent | e6db544a6cf05a3a6568f93c786e2bce183a72cf (diff) | |
download | org.eclipse.papyrus-0d087549a375c1aa8e3f9fcc3e2d05c1363daeec.tar.gz org.eclipse.papyrus-0d087549a375c1aa8e3f9fcc3e2d05c1363daeec.tar.xz org.eclipse.papyrus-0d087549a375c1aa8e3f9fcc3e2d05c1363daeec.zip |
Naming convention: prefix source packages in FCM and CPP profile with org.eclipse.papyrus.
Diffstat (limited to 'extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl')
-rw-r--r-- | extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl index 9634496107a..6086e5d1951 100644 --- a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl +++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassIncludeDeclaration.mtl @@ -1,4 +1,4 @@ -[module CppClassIncludeDeclaration('http://www.eclipse.org/uml2/4.0.0/UML', 'http://papyrus/C_CppProfile/1')/] +[module CppClassIncludeDeclaration('http://www.eclipse.org/uml2/4.0.0/UML', 'http://www.eclipse.org/papyrus/C_Cpp/1')/] [import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/] [import org::eclipse::papyrus::cpp::codegen::preferences::CppCodeGenUtils/] @@ -8,12 +8,14 @@ if (hasStereotype(Template)) then getApplication(Template).oclAsType(Template).declaration else if (hasStereotype(ExternClass)) then getApplication(ExternClass).oclAsType(ExternClass).name - else ne.name + '.' + getHeaderSuffix() + else + -- standard case (no stereotypes are applied) + getNearestPackage().getFullPath() + '/' + ne.name + '.' + getHeaderSuffix() endif endif /] [comment TODO: original code did not use nearest package, if stereotype CppRoot was applied/] [template public CppClassIncludeDeclaration(ne : NamedElement)] -#include <[getNearestPackage().getFullPath()/]/[ne.includeName()/]>
+#include <[ne.includeName()/]> [/template] |