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

Summary: [Right click menu -> navigate -> declaration] uses selected text, not where the cursor is
Product: editor Reporter: monk.e.boy
Component: NavigationAssignee: Jan Becicka <jbecicka>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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.