Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using xText with existing model and Resource
Using xText with existing model and Resource [message #994066] Wed, 26 December 2012 04:48 Go to previous message
Ashwani Kr Sharma is currently offline Ashwani Kr Sharma
Messages: 117
Registered: July 2009
Location: Bangalore, India
Senior Member

Hi,

I want to use xText in following scenario:

I have existing EMF models which are persisted to a local file (using Resource) (as xml)
sfs (semantic file system) takes that content to a backend using REST and handled on backend using ResourceHandlers.

I am targeting to create a DSL for the EMF Model but finally wants to push content into xml only.
This also means that i can read existing xml in DSL format.

How should i approach this ?

I went through xText documentation but still don't know how to read xmi into DSL format and save DSL format to xmi.
I also referred to http://blog.efftinge.de/2009/11/xtext-using-existing-ecore-models.html but wasn't able to make it work.
I try to load an existing xmi file using the DSL editor, it shows xmi itself with keywords in my grammer highlighted and i try to save the DSL content and open using some Sample Ecore Editor, i get errors.

Regards,
Ashwani Kr Sharma

[Updated on: Wed, 26 December 2012 04:59]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Captured feature values for Case Insensitive Keywords are not Case Insensitive during serialization
Next Topic:Check nature of XExpression
Goto Forum:
  


Current Time: Wed May 22 05:50:55 EDT 2013

Powered by FUDForum. Page generated in 0.01689 seconds