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 240300 - Wrong selection in Java code templates table after sorting
Summary: Wrong selection in Java code templates table after sorting
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: PATCH_AVAILABLE
: 237609 240305 240353 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-11 16:33 UTC by adithyank
Modified: 2014-05-16 08:54 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (245.73 KB, text/plain)
2014-01-11 16:33 UTC, adithyank
Details
screenshot showing wrong code template selection (157.08 KB, image/png)
2014-01-11 16:35 UTC, adithyank
Details
Patch (3.50 KB, application/octet-stream)
2014-01-14 11:15 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adithyank 2014-01-11 16:33:39 UTC
Product Version = NetBeans IDE Dev (Build 201401070002)
Operating System = Linux version 2.6.32-431.3.1.el6.i686 running on i386
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

1. Click Tools > Options > Editor > Code Templates > Java
2. Click table header "Abbreviation" for sorting it
3. After this, click some row in the table
4. You can notice that in "Expanded Text" tab below, expanded text of some other template appears

Possibly some issue with table view index and model index
Comment 1 adithyank 2014-01-11 16:33:49 UTC
Created attachment 143836 [details]
IDE log
Comment 2 adithyank 2014-01-11 16:35:26 UTC
Created attachment 143837 [details]
screenshot showing wrong code template selection
Comment 3 Jiri Prox 2014-01-13 09:01:08 UTC
*** Bug 240305 has been marked as a duplicate of this bug. ***
Comment 4 Jiri Prox 2014-01-14 08:17:34 UTC
*** Bug 240353 has been marked as a duplicate of this bug. ***
Comment 5 Jiri Prox 2014-01-14 11:15:31 UTC
Created attachment 143937 [details]
Patch

Proposed patch
Comment 6 Dusan Balek 2014-01-15 15:10:55 UTC
Fixed in jet-main. Thanks for the patch.

http://hg.netbeans.org/jet-main/rev/bcd3daa2d18c
Comment 7 Quality Engineering 2014-01-18 04:50:44 UTC
Integrated into 'main-silver', will be available in build *201401180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bcd3daa2d18c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #240300: Wrong selection in Java code templates table after sorting - patch applied.
Comment 8 Dusan Balek 2014-05-16 08:54:46 UTC
*** Bug 237609 has been marked as a duplicate of this bug. ***