Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Formatter2: formatting merging
icon5.gif  Formatter2: formatting merging [message #1695153] Tue, 12 May 2015 10:46 Go to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

I was wondering if it was possible to merge the formatting attributes
of two consecutive semantic regions.
Something like that:

region.append[oneSpace]
nextRegion.prepend[noSpace]


So nextRegion would override oneSpace with noSpace.

When I test that, it complains of the impossibility to merge the two.
Is it a normal behavior ?

Thank you !

Aurel
Re: Formatter2: formatting merging [message #1695283 is a reply to message #1695153] Wed, 13 May 2015 09:56 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
You may want to override
org.eclipse.xtext.formatting2.AbstractFormatter2.createHiddenRegionFormattingMerger()

That should do the trick.

Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Find help at http://xtext.itemis.com or xtext(@)itemis.com
Blog: zarnekow.blogspot.com
Twitter: @szarnekow
Google+: https://www.google.com/+SebastianZarnekow
Re: Formatter2: formatting merging [message #1695331 is a reply to message #1695283] Wed, 13 May 2015 13:43 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Thank you !
Previous Topic:code gen. /no duplicate
Next Topic:How to dynamic filter the content assistant list in XxxProposalProvider?
Goto Forum:
  


Current Time: Fri Apr 19 04:59:28 GMT 2024

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

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

Back to the top