This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203906 - [Right click menu -> navigate -> declaration] uses selected text, not where the cursor is
Summary: [Right click menu -> navigate -> declaration] uses selected text, not where t...
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 14:08 UTC by monk.e.boy
Modified: 2011-10-20 13:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description monk.e.boy 2011-10-18 14:08:39 UTC
Problem: [Right click menu -> navigate -> declaration] uses selected text, not where the cursor is

Reproduce (example code):

$a = a_function();
$b = another_function();

double click a_function to highlight it, now right click on another_function and Navigate -> Go to declaration and it goes to a_function (which is not the function I clicked on/performed my select action on)
Comment 1 Jiri Prox 2011-10-18 15:13:05 UTC
Reproducible,

the problem probably is, that the right click does not move cursor to the new position, so it stays at previous position (e.g. at call a_function method)
Comment 2 Jan Becicka 2011-10-20 13:36:26 UTC
This is what I would expect. Popup menu is context sensitive and editor selection is the context for the menu.