Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345834 - Enumerators disappear from outline after reconciling the editor
Summary: Enumerators disappear from outline after reconciling the editor
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 02:21 EDT by Patrick Hofer CLA
Modified: 2011-05-16 03:23 EDT (History)
1 user (show)

See Also:


Attachments
fix (1.86 KB, patch)
2011-05-15 06:34 EDT, Patrick Hofer CLA
aleherb+eclipse: iplog+
Details | Diff

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