Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Runtime modification of Scoping
Runtime modification of Scoping [message #1778666] Tue, 19 December 2017 16:09 Go to next message
nasxtext mj is currently offline nasxtext mjFriend
Messages: 5
Registered: December 2015
Junior Member

I wan to scope by reference to existing in-memory ecore objects from xText DSL editor. I intend to do this by subtyping/mapping the types defined in the ecore model from the types defined in my xText DSL at runtime.

Essentially, I want to achieve a content-assist with elements from the in-memory ecore objects, which are not created using my xText DSL. How can I achieve such functionalities in Xtext. Thank you for your help.

Re: Runtime modification of Scoping [message #1779236 is a reply to message #1778666] Thu, 04 January 2018 09:25 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 752
Registered: July 2009
Location: Hamburg
Senior Member
Depends on the lifecycle of the ecore objects. If these models are alive (changing) maybe this blogpost can help:
If the are fixed at runtime, you could just add them in the scopes your scope provider produces. Maybe even the global scope provider.

Get professional support from the Xtext committers at
Previous Topic:Quickfix NullPointerException in PartialSerializer
Next Topic:How to parse a normal text file for unit test
Goto Forum:

Current Time: Wed Jan 17 23:52:19 GMT 2018

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

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