Bug 75353 - [navigation] Open on selection should use just caret location
Summary: [navigation] Open on selection should use just caret location
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 M4   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 159886 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-29 17:48 EDT by Randy Hudson CLA
Modified: 2006-11-30 10:41 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2004-09-29 17:48:31 EDT
F3 will attempt to find a type based on the current selection range.  If the 
selection range is length 0, it will take the encompassing "word" and try to 
find that element.  But, if a range is selected, it will try to match based on 
the selected text.  I don't understand when someone would use this latter 
case.  To me, I would prefer to have it always take the caret location, and 
then search based on the surrounding word, never the selection range.

For example, I search for a method containing the word "accessible", and I find 
a method call to "getAccessible". Now, I want to go to the method declaration 
using F3, but part of the method name is swiped.  I would never want to open 
the Type "Accessible", but this is what happens.
Comment 1 Dani Megert CLA 2004-09-30 04:51:25 EDT
My usage pattern is also closer to what you describe.
Comment 2 Dani Megert CLA 2005-06-27 11:43:08 EDT
*** Bug 101878 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2006-10-09 08:08:58 EDT
*** Bug 159886 has been marked as a duplicate of this bug. ***
Comment 4 Adam Hawthorne CLA 2006-10-09 08:23:24 EDT
Adding my voice in favor of this bug's resolution as submitter of duplicate of Bug 159886 .
Comment 5 Markus Keller CLA 2006-10-26 08:20:53 EDT
+1
Comment 6 Dani Megert CLA 2006-11-30 10:41:17 EST
Let's see how people find this.

Committed to HEAD.
Available in builds > N20061130-0010.