Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Ecore to EMF Editor Plugin - Error in serialization
Ecore to EMF Editor Plugin - Error in serialization [message #1792778] Mon, 23 July 2018 16:38
Eclipse UserFriend
I wrote a grammar in Xtext and i'm trying to generate an editor instance using EMF, Ecore and Genmodel.

I am doing very similar work to these 2 tutorials :
*Can't post links*

My problem is that, when creating an instance of the editor plugin and choosing the Model object for my 'Example EMF Model Creation Wizards', I get the following error :

Domainmodel.elements violates the lower bound: It holds 0 values, but at least 1 are required.
Semantic Object: Domainmodel


When looking at the Ecore Properties of elements, the lower bound is set at 0 and the upper bound is set at -1. Why then, is it expecting a value?

I couldn't find any information online on this error. I have attached the following :
- My XText Grammar
- My Ecore generated from the grammar

I am very new to the field so any help or links are appreciated.
  • Attachment: Canard.xtext
    (Size: 0.76KB, Downloaded 180 times)
  • Attachment: Canard.ecore
    (Size: 2.33KB, Downloaded 255 times)
Previous Topic:[EMF Forms] View Proxy on feature-level
Next Topic:Modeling Symposium @ EclipseCon Europe 2018
Goto Forum:
  


Current Time: Thu Jun 12 22:16:11 EDT 2025

Powered by FUDForum. Page generated in 0.03957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top