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 23713 - Combo in the Java editor toolbar doesn't update properly
Summary: Combo in the Java editor toolbar doesn't update properly
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords: UI
: 24172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-17 17:54 UTC by Jan Chalupa
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 Jan Chalupa 2002-05-17 17:54:50 UTC
[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.
Comment 1 Jan Becicka 2002-06-25 16:07:08 UTC
*** Issue 24172 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Hurka 2002-06-28 15:58:10 UTC
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. 
Comment 3 mfatafnm 2002-10-09 17:42:17 UTC
Problem #2 can be worked around by opening the drop-down 
list of members, closing it, then re-opening it.
Comment 4 Jan Becicka 2002-10-14 14:02:58 UTC
Editor combo works fine now [200210090100]
Comment 5 Quality Engineering 2003-07-01 13:18:32 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.