Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » "mixed" global scoping
"mixed" global scoping [message #834632] Mon, 02 April 2012 07:35 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi!

I need to handle global scopes with both explicit URI imports and classpath-based. Since there is only one IGlobalScopeProvider, it looks like it won't work out of the box. My guess is that I have to define my own provider that merges the results from an ImportUriGlobalScopeProvider and a ResourceSetGlobalScopeProvider. Is that so or is there any shortcut?

best regards,
Vlad
Re: "mixed" global scoping [message #834668 is a reply to message #834632] Mon, 02 April 2012 08:32 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Vlad,

no, there are no shortcuts. Why do you need to have both file base and
name based imports?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 02.04.12 09:35, schrieb Vlad Dumitrescu:
> Hi!
>
> I need to handle global scopes with both explicit URI imports and
> classpath-based. Since there is only one IGlobalScopeProvider, it looks
> like it won't work out of the box. My guess is that I have to define my
> own provider that merges the results from an
> ImportUriGlobalScopeProvider and a ResourceSetGlobalScopeProvider. Is
> that so or is there any shortcut?
> best regards,
> Vlad
>
Re: "mixed" global scoping [message #834713 is a reply to message #834668] Mon, 02 April 2012 09:46 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi Sebastian,

Well, the language has an import statement that works like a C #include and referencing other source units is done with a classpath-like mechanism.

regards,
Vlad
Previous Topic:How to split the xtend generator file?
Next Topic:Outline does not work
Goto Forum:
  


Current Time: Sat Apr 27 04:25:49 GMT 2024

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

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

Back to the top