Skip to main content


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: 8
Registered: December 2015
Junior Member
Hello,

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.


Best,
/Nas
Re: Runtime modification of Scoping [message #1779236 is a reply to message #1778666] Thu, 04 January 2018 09:25 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 757
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:
http://typefox.io/linking-xtext-models-with-other-emf-models
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 www.typefox.io
Re: Runtime modification of Scoping [message #1781360 is a reply to message #1779236] Tue, 06 February 2018 12:22 Go to previous message
nasxtext mj is currently offline nasxtext mjFriend
Messages: 8
Registered: December 2015
Junior Member
Thank you a lot Jan , apology for the delay. Yes, the instances are dynamic.
I will check out the link.

Best,
/nas
Previous Topic:Negative numbers in Xtext Arithmetic Sample
Next Topic:Is there a plan for the next Xtext Summit?
Goto Forum:
  


Current Time: Thu Jun 21 10:50:13 GMT 2018

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

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

Back to the top