Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Global Scopes in mwe context
Global Scopes in mwe context [message #630011] Thu, 30 September 2010 11:13 Go to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi,

I have split my xtext model files and placed the referenced model
elements in another project, say 'base'. The referencing model resides
in a Java project called 'myproject'.

I realized that I have to make 'base' a plug-in project with xtext
nature and add it to the manifest of 'myproject'.
Now the xtext editor is aware of 'base' and successfully resolves all
the references.

However, when I launch my generator using mwe2 from 'myproject' the
xtext validation fails because the references to 'base' are not resolved.

How can I solve this issue?

Thanks,
Henrik
Re: Global Scopes in mwe context [message #630012 is a reply to message #630011] Thu, 30 September 2010 11:18 Go to previous message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi again,

I solved this by setting
useJavaClassPath=true
in the org.eclipse.xtext.mwe.Reader.

But then I had to add further classpath entries even though before this
change everything went fine (up to below mentioned resolution issue, of
course).

Regards,
Henrik


Am 30.09.2010 13:13, schrieb Henrik Rentz-Reichert:
> Hi,
>
> I have split my xtext model files and placed the referenced model
> elements in another project, say 'base'. The referencing model resides
> in a Java project called 'myproject'.
>
> I realized that I have to make 'base' a plug-in project with xtext
> nature and add it to the manifest of 'myproject'.
> Now the xtext editor is aware of 'base' and successfully resolves all
> the references.
>
> However, when I launch my generator using mwe2 from 'myproject' the
> xtext validation fails because the references to 'base' are not resolved.
>
> How can I solve this issue?
>
> Thanks,
> Henrik
Previous Topic:Memory allocation of XtextResource
Next Topic:Cannot resolve references - Cross referencing on the same predicate
Goto Forum:
  


Current Time: Fri Apr 26 13:54:00 GMT 2024

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

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

Back to the top