Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Formatter2: formatting merging
icon5.gif  Formatter2: formatting merging [message #1695153] Tue, 12 May 2015 06:46 Go to next message
Eclipse UserFriend
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 05:56 Go to previous messageGo to next message
Eclipse UserFriend
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 09:43 Go to previous message
Eclipse UserFriend
Thank you !
Previous Topic:code gen. /no duplicate
Next Topic:How to dynamic filter the content assistant list in XxxProposalProvider?
Goto Forum:
  


Current Time: Thu Jul 10 00:15:49 EDT 2025

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

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

Back to the top