[SOLVED] Select Viewpoint doesn't show when using XText metamodel/grammar [message #1726375] |
Fri, 11 March 2016 18:35  |
Eclipse User |
|
|
|
Hi,
I have a design file (let's say myDesign.odesign) and an Ecore metamodel. My Ecore is generated by creating an ECore project. These two work fine. However, I need to change my Ecore meta model with XText grammar and the metamodel that is now generated with XText. When I create the modeling project and create my xtext instance file, and then select viewpoint, it doesn't show the viewpoint I designed so that I can select it !
I don't know how to make it work when using XText metamodel. I know it is possible since "Sirius Xtext Integration" example is doing the same.
Thanks,
Bests,
Parsa
[Updated on: Fri, 01 April 2016 12:16] by Moderator
|
|
|
|
|
|
Re: Select Viewpoint doesn't show when using XText metamodel/grammar [message #1726984 is a reply to message #1726872] |
Thu, 17 March 2016 21:00  |
Eclipse User |
|
|
|
OK, I see,
I found that another solution would be changing the Xtext grammar, assuming System is the root of your grammar:
System:
((worldmodel=WorldModel)? & (behaviourmodel=BehaviourModel)?);
should be changed to
System:
{System} //create action
((worldmodel=WorldModel)? & (behaviourmodel=BehaviourModel)?);
Thanks a lot !
Parsa
[Updated on: Fri, 01 April 2016 12:15] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07515 seconds