Xtext & EAnnotation [message #878932] |
Wed, 30 May 2012 08:26 |
Hans-Georg Glöckler Messages: 88 Registered: July 2009 |
Member |
|
|
When I create an Ecore-Model of my Xtext-Grammar, I can create the following features of the Ecore-Model
EPackage
EClass
EAttribute
EReference
EDataType
EEnum
This I know.
My Question is:
But how can I create an EAnnotation in the Ecore-Model by the Xtext-Grammar?
An EAnnotation for:
EClass
EReference
EAttribute
[Updated on: Wed, 30 May 2012 08:27] Report message to a moderator
|
|
|
|
|
Re: Xtext & EAnnotation [message #878966 is a reply to message #878945] |
Wed, 30 May 2012 09:31 |
|
Hi,
i still do not get it what this has to do with Xtext? maybe you mix up metalevels.
if you want to create a grammar for ecore noone prevents you from doing this
(but one metalevel up) or reusing xcore
which gives you that for free.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: Xtext & EAnnotation [message #878977 is a reply to message #878966] |
Wed, 30 May 2012 09:48 |
Hans-Georg Glöckler Messages: 88 Registered: July 2009 |
Member |
|
|
Hello, please don't misunderstand me.
With Xtext I can create an Ecore-Model.
Thats very iportant for me, because of Xpand.
With Xpand and Ecore it is very easy to create java-sourcecode.
This is the benfit.
The only missing element in this area are EAnnotations in Ecore.
I can not create with Xtext Ecore-EAnnotations.
All the other Stuff of ecore I can create/generate by Xtext.
I am looking only for a Rule in Xtext, which will generate me an EAnnotation in the corresponding Ecore-Model. That's all.
Plesae don't forget:
Xtext-Ecore-Xpand is a very good workflow.
I will write you today in the afternoon or tomorrow an use-case.
I want create a DSL with Xtext for:
- creating JPA-File
- to set some parameters in the view
[Updated on: Wed, 30 May 2012 09:52] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03187 seconds