Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341008 - Open Element for enumerators does not work when enumerators are inside a class
Summary: Open Element for enumerators does not work when enumerators are inside a class
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-source-nav (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 17:24 EDT by Marc-André Laperle CLA
Modified: 2011-03-31 23:56 EDT (History)
1 user (show)

See Also:


Attachments
fix (7.51 KB, patch)
2011-03-30 12:47 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

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