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

Bug 345834

Summary: Enumerators disappear from outline after reconciling the editor
Product: [Tools] CDT Reporter: Patrick Hofer <paedu.hofer>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix aleherb+eclipse: iplog+

Description Patrick Hofer CLA 2011-05-15 02:21:54 EDT
1) To reproduce create the following code:

enum EColors{
	eRed, eGreen, eBlue
};

2) Check the Outline. There is the enum, but no plus sign and no enumerators. This is not ok.
3) Save and close the file.
4) Reopen the file. Now the plus sign and the enumerators are ok.
5) Edit anywhere in the file (just add a whitespace)
6) After reconciling the enumerators disappeared again.
Comment 1 Patrick Hofer CLA 2011-05-15 06:34:45 EDT
Created attachment 195658 [details]
fix
Comment 2 Anton Leherbauer CLA 2011-05-16 03:18:09 EDT
Good catch and perfect fix! Thank you!
Committed to HEAD.
Comment 3 CDT Genie CLA 2011-05-16 03:23:06 EDT
*** cdt cvs genie on behalf of aleherbau ***
Bug 345834 - Enumerators disappear from outline after reconciling the editor
Patch by Patrick Hofer

[*] CModelBuilder2.java 1.53 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelBuilder2.java?root=Tools_Project&r1=1.52&r2=1.53