|Re: References to files [message #1051326 is a reply to message #1049714]
||Sun, 28 April 2013 16:04
| Sebastian Zarnekow
Registered: July 2009
the approach #1 is the one that I'd go forward with. The emf resource
impl could be straight forward and just ignore the file contents. If you
register a service provider for that one, everything else should work
like a charm. There are no known problems with references that use
STRING as underlying representation.
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 26.04.13 09:24, schrieb Benjamin Schwertfeger:
> I am looking for a solution to reference external files (like images).
> The solution with a String which is validated, the resource is not
> updated, if the image is removed.
> I have some ideas:
> 1. I create a new ResourceServiceProvider with EMF-Model to add images
> to ResourceDescriptions. For each file extension I need another EClass
> and additional ResourceServiceProvider. This way I can make real links
> in my grammar (Or is there a knwon Problem with STRING references).
> 2. A custom Builder "changes" the model files to trigger Xtext Builder.
> The files to touch can be calculated by evaluating user data of
> Thanks for comments,
Powered by FUDForum
. Page generated in 0.07806 seconds