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.
Product Version: NetBeans IDE 6.7 Beta (Build 200904242137) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02 System: Linux version 2.6.28-11-generic running on amd64; UTF-8; en_US (nb) There is a very annoying issue when using a navigator on a modified file. 1. Open some long Java file, make sure the Navigator window is opened 2. Scroll approx. to the middle of the file 3. Do some minor modification (type space somewhere) 4. Double-click any method in the Navigator -> You are navigated to the top of the file, not to the method you doubleclicked
It is generated by fix for issue 160478. (see changeset #0871113eeaa3) getOffset method will return 0 offset when scanning in progress. Workaround is to wait a bit after some change made and then navigate to desired method.
passing to source for evaluation, since it is about getOffset from org.netbeans.api.java.source.ui.ElementOpen
Reproducible.
As of RC3, I am still seeing this behavior. This behavior does not appear to be time related. If I have changed the file at all, since opening it, a double-click in Navigator moves to the top of the file. This appear to be related to the Navigator gaining focus. Once the Navigator has had focus for ~1 second, a double-click will work correctly. Try the following: 1. Open some long Java file, make sure the Navigator window is opened 2. Scroll approx. to the middle of the file 3. Do some minor modification (type space somewhere) 4. Single-click any method in the Navigator 5. Wait ~1 second 6. Double-click any method in navigator -> You are navigated to the proper function If the wait (#5) is less than a second, the double click will move to the top of the file. Does the Navigator kick off a scan when it gains focus?
Is there any chance to fix this in 6.7.1? This is EXTREMELY annoying issue...
*** This issue has been marked as a duplicate of 168738 ***