Skip to content

Commit

Permalink
Update test model to use Map.Entry type for a class
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Prouvost <olivier.prouvost@opcoach.com>
  • Loading branch information
opcoach committed Nov 23, 2017
1 parent f62ed89 commit 020d873
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion com.opcoach.genmodeladdon.sample/META-INF/MANIFEST.MF
Expand Up @@ -7,4 +7,5 @@ Eclipse-BundleShape: dir
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ClassPath: ant_tasks/importer.ecore.tasks.jar,
.
Require-Bundle: org.eclipse.core.runtime
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore
5 changes: 5 additions & 0 deletions com.opcoach.genmodeladdon.sample/model/project.ecore
Expand Up @@ -27,6 +27,7 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="subTasks" upperBound="-1"
eType="#//Task" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="responsable" eType="#//Person"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="kijs" eType="#//IntToDoubleMap"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Company">
<eStructuralFeatures xsi:type="ecore:EReference" name="projects" upperBound="-1"
Expand Down Expand Up @@ -72,6 +73,10 @@
<eLiterals name="Code" value="1" literal="Code"/>
<eLiterals name="Test" value="2" literal="Test"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntToDoubleMap" instanceClassName="java.util.Map$Entry">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDoubleObject"/>
</eClassifiers>
<eSubpackages name="documentation" nsURI="http://www.opcoach.com/project/documentation/1.0"
nsPrefix="doc">
<eClassifiers xsi:type="ecore:EClass" name="DocumentationProject" eSuperTypes="#//Project"/>
Expand Down
5 changes: 5 additions & 0 deletions com.opcoach.genmodeladdon.sample/model/project.genmodel
Expand Up @@ -37,6 +37,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute project.ecore#//Task/name"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference project.ecore#//Task/subTasks"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference project.ecore#//Task/responsable"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference project.ecore#//Task/kijs"/>
</genClasses>
<genClasses ecoreClass="project.ecore#//Company">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference project.ecore#//Company/projects"/>
Expand All @@ -57,6 +58,10 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute project.ecore#//ClassAsInterface/name"/>
<genOperations ecoreOperation="project.ecore#//ClassAsInterface/operationListener"/>
</genClasses>
<genClasses ecoreClass="project.ecore#//IntToDoubleMap">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute project.ecore#//IntToDoubleMap/key"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute project.ecore#//IntToDoubleMap/value"/>
</genClasses>
<nestedGenPackages prefix="Documentation" basePackage="com.opcoach.project" disposableProviderFactory="true"
ecorePackage="project.ecore#//documentation">
<genClasses ecoreClass="project.ecore#//documentation/DocumentationProject"/>
Expand Down
Binary file modified com.opcoach.genmodeladdon.sample/sampleProject.zip
Binary file not shown.

0 comments on commit 020d873

Please sign in to comment.