Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312515 - CDT Quick Outline: After typing C++ method name, first matching method should already be highlighted
Summary: CDT Quick Outline: After typing C++ method name, first matching method should...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-source-nav (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 7.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 20:02 EDT by Mike Morearty CLA
Modified: 2010-07-28 15:28 EDT (History)
0 users

See Also:


Attachments
fix (3.58 KB, patch)
2010-05-19 08:44 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 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