Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329150 - [formatter/matcher] += assignments are not found
Summary: [formatter/matcher] += assignments are not found
Status: CLOSED DUPLICATE of bug 318883
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-30 17:58 EDT by Dénes Harmath CLA
Modified: 2011-02-10 04:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***