Comments (2)
Hi Mario,
the problem is caused by using EClasses, that are defined in another ecore:
platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore
Classes from this ecore are used as base classes as well as eType for structural features. This is supported by emf4cpp in principle, but not via the platform mechanism. Instead a relative path to the ecore must by given in the reference. To use the library you have to generate code for the referenced ecore.
I hope that helps you. I am at your disposal for further questions.
Yours sincerely
Sören
from emf4cpp.
Thank you very much, @srhenning!
Referencing the other ecores by using relative paths worked fine!
For example, I had to change
<eStructuralFeatures xsi:type="ecore:EReference" name="declaredParam" eType="ecore:EClass platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore#//JvmFormalParameter" containment="true"/>
to
<eStructuralFeatures xsi:type="ecore:EReference" name="declaredParam" eType="ecore:EClass JavaVMTypes.ecore#//JvmFormalParameter" containment="true"/>
in case of the JavaVMTypes.ecore
stored in the same (current) directory.
Regards
Mario
from emf4cpp.
Related Issues (13)
- Compilation Problem .I have attach the output file.Please help
- read model file based on created meta-model HOT 8
- Emf4Cpp support XMI HOT 2
- cannot convert ‘ecore::EClass*’ to ‘ecore::EObject*’ for argument ‘1’ to ‘void ecore::intrusive_ptr_release(ecore::EObject*)’ HOT 2
- undefined reference to `qt_version_tag' in "emf4cpp-edate" HOT 1
- Custom EDatatype not supported HOT 1
- Generate java doc like documentation headers
- Resolving "xmi" namespace HOT 3
- unable to resolve the reference HOT 3
- remove element From ELIST
- Trying to get the library running with Visual Studio 2019 HOT 3
- Issues with merged pull request #5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emf4cpp.