Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Reference across multiple files not working
Reference across multiple files not working [message #1751664] Thu, 12 January 2017 06:08 Go to next message
Eclipse UserFriend
Dear All,

I'm very new to XText. I'm following the example mentioned in the Getting Started:

https://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html

I'm not able to refer the types when I split the code into multiple files. For example, in blog.dmodel I'm not able to use the datatype String, which is declared in datatypes.dmodel.

Could there be some missing things? The documentation says it should work out of the box.

Thanks,
Sandeep
Re: Reference across multiple files not working [message #1751665 is a reply to message #1751664] Thu, 12 January 2017 06:12 Go to previous messageGo to next message
Eclipse UserFriend
make sure

- the project has xtext nature (rightklick, configure, convert to xtext project)
- make sure build automatically is on
- the the project is a java project the models should reside in a source folder.
Re: Reference across multiple files not working [message #1751693 is a reply to message #1751665] Thu, 12 January 2017 10:34 Go to previous message
Eclipse UserFriend
Thanks Christian, The project was not converted to an XText project. Now it works.

Best Regards,
Sandeep
Previous Topic:Gradle Multi-Language Project (IntelliJ Idea 15, Xtend 2.9 Beta)
Next Topic:Building the web-based editor in a project with existing Ecore model
Goto Forum:
  


Current Time: Sun May 11 19:41:32 EDT 2025

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

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

Back to the top