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

Bug 348871

Summary: [xtext][outline] Better defaults for unnamed elements
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jan, sven.efftinge, tmf.xtext-inbox
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-06-09 07:31:15 EDT
We could use the file name of the resource instead of the <unnamed> placeholder for the root element.

If a leaf is unnamed, we could skip that.

Both examples are taken from the FowlerDSL example.
Comment 1 Sebastian Zarnekow CLA 2011-06-09 07:31:41 EDT
Preliminary scheduled for SR1.
Comment 2 Jan Koehnlein CLA 2011-10-13 13:20:30 EDT
Pushed to master.

Note that due to the lazy calculation of children a node cannot know that all of its children will be skipped due to missing label texts. Consequently the "expand" button will be shown anyway if _isLeaf() is false.
Comment 3 Karsten Thoms CLA 2017-09-19 18:01:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:12:15 EDT
Closing all bugs that were set to RESOLVED before Neon.0