Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Custom Serialization
Custom Serialization [message #1691688] Thu, 09 April 2015 05:12 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Hi,

I wonder if it is possible to customize the serialization (format).

What I'm after is to have one format for what is shown in the editor and what is edited by humans and one other serialization format consumed by other tools.

The serialization format is fixed due to legacy but I'd like to provide a simplified version of this for the end users editing these files.

I could create a generator generating the serialization format from the DSL but that would only solve half of the problem. I need the possibility to read the serialized files as well and present it as the DSL.

Regards
Patrik

[Updated on: Thu, 09 April 2015 05:15]

Report message to a moderator

Re: Custom Serialization [message #1691691 is a reply to message #1691688] Thu, 09 April 2015 05:44 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
Hi,

you can bind different Formatters in different Guice Modules and use the appropriate Guice Module / StandaloneSetup / ... in the Appropriate Usecase.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Restricting Java-like statements in method bodies
Next Topic:Xtext 2.8 pdf?
Goto Forum:
  


Current Time: Sat Apr 27 02:55:18 GMT 2024

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

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

Back to the top