Unresolved JvmTypeReference's when loading model manually [message #1451757] |
Fri, 24 October 2014 08:47 |
|
Hey,
We have a DSL that allows references to Java types. For this, the grammar is "with org.eclipse.xtext.xbase.Xtype" and references to java types are implemented by just putting "jvmRef=JvmTypeReference" in the grammar.
This works flawlessly in the IDE, no problem at all. We have generators that generate java code using the usual IGenerator infrastructure, and they work without problems.
Now we want to load an read/analyze/process the model files "manually" by loading a Resource into an XtextResourceSet, and when we do so, all the jvmRef's are unresolved. We get some NPEs and when looking at the JvmTypeReference in the debugger it comes out as JvmVoidImplCustom ....
What are we doing wrong? Is there some explicit "resolve it now, please" call that we need to do that is specific to Xtype? We have other references to elements within the same DSL but different files that work without any problems...
Thanks in advance for any hint!
Cheers,
Markus
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02145 seconds