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 240353 - Removing Code Template Test Case Failed
Summary: Removing Code Template Test Case Failed
Status: RESOLVED DUPLICATE of bug 240300
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-12 18:19 UTC by wjdhamilton
Modified: 2014-01-14 08:17 UTC (History)
0 users

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 wjdhamilton 2014-01-12 18:19:02 UTC
Attempting to remove the new code template from previous test (key "abb") has no effect
Comment 1 wjdhamilton 2014-01-12 18:25:32 UTC
It was removable after I had closed and reopened the options dialogue
Comment 2 Jiri Prox 2014-01-13 14:55:48 UTC
I cannot reproduce this problem? 
Can you provide exact steps to reproduce? 
(did you change table ordering before deleting template?)
Thanks
Comment 3 wjdhamilton 2014-01-13 18:47:00 UTC
Hi Jiri

Steps to reproduce, using TS_73_JavaEditorSampleProject:

1. Open JavaEditor.java, and corrected field error.
2. Specify new code template called "Test". Expanded text equals:
"//test the template with tab"
3. Exit options with apply/OK
4. Template expands correctly
5. Attempt to delete template, works fine. 

However, if you repeat as above but add the following steps:

6. Click "Expanded Text" to reorder by expanded text (as per your note)
7. Click delete

Expected: delete test
Actual: deletes 2ar
Comment 4 Jiri Prox 2014-01-14 08:17:34 UTC
Thanks for info, it's another effect of issue 240300

*** This bug has been marked as a duplicate of bug 240300 ***