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: 2
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: 14665
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


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: Fri Apr 26 15:01:49 GMT 2024

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

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

Back to the top