Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Transitive / recursive import
Transitive / recursive import [message #901506] Mon, 13 August 2012 08:05 Go to next message
Dobes Vandermeer is currently offline Dobes VandermeerFriend
Messages: 26
Registered: July 2009
Junior Member
In the language I am working with if a file includes another file, it also inherits all the includes from that other file.

I have this working with a single step. I search my include path and create a SelectableBasedScope.

I'm wondering if there's a good place to attach some information to the Resource that I can use later when I build my scope to also go find those other includes recursively.

One approach I can think of is to subclass DefaultResourceDescriptionStrategy to return some special resource descriptions that I can scan for later.

Does that seem like a good idea, or is there a smarter approach?
Re: Transitive / recursive import [message #901515 is a reply to message #901506] Mon, 13 August 2012 08:28 Go to previous message
Dobes Vandermeer is currently offline Dobes VandermeerFriend
Messages: 26
Registered: July 2009
Junior Member
Actually that idea seems to work. So just let me know if there's a better way, otherwise ... nothing to see here!
Previous Topic:Overloaded/ambiguous matching
Next Topic:rule ruleIfstatement has non-LL(*) decision due to recursive rule invocations
Goto Forum:
  


Current Time: Mon Feb 17 01:36:52 GMT 2020

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

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

Back to the top