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

Bug 329150

Summary: [formatter/matcher] += assignments are not found
Product: [Modeling] TMF Reporter: Dénes Harmath <thsoft>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: moritz.eysholdt
Version: 1.0.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dénes Harmath CLA 2010-10-30 17:58:05 EDT
Build Identifier: I20100608-0911

It seems that in the formatter, formatting rules for += assignments do not take effect.

Xtext version: 1.0.1

Reproducible: Always

Steps to Reproduce:
1. In the domain model example's formatter, write:
c.setLinewrap(2).after(f.getDomainModelAccess().getElementsAssignment());
2. Format the following model:
entity Foo { }
3. There will be no newlines after the element.
Comment 1 Moritz Eysholdt CLA 2011-02-09 12:09:28 EST
I can confirm this behavior for branch 'master'.
Comment 2 Moritz Eysholdt CLA 2011-02-09 12:12:38 EST
...based on the given example. However, this could also be related to the deep nesting of rule calls at this position.
Comment 3 Moritz Eysholdt CLA 2011-02-10 04:31:10 EST

*** This bug has been marked as a duplicate of bug 318883 ***