Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ImportURI Mechanism working with all the workspace
ImportURI Mechanism working with all the workspace [message #647998] Mon, 10 January 2011 17:33 Go to next message
Jake is currently offline JakeFriend
Messages: 21
Registered: November 2010
Junior Member
I'm using

scoping.ImportURIScopingFragment {}
fragment = exporting.SimpleNamesFragment {}

to have the scope working just for the imported files. Now I've a library (20-30 files). How can I let this library visible to all projects?
I've tried to create a project containing the library, but I cannot use the include statement between projects. How can I do?
Thank you in advance
Re: ImportURI Mechanism working with all the workspace [message #648000 is a reply to message #647998] Mon, 10 January 2011 17:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
hi,

you should actually be able to cross-reference between projects with something like
"platform:/resource/projecta/src/fresourcea.mydsl"

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: ImportURI Mechanism working with all the workspace [message #648010 is a reply to message #648000] Mon, 10 January 2011 18:41 Go to previous messageGo to next message
Jake is currently offline JakeFriend
Messages: 21
Registered: November 2010
Junior Member
Thankyou,
but I'm implementing an editor for a lenguage that already exist. I would like to add a mechanism like "configure build path" of eclipse for Java, but maintening the importURI fragment...
Re: ImportURI Mechanism working with all the workspace [message #648016 is a reply to message #648010] Mon, 10 January 2011 20:48 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
Hello Jake,

have a look at http://www.eclipse.org/forums/index.php?t=msg&th=168391& amp; amp;goto=534421 for hints on default imports.

Try to subclass org.eclipse.xtext.scoping.impl.ImportUriGlobalScopeProvider and overwriting getImportedUris(EObject)

Don't forget to register your Subclass in the Guice Module

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 10 January 2011 20:49]

Report message to a moderator

Previous Topic:error when opening file not in workspace
Next Topic:setting xtext editor as dirty programmatically
Goto Forum:
  


Current Time: Sat Sep 21 21:28:40 GMT 2024

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

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

Back to the top