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

Summary: Wrong selection in Java code templates table after sorting
Product: java Reporter: adithyank
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: -Silver-, jiriprox, oyviste, wjdhamilton
Priority: P3 Keywords: PATCH_AVAILABLE
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
screenshot showing wrong code template selection
Patch

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. ***