Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Import statement handling of embedded variables
Import statement handling of embedded variables [message #654667] Wed, 16 February 2011 15:45 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
We are using a basic import statement as shown below and would like to
introduce the handling of variables inside the import string. Where in the
framework would we look to implement the changes.

we want to resolve the $MYPATH var, during the import resolution

import "$MYPATH/myfile.foo";


Import:
'import' importURI=STRING';';
Re: Import statement handling of embedded variables [message #654698 is a reply to message #654667] Wed, 16 February 2011 18:26 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

I'd look at ImportUriUtil and ImportUriResolver. If you can't bind your own implementation of the first one, the second one should work.

Alex
Previous Topic:Xtext grammar: no leading whitespaces in comments
Next Topic:Customizing the generated ANTLR Lexer file (Internal*__.g)
Goto Forum:
  


Current Time: Fri Apr 26 20:32:57 GMT 2024

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

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

Back to the top