Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Migrate from AbstractDeclarativeFormatter to AbstractFormatter2(Migrate from AbstractDeclarativeFormatter to AbstractFormatter2)
Migrate from AbstractDeclarativeFormatter to AbstractFormatter2 [message #1786127] Wed, 25 April 2018 21:06 Go to next message
Simon Giesecke is currently offline Simon GieseckeFriend
Messages: 1
Registered: April 2018
Junior Member
I have an existing implementation/subclass of AbstractDeclarativeFormatter (https://github.com/btc-ag/service-idl/blob/master/com.btc.serviceidl/src/com/btc/serviceidl/formatting/IdlFormatter.xtend) but the newly generated workflow generates a stub subclass of AbstractFormatter2. Is there a guide how to migrate this?

Or can I still configure my workflow to use AbstractDeclarativeFormatter? Would this be advisable?
Re: Migrate from AbstractDeclarativeFormatter to AbstractFormatter2 [message #1786140 is a reply to message #1786127] Thu, 26 April 2018 05:01 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12230
Registered: July 2009
Senior Member
you can use the old and buggy one thatis no longer maintained by simply add a binding for it

def Class<? extends IFormatter> bindIFormatter() {...}

there is no migration guide but a presentaton about the principles of the new one

https://de.slideshare.net/meysholdt/xtexts-new-formatter-api


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Issue with formatting line breaks
Next Topic:Announcing Xtext&Xtend 2.14 RC1
Goto Forum:
  


Current Time: Thu Sep 20 15:31:36 GMT 2018

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

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

Back to the top