Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Join two scopes
Join two scopes [message #1835413] Wed, 02 December 2020 18:10 Go to next message
kolchanov Mising name is currently offline kolchanov Mising nameFriend
Messages: 20
Registered: October 2011
Junior Member
Hello,
How can I join two different IScope objects into single IScope?
Re: Join two scopes [message #1835416 is a reply to message #1835413] Wed, 02 December 2020 19:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13722
Registered: July 2009
Senior Member
you may check
https://github.com/eclipse/n4js/blob/567293bb42fcfa9b53bdb89678491ab0515f1ea3/plugins/org.eclipse.n4js/src/org/eclipse/n4js/scoping/utils/CompositeScope.java
if it fits your needs.

otherwise simply implement it yourself
or use an SimpleScope with parent
(depending on your merge rules)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Join two scopes [message #1835425 is a reply to message #1835416] Thu, 03 December 2020 07:40 Go to previous message
kolchanov Mising name is currently offline kolchanov Mising nameFriend
Messages: 20
Registered: October 2011
Junior Member
This is exactly what I'm looking for.
Thank you!
Previous Topic:Redundant usage of =current
Next Topic:How to cleanly handle runtime exceptions in AbstractModelInferrer
Goto Forum:
  


Current Time: Sat Jan 23 15:11:59 GMT 2021

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

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

Back to the top