Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/cpp-codegen/org.eclipse.papyrus.cpp.codegen/templates/doc/CppElementDoc.doc.jet')
-rw-r--r--extraplugins/cpp-codegen/org.eclipse.papyrus.cpp.codegen/templates/doc/CppElementDoc.doc.jet27
1 files changed, 27 insertions, 0 deletions
diff --git a/extraplugins/cpp-codegen/org.eclipse.papyrus.cpp.codegen/templates/doc/CppElementDoc.doc.jet b/extraplugins/cpp-codegen/org.eclipse.papyrus.cpp.codegen/templates/doc/CppElementDoc.doc.jet
new file mode 100644
index 00000000000..2a0e5b591c7
--- /dev/null
+++ b/extraplugins/cpp-codegen/org.eclipse.papyrus.cpp.codegen/templates/doc/CppElementDoc.doc.jet
@@ -0,0 +1,27 @@
+<%@ jet package = "org.eclipse.papyrus.cpp.codegen.jet.doc"
+ skeleton = "../generator.skeleton"
+ imports = "org.eclipse.uml2.uml.Element org.eclipse.papyrus.cpp.codegen.utils.GenUtils"
+ class = "CppElementDoc"
+ %>
+<%
+//////////////////////////////////////////////////////////////////////////////////////////
+// Java preparation
+//////////////////////////////////////////////////////////////////////////////////////////
+
+ // Retrieve the element
+ Element currentElt = (Element) argument;
+ String eltDoc = "";
+
+
+ // Doc for the element
+ eltDoc = GenUtils.getComments(currentElt);
+ eltDoc = eltDoc.replaceAll(NL, NL+" * ");
+
+
+
+//////////////////////////////////////////////////////////////////////////////////////////
+// The following part contains the template
+//////////////////////////////////////////////////////////////////////////////////////////%>
+/**
+ * <%= eltDoc %>
+ */ \ No newline at end of file

Back to the top