Product Version: NetBeans IDE 6.0 RC2 (Build 200711171200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: SunOS version 5.11 running on x86; ISO646-US; en (nb)
When I tried to add new property, the selected value will be added.
It should be blank because I do not put any value in "New Property" dialog.
Here is the step to reproduce.
1. "Open" Bundle.properties in a project
2. Property Editor is opened
3. Put cursor on Value field of existing properties.
4. Click "New Property" button
5. Add something to "Key" field, leave Value field as blank.
6. Click OK button
Now new property is added into table. Key is correct but
Value is not blank, selected Value of existing field will be added.
It should be blank.
"Comment" field will be also re-used in newly added property.
Confirmed (dev. build 071106, JDK 1.5.0_13, Linux, x86, 32-bit).
*** Issue 130569 has been marked as a duplicate of this issue. ***
*** Issue 123353 has been marked as a duplicate of this issue. ***
*** Issue 123806 has been marked as a duplicate of this issue. ***
*** Issue 130228 has been marked as a duplicate of this issue. ***
There is additional information about this issue in bug report #130228.
*** Issue 131470 has been marked as a duplicate of this issue. ***
*** Issue 132139 has been marked as a duplicate of this issue. ***
This bug is caused by contention of two routines manipulating with cell selection of the table.
One routine is called every time the cell selection is changed and its goal is to correct cell selection if the
selection should be cleared - in this case, it corrects the selection such that the cell corresponding to the last
selected bundle entry (key/value pair) is selected.
The second routine just selects the cell corresponding to the value just added by the user.
Because addition of a new key/value pair comprises change of cell selection, both of these routines are called when the
user adds a new entry which caused the symptoms described in this bug report.
The fix is quite simple - it temporarily disables the selection-correcting routine for the period of time when a new
property is being added to the resource bundle. The result is that this correction routine does not override the
selection determined by the routine for addition of a new bundle entry.
is ready for patch1
Product Version: NetBeans IDE Dev (Build 20080423054047)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Merged into release61_fixes repository
date: Thu Apr 17 22:26:42 2008 +0200
summary: fixed bug #122347 - "value of new property is taken from the currently selected entry"
verified on patch 1