Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318883

Summary: [Formatter/Matcher] after(rule) not matched in one case
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: henrik.lindberg, laurent.hubert, thsoft
Version: 1.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Moritz Eysholdt CLA 2010-07-05 08:05:18 EDT
For the following grammar

--------
Model:
	section+=Section*;

Section:
	'[' name=ID ']' (params+=Param)*;

Param:
	name=ID '=' foo=INT; 
--------

the formatting instruction

---------
c.setLinewrap().after(f.getSectionRule());
---------

has no impact.
Comment 1 Moritz Eysholdt CLA 2011-02-10 04:31:10 EST
*** Bug 329150 has been marked as a duplicate of this bug. ***
Comment 2 Moritz Eysholdt CLA 2011-02-10 04:33:33 EST
*** Bug 334187 has been marked as a duplicate of this bug. ***
Comment 3 Laurent CLA 2011-02-14 06:08:13 EST
Is there some work around that do not include the modification of the grammar ?
Comment 4 Moritz Eysholdt CLA 2011-02-16 06:32:01 EST
You can always try to associate the formatting rules with the surrounding grammar elements.
Comment 5 Moritz Eysholdt CLA 2011-04-04 12:26:36 EDT
I can confirm that this issue has been solved with one of the recent fixes (which are bug 341647, bug 339997 and bug 341797)