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: 14665
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)


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:Add tag/separator/... to organise outline view
Goto Forum:
  


Current Time: Thu Apr 25 08:07:55 GMT 2024

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

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

Back to the top