Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How i load resources dynamically
How i load resources dynamically [message #757766] Mon, 21 November 2011 15:08 Go to next message
Sebastian Burg is currently offline Sebastian BurgFriend
Messages: 9
Registered: November 2011
Junior Member
Hello,

i want to build an editor which can dynamically load references from an XML. This xml can be parsed with the corresponding xsd which i already have as a DSL.
In this XML there are certain keywords like "output_1" or "input_3" which are only present in this xml. So if i work on a set of XMLs i want to use these keywords on ctrl+space.
Furthermore it should combine the "normal" model i have written. So i have a "language" which shall use dynamic keywords from another source.

How can i fill the scoping dynamically?

Thanks for any help.
Re: How i load resources dynamically [message #758061 is a reply to message #757766] Mon, 21 November 2011 20:28 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13423
Registered: July 2009
Senior Member
Hi,

maybe some xsd2ecore + an iresourceserviceprovider will do the trick - it will at least work with a custom file extension for the xml files.

~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:Grammar problem (newbie)
Next Topic:[Xtend2] Builder Pattern: Cross References
Goto Forum:
  


Current Time: Sat Apr 04 18:35:29 GMT 2020

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

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

Back to the top