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

Bug 341008

Summary: Open Element for enumerators does not work when enumerators are inside a class
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-source-navAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix mschorn.eclipse: iplog-

Description Marc-André Laperle CLA 2011-03-25 17:24:19 EDT
Using 8.0.0.201103231204

class Bar
{
    enum { foo };
};

Try Open Element (ctrl+shit+t) for foo, it will not open the element.
Comment 1 Markus Schorn CLA 2011-03-28 11:53:24 EDT
This works for me. Dumb question: Did you check the enumerator option in the dialog?
Comment 2 Marc-André Laperle CLA 2011-03-28 13:07:45 EDT
(In reply to comment #1)
> This works for me. Dumb question: Did you check the enumerator option in the
> dialog?

Yes it is checked and if I move it out of the class then it works. Just tested again with CDT 8.0.0.201103281202 with a clean workspace. I should add that foo shows up in the Matching elements but has no Qualified name and location.
Comment 3 Markus Schorn CLA 2011-03-30 11:14:39 EDT
I see what you mean.
Comment 4 Markus Schorn CLA 2011-03-30 12:47:24 EDT
Created attachment 192208 [details]
fix
Comment 5 Markus Schorn CLA 2011-03-30 12:47:48 EDT
Fixed in 8.0
Comment 7 Marc-André Laperle CLA 2011-03-31 23:56:45 EDT
(In reply to comment #5)
> Fixed in 8.0

Great, thank you!