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: 189
Registered: January 2013
Location: Sweden
Senior Member

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.


[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: 13884
Registered: July 2009
Senior Member

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

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Restricting Java-like statements in method bodies
Next Topic:Xtext 2.8 pdf?
Goto Forum:

Current Time: Fri Apr 16 15:31:31 GMT 2021

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

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

Back to the top