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

Bug 312515

Summary: CDT Quick Outline: After typing C++ method name, first matching method should already be highlighted
Product: [Tools] CDT Reporter: Mike Morearty <mike>
Component: cdt-source-navAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: minor    
Priority: P3    
Version: 6.0   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix mschorn.eclipse: iplog-

Description Mike Morearty CLA 2010-05-11 20:02:26 EDT
Build Identifier: 20090920-1017

If a C++ file contains methods "MyClass::foo()" and "MyClass::bar()", you can just type "f" to match MyClass::foo().  That's great, but you then have to press some extra keys to select MyClass::foo() before you can press Enter.  On Mac, you have to press down-arrow twice; on Windows, you have to press down-arrow followed by spacebar.

It would be preferable if the behavior was the same as it is in other scenarios, such as when just matching regular functions (not methods) like "foo()": The first matching entry should already be highlighted, so that e.g. just typing "f" followed by the Enter key is all that's necessary.

Reproducible: Always

Steps to Reproduce:
1. New C++ project
2. Add this to a .cpp file:

void MyClass::foo() { }
void MyClass::bar() { }

3. Ctrl-O (or Cmd-O on Mac) for Quick Outline
4. Type "f"

Actual result:
MyClass::foo() is shown, but is not selected. To jump to that function, you now have to press several more keys to select MyClass::foo() before you can press Enter.

Expected result:
MyClass::foo() is shown and is selected. If you just press Enter, the editor will jump to it.
Comment 1 Markus Schorn CLA 2010-05-19 08:44:18 EDT
Created attachment 169103 [details]
fix

Good observation!
Comment 2 Markus Schorn CLA 2010-05-19 08:45:44 EDT
Fixed in 7.0 > 20100519.
Comment 3 CDT Genie CLA 2010-07-28 15:28:28 EDT
*** cdt cvs genie on behalf of mschorn ***
Bug 312515: Fix selection for qualified names in info control.

[*] AbstractInformationControl.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractInformationControl.java?root=Tools_Project&r1=1.11&r2=1.12