Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Global references / scope in project
Global references / scope in project [message #758465] Wed, 23 November 2011 11:38 Go to next message
Koko  is currently offline Koko Friend
Messages: 1
Registered: November 2011
Junior Member
Hi,
I want to add all files in project to scope implicitly (without having to import them), I've tried several approaches, such as the ImportUriGlobalScopeProvider.getImportedUris, but it seems that I can only add uris of known files (hard-coded) but what I need is to have all project objects in scope.
Thanks

[Updated on: Wed, 23 November 2011 11:38]

Report message to a moderator

Re: Global references / scope in project [message #758468 is a reply to message #758465] Wed, 23 November 2011 11:46 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13423
Registered: July 2009
Senior Member
Hi,

dont use ImportUri based scoping but the (default) namespace based scoping.

fragment = scoping.ImportNamespacesScopingFragment {}
fragment = exporting.QualifiedNamesFragment {}
fragment = builder.BuilderIntegrationFragment {}

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[xtend2] Implicit Rich String Concatenation for Code Generation
Next Topic:Xtext 2.1: using Xbase expressions
Goto Forum:
  


Current Time: Sun Apr 05 14:00:03 GMT 2020

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

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

Back to the top