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.
[dev-200205170100, JDK 1.4.0, MDI] The combo-box in the Java editor toolbar occasionally doesn't correspond to the position of the text cursor within the displayed source file. Actually there seem to be two (possibly related) problems: 1. When the file is opened for the first time in the editor, the cursor is located at the very beginning of the file at position 1:1. At that moment, the combo box displays '<no selection>'. When the cursor is moved anywhere within the class body, the selection is updated and the '<no selection>' item disappears from the combo list. Desired behavior: either the '<no selection>' item shouldn't be displayed at all, or it shouldn't disappear from the list. 2. When the cursor is placed on a valid Java element (constructor, method, or member variable definition), the combo displays the id of the element. When the cursor is moved in front of the class definition via mouse, the combo isn't updated and still displays the recently selected id. Desired behavior: the combo selection should be updated to reflect the change of the cursor location.
*** Issue 24172 has been marked as a duplicate of this issue. ***
Problem #2 fixed in trunk. When user put the cursor outside of the class, combo selection is updated to <no selection>. Problem #1 cannot be fixed, since we need to display something in combo when selection is outside of class, yet we don't want user to expand combo and select <no selection> item.
Problem #2 can be worked around by opening the drop-down list of members, closing it, then re-opening it.
Editor combo works fine now [200210090100]
Resolved for 3.4.x or earlier, no new info since then -> closing.