Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-03-22 11:07:06 +0000
committerHenrik Rentz-Reichert2013-03-22 11:07:06 +0000
commitd7437235dcd963311e5ec3b4a24f00f0ddf5c29a (patch)
tree15904bab986e996ad8d2712c6d7b883f0d678f9c
parentfb013f3fa54370f5c66ece277fa2e1702c47bbb9 (diff)
downloadorg.eclipse.etrice-d7437235dcd963311e5ec3b4a24f00f0ddf5c29a.tar.gz
org.eclipse.etrice-d7437235dcd963311e5ec3b4a24f00f0ddf5c29a.tar.xz
org.eclipse.etrice-d7437235dcd963311e5ec3b4a24f00f0ddf5c29a.zip
[core.etphys] bug 398876: add documentation to Xtext generated meta models
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398876
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore204
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Documentation.java14
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Import.java31
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeClass.java53
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeRef.java29
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalModel.java47
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalSystem.java29
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalThread.java61
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/RuntimeClass.java29
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.xtend232
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/xtend-gen/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.java242
11 files changed, 808 insertions, 163 deletions
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore
index 3698418f6..23c890e4a 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore
@@ -3,47 +3,158 @@
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="eTPhys" nsURI="http://www.eclipse.org/etrice/core/etphys/ETPhys"
nsPrefix="eTPhys">
<eClassifiers xsi:type="ecore:EClass" name="PhysicalModel">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The root object for the physical model. It gives access to the systems, node classes&#xD;&#xA;and runtimes defined.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The model name is a dot separated fully qualified name and is&#xD;&#xA;used to provide a name space.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1"
- eType="#//Import" containment="true"/>
+ eType="#//Import" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A list of all imported models.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="systems" upperBound="-1"
- eType="#//PhysicalSystem" containment="true"/>
+ eType="#//PhysicalSystem" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A list of all defined physical systems.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeClasses" upperBound="-1"
- eType="#//NodeClass" containment="true"/>
+ eType="#//NodeClass" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A list of all defined node classes.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="runtimeClasses" upperBound="-1"
- eType="#//RuntimeClass" containment="true"/>
+ eType="#//RuntimeClass" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A list of all defined runtime classes.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PhysicalSystem">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This model object represents a complete physical system.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The name of the physical system by which it is referred to in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="docu" eType="#//Documentation"
- containment="true"/>
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is an optional documentation.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeRefs" upperBound="-1"
- eType="#//NodeRef" containment="true"/>
+ eType="#//NodeRef" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A list of referenced nodes.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NodeRef">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//NodeClass"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This stands for a node instance in a specific role.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The name of the reference by which it is referred to in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//NodeClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The node class of this reference.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="docu" eType="#//Documentation"
- containment="true"/>
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is an optional documentation.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NodeClass">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This defines a node class.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The name of the node class by which it is referred to in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="docu" eType="#//Documentation"
- containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="runtime" eType="#//RuntimeClass"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="priomin" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="priomax" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is an optional documentation.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="runtime" eType="#//RuntimeClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the associated runtime class.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="priomin" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the minimal thread priority for this node type.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="priomax" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the maximum thread priority for this node type.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="threads" upperBound="-1"
- eType="#//PhysicalThread" containment="true"/>
+ eType="#//PhysicalThread" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is a list of all threads defined for this node.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PhysicalThread">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="default" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="execmode" eType="#//ExecMode"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="prio" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="stacksize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="msgblocksize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="msgpoolsize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This defines a physical thread running in a node.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="default" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="If this is {@code true} then this is the default thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The name of the thread by which it is referred to in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="execmode" eType="#//ExecMode">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the execution mode of the thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="prio" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the priority of the thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="stacksize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the stacksize of the thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="msgblocksize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the msgblocksize of the thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="msgpoolsize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the msgpoolsize of the thread.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ExecMode">
<eLiterals name="POLLED" literal="polled"/>
@@ -51,21 +162,54 @@
<eLiterals name="MIXED" value="2" literal="mixed"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RuntimeClass">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This defines a runtime class.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The name of the runtime class by which it is referred to in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="docu" eType="#//Documentation"
- containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="threadModel" eType="#//ThreadModel"/>
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is an optional documentation.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="threadModel" eType="#//ThreadModel">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This distinguishes single and multi threaded.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ThreadModel">
<eLiterals name="SINGLE_THREADED" literal="singleThreaded"/>
<eLiterals name="MULTI_THREADED" value="1" literal="multiThreaded"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Documentation">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A piece of documentation that can be optionally attached at&#xD;&#xA;certain places in the model.&#xD;&#xA;"/>
+ </eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="text" unique="false" upperBound="-1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This is the documentation's contents.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Import">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="importedNamespace" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="importURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The import declares an imported model (given as a URI) and&#xD;&#xA;an optional imported namespace.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="importedNamespace" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The imported name space has to be a dot separated qualified name followed by .*.&#xD;&#xA;Example: my.namespace.*&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="importURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The import URI can be a relative or absolute file system path.&#xD;&#xA;It may contain environment variables in ${} which will be expanded.&#xD;&#xA;&lt;p>&#xD;&#xA;Examples:&#xD;&#xA;&lt;ul>&#xD;&#xA; &lt;li>import model &quot;AnotherModel.room&quot;&lt;/li>&#xD;&#xA; &lt;li>import my.namespace.* from &quot;AnotherModel.room&quot;&lt;/li>&#xD;&#xA; &lt;li>import my.namespace.* from &quot;../../AnotherProject/models/AnotherModel.room&quot;&lt;/li>&#xD;&#xA; &lt;li>import my.namespace.* from &quot;/${ROOM_MODELS}/SomeModel.room&quot;&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;&lt;/p>&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Documentation.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Documentation.java
index 6c05d34a4..236b8c4c3 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Documentation.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Documentation.java
@@ -11,6 +11,12 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Documentation</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * A piece of documentation that can be optionally attached at
+ * certain places in the model.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -28,11 +34,11 @@ public interface Documentation extends EObject
* Returns the value of the '<em><b>Text</b></em>' attribute list.
* The list contents are of type {@link java.lang.String}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Text</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the documentation's contents.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Text</em>' attribute list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getDocumentation_Text()
* @model unique="false"
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Import.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Import.java
index 2f3dec56e..57543cc4f 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Import.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/Import.java
@@ -9,6 +9,12 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Import</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * The import declares an imported model (given as a URI) and
+ * an optional imported namespace.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -26,11 +32,12 @@ public interface Import extends EObject
/**
* Returns the value of the '<em><b>Imported Namespace</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Imported Namespace</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The imported name space has to be a dot separated qualified name followed by .*.
+ * Example: my.namespace.*
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Imported Namespace</em>' attribute.
* @see #setImportedNamespace(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getImport_ImportedNamespace()
@@ -52,11 +59,21 @@ public interface Import extends EObject
/**
* Returns the value of the '<em><b>Import URI</b></em>' attribute.
* <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The import URI can be a relative or absolute file system path.
+ * It may contain environment variables in ${} which will be expanded.
* <p>
- * If the meaning of the '<em>Import URI</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * Examples:
+ * <ul>
+ * <li>import model "AnotherModel.room"</li>
+ * <li>import my.namespace.* from "AnotherModel.room"</li>
+ * <li>import my.namespace.* from "../../AnotherProject/models/AnotherModel.room"</li>
+ * <li>import my.namespace.* from "/${ROOM_MODELS}/SomeModel.room"</li>
+ * </ul>
* </p>
- * <!-- end-user-doc -->
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Import URI</em>' attribute.
* @see #setImportURI(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getImport_ImportURI()
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeClass.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeClass.java
index 2bea37699..6083a2c10 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeClass.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeClass.java
@@ -11,6 +11,11 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Node Class</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This defines a node class.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -32,11 +37,11 @@ public interface NodeClass extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The name of the node class by which it is referred to in the model.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Name()
@@ -58,11 +63,11 @@ public interface NodeClass extends EObject
/**
* Returns the value of the '<em><b>Docu</b></em>' containment reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Docu</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is an optional documentation.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Docu</em>' containment reference.
* @see #setDocu(Documentation)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Docu()
@@ -84,11 +89,11 @@ public interface NodeClass extends EObject
/**
* Returns the value of the '<em><b>Runtime</b></em>' reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Runtime</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the associated runtime class.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Runtime</em>' reference.
* @see #setRuntime(RuntimeClass)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Runtime()
@@ -110,11 +115,11 @@ public interface NodeClass extends EObject
/**
* Returns the value of the '<em><b>Priomin</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Priomin</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the minimal thread priority for this node type.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Priomin</em>' attribute.
* @see #setPriomin(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Priomin()
@@ -136,11 +141,11 @@ public interface NodeClass extends EObject
/**
* Returns the value of the '<em><b>Priomax</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Priomax</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the maximum thread priority for this node type.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Priomax</em>' attribute.
* @see #setPriomax(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Priomax()
@@ -163,11 +168,11 @@ public interface NodeClass extends EObject
* Returns the value of the '<em><b>Threads</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.PhysicalThread}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Threads</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is a list of all threads defined for this node.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Threads</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeClass_Threads()
* @model containment="true"
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeRef.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeRef.java
index c7370c5c2..4ea879399 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeRef.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/NodeRef.java
@@ -9,6 +9,11 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Node Ref</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This stands for a node instance in a specific role.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -27,11 +32,11 @@ public interface NodeRef extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The name of the reference by which it is referred to in the model.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeRef_Name()
@@ -53,11 +58,11 @@ public interface NodeRef extends EObject
/**
* Returns the value of the '<em><b>Type</b></em>' reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The node class of this reference.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Type</em>' reference.
* @see #setType(NodeClass)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeRef_Type()
@@ -79,11 +84,11 @@ public interface NodeRef extends EObject
/**
* Returns the value of the '<em><b>Docu</b></em>' containment reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Docu</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is an optional documentation.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Docu</em>' containment reference.
* @see #setDocu(Documentation)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getNodeRef_Docu()
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalModel.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalModel.java
index b1c5011c2..7cd1b947e 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalModel.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalModel.java
@@ -11,6 +11,12 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Physical Model</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * The root object for the physical model. It gives access to the systems, node classes
+ * and runtimes defined.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -31,11 +37,12 @@ public interface PhysicalModel extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The model name is a dot separated fully qualified name and is
+ * used to provide a name space.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalModel_Name()
@@ -58,11 +65,11 @@ public interface PhysicalModel extends EObject
* Returns the value of the '<em><b>Imports</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.Import}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Imports</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A list of all imported models.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Imports</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalModel_Imports()
* @model containment="true"
@@ -74,11 +81,11 @@ public interface PhysicalModel extends EObject
* Returns the value of the '<em><b>Systems</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.PhysicalSystem}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Systems</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A list of all defined physical systems.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Systems</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalModel_Systems()
* @model containment="true"
@@ -90,11 +97,11 @@ public interface PhysicalModel extends EObject
* Returns the value of the '<em><b>Node Classes</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.NodeClass}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Node Classes</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A list of all defined node classes.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Node Classes</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalModel_NodeClasses()
* @model containment="true"
@@ -106,11 +113,11 @@ public interface PhysicalModel extends EObject
* Returns the value of the '<em><b>Runtime Classes</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.RuntimeClass}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Runtime Classes</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A list of all defined runtime classes.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Runtime Classes</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalModel_RuntimeClasses()
* @model containment="true"
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalSystem.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalSystem.java
index edaeb7b94..1874043cd 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalSystem.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalSystem.java
@@ -11,6 +11,11 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Physical System</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This model object represents a complete physical system.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -29,11 +34,11 @@ public interface PhysicalSystem extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The name of the physical system by which it is referred to in the model.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalSystem_Name()
@@ -55,11 +60,11 @@ public interface PhysicalSystem extends EObject
/**
* Returns the value of the '<em><b>Docu</b></em>' containment reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Docu</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is an optional documentation.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Docu</em>' containment reference.
* @see #setDocu(Documentation)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalSystem_Docu()
@@ -82,11 +87,11 @@ public interface PhysicalSystem extends EObject
* Returns the value of the '<em><b>Node Refs</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.etrice.core.etphys.eTPhys.NodeRef}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Node Refs</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A list of referenced nodes.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Node Refs</em>' containment reference list.
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalSystem_NodeRefs()
* @model containment="true"
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalThread.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalThread.java
index 437b2ee7a..11a14c1b5 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalThread.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/PhysicalThread.java
@@ -9,6 +9,11 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Physical Thread</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This defines a physical thread running in a node.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -31,11 +36,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Default</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * If this is {@code true} then this is the default thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Default</em>' attribute.
* @see #setDefault(boolean)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Default()
@@ -57,11 +62,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The name of the thread by which it is referred to in the model.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Name()
@@ -84,11 +89,11 @@ public interface PhysicalThread extends EObject
* Returns the value of the '<em><b>Execmode</b></em>' attribute.
* The literals are from the enumeration {@link org.eclipse.etrice.core.etphys.eTPhys.ExecMode}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Execmode</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the execution mode of the thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Execmode</em>' attribute.
* @see org.eclipse.etrice.core.etphys.eTPhys.ExecMode
* @see #setExecmode(ExecMode)
@@ -112,11 +117,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Prio</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Prio</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the priority of the thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Prio</em>' attribute.
* @see #setPrio(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Prio()
@@ -138,11 +143,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Stacksize</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Stacksize</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the stacksize of the thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Stacksize</em>' attribute.
* @see #setStacksize(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Stacksize()
@@ -164,11 +169,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Msgblocksize</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Msgblocksize</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the msgblocksize of the thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Msgblocksize</em>' attribute.
* @see #setMsgblocksize(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Msgblocksize()
@@ -190,11 +195,11 @@ public interface PhysicalThread extends EObject
/**
* Returns the value of the '<em><b>Msgpoolsize</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Msgpoolsize</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is the msgpoolsize of the thread.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Msgpoolsize</em>' attribute.
* @see #setMsgpoolsize(int)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getPhysicalThread_Msgpoolsize()
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/RuntimeClass.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/RuntimeClass.java
index 5e2156658..812f38d71 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/RuntimeClass.java
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/RuntimeClass.java
@@ -9,6 +9,11 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Runtime Class</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This defines a runtime class.
+ *
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
@@ -27,11 +32,11 @@ public interface RuntimeClass extends EObject
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The name of the runtime class by which it is referred to in the model.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getRuntimeClass_Name()
@@ -53,11 +58,11 @@ public interface RuntimeClass extends EObject
/**
* Returns the value of the '<em><b>Docu</b></em>' containment reference.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Docu</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This is an optional documentation.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Docu</em>' containment reference.
* @see #setDocu(Documentation)
* @see org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage#getRuntimeClass_Docu()
@@ -80,11 +85,11 @@ public interface RuntimeClass extends EObject
* Returns the value of the '<em><b>Thread Model</b></em>' attribute.
* The literals are from the enumeration {@link org.eclipse.etrice.core.etphys.eTPhys.ThreadModel}.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Thread Model</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * This distinguishes single and multi threaded.
+ *
+ * <!-- end-model-doc -->
* @return the value of the '<em>Thread Model</em>' attribute.
* @see org.eclipse.etrice.core.etphys.eTPhys.ThreadModel
* @see #setThreadModel(ThreadModel)
diff --git a/plugins/org.eclipse.etrice.core.etphys/src/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.xtend b/plugins/org.eclipse.etrice.core.etphys/src/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.xtend
index fa17aea86..0c978368d 100644
--- a/plugins/org.eclipse.etrice.core.etphys/src/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.xtend
+++ b/plugins/org.eclipse.etrice.core.etphys/src/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.xtend
@@ -20,18 +20,226 @@ import static extension org.eclipse.etrice.core.postprocessing.PostprocessingHel
class DocuPostprocessor {
def process(GeneratedMetamodel metamodel) {
-// var pckg = metamodel.EPackage
-//
-// var mdl = pckg.getClass("PhysicalModel")
-// mdl.setDocumentation(
-// '''
-// <br>
-// ''')
-//
-// mdl.getAttribute("name").setDocumentation(
-// '''
-// <br>
-// ''')
+ val pckg = metamodel.EPackage
+
+ //------------------------------------------------------------------
+ var cls = pckg.getClass("PhysicalModel")
+ cls.setDocumentation(
+ '''
+ The root object for the physical model. It gives access to the systems, node classes
+ and runtimes defined.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The model name is a dot separated fully qualified name and is
+ used to provide a name space.
+ ''')
+
+ cls.getReference("imports").setDocumentation(
+ '''
+ A list of all imported models.
+ ''')
+
+ cls.getReference("systems").setDocumentation(
+ '''
+ A list of all defined physical systems.
+ ''')
+
+ cls.getReference("nodeClasses").setDocumentation(
+ '''
+ A list of all defined node classes.
+ ''')
+
+ cls.getReference("runtimeClasses").setDocumentation(
+ '''
+ A list of all defined runtime classes.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("PhysicalSystem")
+ cls.setDocumentation(
+ '''
+ This model object represents a complete physical system.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The name of the physical system by which it is referred to in the model.
+ ''')
+
+ cls.getReference("nodeRefs").setDocumentation(
+ '''
+ A list of referenced nodes.
+ ''')
+
+ cls.getReference("docu").setDocumentation(
+ '''
+ This is an optional documentation.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("NodeRef")
+ cls.setDocumentation(
+ '''
+ This stands for a node instance in a specific role.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The name of the reference by which it is referred to in the model.
+ ''')
+
+ cls.getReference("type").setDocumentation(
+ '''
+ The node class of this reference.
+ ''')
+
+ cls.getReference("docu").setDocumentation(
+ '''
+ This is an optional documentation.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("NodeClass")
+ cls.setDocumentation(
+ '''
+ This defines a node class.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The name of the node class by which it is referred to in the model.
+ ''')
+
+ cls.getReference("docu").setDocumentation(
+ '''
+ This is an optional documentation.
+ ''')
+
+ cls.getReference("runtime").setDocumentation(
+ '''
+ This is the associated runtime class.
+ ''')
+
+ cls.getAttribute("priomin").setDocumentation(
+ '''
+ This is the minimal thread priority for this node type.
+ ''')
+
+ cls.getAttribute("priomax").setDocumentation(
+ '''
+ This is the maximum thread priority for this node type.
+ ''')
+
+ cls.getReference("threads").setDocumentation(
+ '''
+ This is a list of all threads defined for this node.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("PhysicalThread")
+ cls.setDocumentation(
+ '''
+ This defines a physical thread running in a node.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The name of the thread by which it is referred to in the model.
+ ''')
+
+ cls.getAttribute("default").setDocumentation(
+ '''
+ If this is {@code true} then this is the default thread.
+ ''')
+
+ cls.getAttribute("execmode").setDocumentation(
+ '''
+ This is the execution mode of the thread.
+ ''')
+
+ cls.getAttribute("prio").setDocumentation(
+ '''
+ This is the priority of the thread.
+ ''')
+
+ cls.getAttribute("stacksize").setDocumentation(
+ '''
+ This is the stacksize of the thread.
+ ''')
+
+ cls.getAttribute("msgblocksize").setDocumentation(
+ '''
+ This is the msgblocksize of the thread.
+ ''')
+
+ cls.getAttribute("msgpoolsize").setDocumentation(
+ '''
+ This is the msgpoolsize of the thread.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("RuntimeClass")
+ cls.setDocumentation(
+ '''
+ This defines a runtime class.
+ ''')
+
+ cls.getAttribute("name").setDocumentation(
+ '''
+ The name of the runtime class by which it is referred to in the model.
+ ''')
+
+ cls.getReference("docu").setDocumentation(
+ '''
+ This is an optional documentation.
+ ''')
+
+ cls.getAttribute("threadModel").setDocumentation(
+ '''
+ This distinguishes single and multi threaded.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("Documentation")
+ cls.setDocumentation('''
+ A piece of documentation that can be optionally attached at
+ certain places in the model.
+ ''')
+
+ cls.getAttribute("text").setDocumentation(
+ '''
+ This is the documentation's contents.
+ ''')
+
+ //------------------------------------------------------------------
+ cls = pckg.getClass("Import")
+ cls.setDocumentation('''
+ The import declares an imported model (given as a URI) and
+ an optional imported namespace.
+ ''')
+
+ cls.getAttribute("importedNamespace").setDocumentation(
+ '''
+ The imported name space has to be a dot separated qualified name followed by .*.
+ Example: my.namespace.*
+ ''')
+
+ cls.getAttribute("importURI").setDocumentation(
+ '''
+ The import URI can be a relative or absolute file system path.
+ It may contain environment variables in ${} which will be expanded.
+ <p>
+ Examples:
+ <ul>
+ <li>import model "AnotherModel.room"</li>
+ <li>import my.namespace.* from "AnotherModel.room"</li>
+ <li>import my.namespace.* from "../../AnotherProject/models/AnotherModel.room"</li>
+ <li>import my.namespace.* from "/${ROOM_MODELS}/SomeModel.room"</li>
+ </ul>
+ </p>
+ ''')
}
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.etphys/xtend-gen/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.java b/plugins/org.eclipse.etrice.core.etphys/xtend-gen/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.java
index 7430d1dab..6665284dd 100644
--- a/plugins/org.eclipse.etrice.core.etphys/xtend-gen/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.java
+++ b/plugins/org.eclipse.etrice.core.etphys/xtend-gen/org/eclipse/etrice/core/etphys/postprocessing/DocuPostprocessor.java
@@ -1,10 +1,248 @@
package org.eclipse.etrice.core.etphys.postprocessing;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.etrice.core.postprocessing.PostprocessingHelpers;
+import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.GeneratedMetamodel;
@SuppressWarnings("all")
public class DocuPostprocessor {
- public Object process(final GeneratedMetamodel metamodel) {
- return null;
+ public void process(final GeneratedMetamodel metamodel) {
+ final EPackage pckg = metamodel.getEPackage();
+ EClass cls = PostprocessingHelpers.getClass(pckg, "PhysicalModel");
+ StringConcatenation _builder = new StringConcatenation();
+ _builder.append("The root object for the physical model. It gives access to the systems, node classes");
+ _builder.newLine();
+ _builder.append("and runtimes defined.");
+ _builder.newLine();
+ EcoreUtil.setDocumentation(cls, _builder.toString());
+ EAttribute _attribute = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_1 = new StringConcatenation();
+ _builder_1.append("The model name is a dot separated fully qualified name and is");
+ _builder_1.newLine();
+ _builder_1.append("used to provide a name space.");
+ _builder_1.newLine();
+ EcoreUtil.setDocumentation(_attribute, _builder_1.toString());
+ EReference _reference = PostprocessingHelpers.getReference(cls, "imports");
+ StringConcatenation _builder_2 = new StringConcatenation();
+ _builder_2.append("A list of all imported models.");
+ _builder_2.newLine();
+ EcoreUtil.setDocumentation(_reference, _builder_2.toString());
+ EReference _reference_1 = PostprocessingHelpers.getReference(cls, "systems");
+ StringConcatenation _builder_3 = new StringConcatenation();
+ _builder_3.append("A list of all defined physical systems.");
+ _builder_3.newLine();
+ EcoreUtil.setDocumentation(_reference_1, _builder_3.toString());
+ EReference _reference_2 = PostprocessingHelpers.getReference(cls, "nodeClasses");
+ StringConcatenation _builder_4 = new StringConcatenation();
+ _builder_4.append("A list of all defined node classes.");
+ _builder_4.newLine();
+ EcoreUtil.setDocumentation(_reference_2, _builder_4.toString());
+ EReference _reference_3 = PostprocessingHelpers.getReference(cls, "runtimeClasses");
+ StringConcatenation _builder_5 = new StringConcatenation();
+ _builder_5.append("A list of all defined runtime classes.");
+ _builder_5.newLine();
+ EcoreUtil.setDocumentation(_reference_3, _builder_5.toString());
+ EClass _class = PostprocessingHelpers.getClass(pckg, "PhysicalSystem");
+ cls = _class;
+ StringConcatenation _builder_6 = new StringConcatenation();
+ _builder_6.append("This model object represents a complete physical system.");
+ _builder_6.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_6.toString());
+ EAttribute _attribute_1 = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_7 = new StringConcatenation();
+ _builder_7.append("The name of the physical system by which it is referred to in the model.");
+ _builder_7.newLine();
+ EcoreUtil.setDocumentation(_attribute_1, _builder_7.toString());
+ EReference _reference_4 = PostprocessingHelpers.getReference(cls, "nodeRefs");
+ StringConcatenation _builder_8 = new StringConcatenation();
+ _builder_8.append("A list of referenced nodes.");
+ _builder_8.newLine();
+ EcoreUtil.setDocumentation(_reference_4, _builder_8.toString());
+ EReference _reference_5 = PostprocessingHelpers.getReference(cls, "docu");
+ StringConcatenation _builder_9 = new StringConcatenation();
+ _builder_9.append("This is an optional documentation.");
+ _builder_9.newLine();
+ EcoreUtil.setDocumentation(_reference_5, _builder_9.toString());
+ EClass _class_1 = PostprocessingHelpers.getClass(pckg, "NodeRef");
+ cls = _class_1;
+ StringConcatenation _builder_10 = new StringConcatenation();
+ _builder_10.append("This stands for a node instance in a specific role.");
+ _builder_10.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_10.toString());
+ EAttribute _attribute_2 = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_11 = new StringConcatenation();
+ _builder_11.append("The name of the reference by which it is referred to in the model.");
+ _builder_11.newLine();
+ EcoreUtil.setDocumentation(_attribute_2, _builder_11.toString());
+ EReference _reference_6 = PostprocessingHelpers.getReference(cls, "type");
+ StringConcatenation _builder_12 = new StringConcatenation();
+ _builder_12.append("The node class of this reference.");
+ _builder_12.newLine();
+ EcoreUtil.setDocumentation(_reference_6, _builder_12.toString());
+ EReference _reference_7 = PostprocessingHelpers.getReference(cls, "docu");
+ StringConcatenation _builder_13 = new StringConcatenation();
+ _builder_13.append("This is an optional documentation.");
+ _builder_13.newLine();
+ EcoreUtil.setDocumentation(_reference_7, _builder_13.toString());
+ EClass _class_2 = PostprocessingHelpers.getClass(pckg, "NodeClass");
+ cls = _class_2;
+ StringConcatenation _builder_14 = new StringConcatenation();
+ _builder_14.append("This defines a node class.");
+ _builder_14.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_14.toString());
+ EAttribute _attribute_3 = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_15 = new StringConcatenation();
+ _builder_15.append("The name of the node class by which it is referred to in the model.");
+ _builder_15.newLine();
+ EcoreUtil.setDocumentation(_attribute_3, _builder_15.toString());
+ EReference _reference_8 = PostprocessingHelpers.getReference(cls, "docu");
+ StringConcatenation _builder_16 = new StringConcatenation();
+ _builder_16.append("This is an optional documentation.");
+ _builder_16.newLine();
+ EcoreUtil.setDocumentation(_reference_8, _builder_16.toString());
+ EReference _reference_9 = PostprocessingHelpers.getReference(cls, "runtime");
+ StringConcatenation _builder_17 = new StringConcatenation();
+ _builder_17.append("This is the associated runtime class.");
+ _builder_17.newLine();
+ EcoreUtil.setDocumentation(_reference_9, _builder_17.toString());
+ EAttribute _attribute_4 = PostprocessingHelpers.getAttribute(cls, "priomin");
+ StringConcatenation _builder_18 = new StringConcatenation();
+ _builder_18.append("This is the minimal thread priority for this node type.");
+ _builder_18.newLine();
+ EcoreUtil.setDocumentation(_attribute_4, _builder_18.toString());
+ EAttribute _attribute_5 = PostprocessingHelpers.getAttribute(cls, "priomax");
+ StringConcatenation _builder_19 = new StringConcatenation();
+ _builder_19.append("This is the maximum thread priority for this node type.");
+ _builder_19.newLine();
+ EcoreUtil.setDocumentation(_attribute_5, _builder_19.toString());
+ EReference _reference_10 = PostprocessingHelpers.getReference(cls, "threads");
+ StringConcatenation _builder_20 = new StringConcatenation();
+ _builder_20.append("This is a list of all threads defined for this node.");
+ _builder_20.newLine();
+ EcoreUtil.setDocumentation(_reference_10, _builder_20.toString());
+ EClass _class_3 = PostprocessingHelpers.getClass(pckg, "PhysicalThread");
+ cls = _class_3;
+ StringConcatenation _builder_21 = new StringConcatenation();
+ _builder_21.append("This defines a physical thread running in a node.");
+ _builder_21.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_21.toString());
+ EAttribute _attribute_6 = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_22 = new StringConcatenation();
+ _builder_22.append("The name of the thread by which it is referred to in the model.");
+ _builder_22.newLine();
+ EcoreUtil.setDocumentation(_attribute_6, _builder_22.toString());
+ EAttribute _attribute_7 = PostprocessingHelpers.getAttribute(cls, "default");
+ StringConcatenation _builder_23 = new StringConcatenation();
+ _builder_23.append("If this is {@code true} then this is the default thread.");
+ _builder_23.newLine();
+ EcoreUtil.setDocumentation(_attribute_7, _builder_23.toString());
+ EAttribute _attribute_8 = PostprocessingHelpers.getAttribute(cls, "execmode");
+ StringConcatenation _builder_24 = new StringConcatenation();
+ _builder_24.append("This is the execution mode of the thread.");
+ _builder_24.newLine();
+ EcoreUtil.setDocumentation(_attribute_8, _builder_24.toString());
+ EAttribute _attribute_9 = PostprocessingHelpers.getAttribute(cls, "prio");
+ StringConcatenation _builder_25 = new StringConcatenation();
+ _builder_25.append("This is the priority of the thread.");
+ _builder_25.newLine();
+ EcoreUtil.setDocumentation(_attribute_9, _builder_25.toString());
+ EAttribute _attribute_10 = PostprocessingHelpers.getAttribute(cls, "stacksize");
+ StringConcatenation _builder_26 = new StringConcatenation();
+ _builder_26.append("This is the stacksize of the thread.");
+ _builder_26.newLine();
+ EcoreUtil.setDocumentation(_attribute_10, _builder_26.toString());
+ EAttribute _attribute_11 = PostprocessingHelpers.getAttribute(cls, "msgblocksize");
+ StringConcatenation _builder_27 = new StringConcatenation();
+ _builder_27.append("This is the msgblocksize of the thread.");
+ _builder_27.newLine();
+ EcoreUtil.setDocumentation(_attribute_11, _builder_27.toString());
+ EAttribute _attribute_12 = PostprocessingHelpers.getAttribute(cls, "msgpoolsize");
+ StringConcatenation _builder_28 = new StringConcatenation();
+ _builder_28.append("This is the msgpoolsize of the thread.");
+ _builder_28.newLine();
+ EcoreUtil.setDocumentation(_attribute_12, _builder_28.toString());
+ EClass _class_4 = PostprocessingHelpers.getClass(pckg, "RuntimeClass");
+ cls = _class_4;
+ StringConcatenation _builder_29 = new StringConcatenation();
+ _builder_29.append("This defines a runtime class.");
+ _builder_29.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_29.toString());
+ EAttribute _attribute_13 = PostprocessingHelpers.getAttribute(cls, "name");
+ StringConcatenation _builder_30 = new StringConcatenation();
+ _builder_30.append("The name of the runtime class by which it is referred to in the model.");
+ _builder_30.newLine();
+ EcoreUtil.setDocumentation(_attribute_13, _builder_30.toString());
+ EReference _reference_11 = PostprocessingHelpers.getReference(cls, "docu");
+ StringConcatenation _builder_31 = new StringConcatenation();
+ _builder_31.append("This is an optional documentation.");
+ _builder_31.newLine();
+ EcoreUtil.setDocumentation(_reference_11, _builder_31.toString());
+ EAttribute _attribute_14 = PostprocessingHelpers.getAttribute(cls, "threadModel");
+ StringConcatenation _builder_32 = new StringConcatenation();
+ _builder_32.append("This distinguishes single and multi threaded.");
+ _builder_32.newLine();
+ EcoreUtil.setDocumentation(_attribute_14, _builder_32.toString());
+ EClass _class_5 = PostprocessingHelpers.getClass(pckg, "Documentation");
+ cls = _class_5;
+ StringConcatenation _builder_33 = new StringConcatenation();
+ _builder_33.append("A piece of documentation that can be optionally attached at");
+ _builder_33.newLine();
+ _builder_33.append("certain places in the model.");
+ _builder_33.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_33.toString());
+ EAttribute _attribute_15 = PostprocessingHelpers.getAttribute(cls, "text");
+ StringConcatenation _builder_34 = new StringConcatenation();
+ _builder_34.append("This is the documentation\'s contents.");
+ _builder_34.newLine();
+ EcoreUtil.setDocumentation(_attribute_15, _builder_34.toString());
+ EClass _class_6 = PostprocessingHelpers.getClass(pckg, "Import");
+ cls = _class_6;
+ StringConcatenation _builder_35 = new StringConcatenation();
+ _builder_35.append("The import declares an imported model (given as a URI) and");
+ _builder_35.newLine();
+ _builder_35.append("an optional imported namespace.");
+ _builder_35.newLine();
+ EcoreUtil.setDocumentation(cls, _builder_35.toString());
+ EAttribute _attribute_16 = PostprocessingHelpers.getAttribute(cls, "importedNamespace");
+ StringConcatenation _builder_36 = new StringConcatenation();
+ _builder_36.append("The imported name space has to be a dot separated qualified name followed by .*.");
+ _builder_36.newLine();
+ _builder_36.append("Example: my.namespace.*");
+ _builder_36.newLine();
+ EcoreUtil.setDocumentation(_attribute_16, _builder_36.toString());
+ EAttribute _attribute_17 = PostprocessingHelpers.getAttribute(cls, "importURI");
+ StringConcatenation _builder_37 = new StringConcatenation();
+ _builder_37.append("The import URI can be a relative or absolute file system path.");
+ _builder_37.newLine();
+ _builder_37.append("It may contain environment variables in ${} which will be expanded.");
+ _builder_37.newLine();
+ _builder_37.append("<p>");
+ _builder_37.newLine();
+ _builder_37.append("Examples:");
+ _builder_37.newLine();
+ _builder_37.append("<ul>");
+ _builder_37.newLine();
+ _builder_37.append(" ");
+ _builder_37.append("<li>import model \"AnotherModel.room\"</li>");
+ _builder_37.newLine();
+ _builder_37.append(" ");
+ _builder_37.append("<li>import my.namespace.* from \"AnotherModel.room\"</li>");
+ _builder_37.newLine();
+ _builder_37.append(" ");
+ _builder_37.append("<li>import my.namespace.* from \"../../AnotherProject/models/AnotherModel.room\"</li>");
+ _builder_37.newLine();
+ _builder_37.append(" ");
+ _builder_37.append("<li>import my.namespace.* from \"/${ROOM_MODELS}/SomeModel.room\"</li>");
+ _builder_37.newLine();
+ _builder_37.append("</ul>");
+ _builder_37.newLine();
+ _builder_37.append("</p>");
+ _builder_37.newLine();
+ EcoreUtil.setDocumentation(_attribute_17, _builder_37.toString());
}
}

Back to the top