Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Opting to use original formatter over formatter2
Opting to use original formatter over formatter2 [message #1783601] Wed, 14 March 2018 14:08 Go to next message
Philip Newman is currently offline Philip NewmanFriend
Messages: 3
Registered: March 2018
Junior Member
I'm currently in the process of upgrading over 30 DSL's which already have formatting classes written for them. I've spent some time writing formatting2 classes and while I like the new style for formatting, I was wondering if it's possible to instead force the language to use the old formatter?

This would be extremely helpful in my case as it would avoid a whole set of testing I would have to do otherwise.

Thanks for your time!
Re: Opting to use original formatter over formatter2 [message #1783621 is a reply to message #1783601] Wed, 14 March 2018 16:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
What you you exactly do when the new formatter is used?

Did you set generateStub to false for the formatter in the workflow


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Opting to use original formatter over formatter2 [message #1783625 is a reply to message #1783621] Wed, 14 March 2018 16:53 Go to previous messageGo to next message
Philip Newman is currently offline Philip NewmanFriend
Messages: 3
Registered: March 2018
Junior Member
Here is the only formatter oriented config in my workflows.

formatter = {
	generateStub = true
	generateXtendStub = true
}


The above code is found within the StandardLanguage block if that's important...

[Updated on: Wed, 14 March 2018 16:54]

Report message to a moderator

Re: Opting to use original formatter over formatter2 [message #1783626 is a reply to message #1783625] Wed, 14 March 2018 16:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
This enables the new formatter so setit to false

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Opting to use original formatter over formatter2 [message #1783627 is a reply to message #1783626] Wed, 14 March 2018 16:58 Go to previous message
Philip Newman is currently offline Philip NewmanFriend
Messages: 3
Registered: March 2018
Junior Member
I apologize for the weak question, I could explain the events which lead it to being asked but instead I'll just say thank you very much.

EDIT: For the sake of completeness I'd like to add that I also had to add the binding to the old formatter to the runtime module of each DSL in question. Working great now. Thanks again.

[Updated on: Thu, 15 March 2018 16:49]

Report message to a moderator

Previous Topic:How to resolve Xtext dependency to com.google.inject in a multi platform build with maven
Next Topic:Cross reference, Qualified name and scoping
Goto Forum:
  


Current Time: Thu Apr 25 04:36:13 GMT 2024

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

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

Back to the top