Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext project from ecore models(Using epackages in XText project from ecore models)
Xtext project from ecore models [message #1742888] Thu, 08 September 2016 12:31 Go to next message
sisi oly is currently offline sisi olyFriend
Messages: 1
Registered: September 2016
Junior Member
Hi all,
I'm working under a xtext project from ecore models, and the model has 3 packages. There is a class DomainModel in the package Principal, and there are 3 classes Condition, Description and Norm, all in the package InstitutionalNorms. These 3 classes inherited from DomainModel. In my code xtext, I have:
DomainModel returns Principal::DomainModel:
'abstractelements' (abstractelements+=AbstractElement)*
AbstractElement returns InstitutionalNorms::AbstractElement:
Condition | Description | Norm

and after that minimal definitions of these classes like this :
Condition returns InstitutionalNorms::Condition:
The syntax is correct but after generating xtext artifact it says that

[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: XtextGenerator)
java.lang.IllegalArgumentException: Cannot determine the package name of 'thesemodel.InstitutionalNorms.InstitutionalNormsPackage'. Please use the TypeReference(packageName, className) constructor

Can anyone help me please?
Thanks for any help
Re: Xtext project from ecore models [message #1742912 is a reply to message #1742888] Thu, 08 September 2016 14:30 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13887
Registered: July 2009
Senior Member
can you share a complete minimal reproducing example?

please note: nested packages is not supported well unless you use import platform:/resource/xxxxx/yyy.ecore#//pack instead of namespace imports
(there is somewhere a bug around this)

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Parser Rule Fragments
Next Topic:Failed to deploy artifacts ReasonPhrase: Forbidden
Goto Forum:

Current Time: Tue Apr 20 14:06:25 GMT 2021

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

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

Back to the top