|resolving cross-references to imported model in xpand/xtend [message #480306]
||Fri, 14 August 2009 17:01
| Edwin Park
Registered: July 2009
I'm trying to use xtext to create an entity model and a separate gui model
that references the entity model.
I created two simple of xtext projects to demonstrate this issue:
The entity project just has the standard unmodified example xtext model.
The Gui.xtext file looks like:
grammar model.Gui with model.Entity
generate gui "http://www.Gui.model"
The model.gui.generator project has a MyModel.gui file that looks like:
The problem I'm running into is that the Xpand and Xtend files in my
model.gui.generator project are unable to see the entity cross-reference
in the GuiModel.
I have an Extensions.ext file:
Entity getEntity(GuiModel this) :
Eclipse reports "Couldn't find property 'entity' for type 'gui::GuiModel'"
I get the same error in my xpt file when referencing the entity property
The funny thing is that I am able to run generation successfully from the
mwe workflow, so the workflow is able to resolve this cross-reference just
fine. It is just the xpand/xtend editors in the dependent
model.gui.generator project that don't work properly. Can anyone tell me
what I might be doing wrong? Or is this a bug with the tooling?
Powered by FUDForum
. Page generated in 0.02144 seconds