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
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.

[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: 13750
Registered: July 2009
Senior Member

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

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


Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:[xtend2] Implicit Rich String Concatenation for Code Generation
Next Topic:Xtext 2.1: using Xbase expressions
Goto Forum:

Current Time: Thu Feb 25 02:33:01 GMT 2021

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

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

Back to the top