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.
1. IDE main menu -> Tools -> Templates. 2. Select a template. 3. Rename the template. 4. Close the dialog. 5. Create a project which is able to use the changed template. 6. Right-click Source Packages and select New... Result: the renamed template doesn't exist anymore.
Wrong component.
What build?
The last FCS build. Detailed system info: Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Because I had fixed similar issue before, I tried it with java class template and it worked for me. Please, write down really exact steps how to reproduce. Otherwise I tend to close it as "worksforme". http://hg.netbeans.org/core-main/diff/7893ff771dee/favorites/src/org/netbeans/modules/favorites/templates/TemplatesPanel.java
It's still reproducible in the last development build. 1. Create a Java Application project. 2. Right-click Source Packages and select the New submenu. Behold that Java Class... menu item is available. 3. IDE main menu -> Tools -> Templates. 4. Select a template: Java -> Java Class. 5. Rename the template (press F2 and type some new name). 6. Close the dialog. 7. Create a Java Application project. 8. Right-click Source Packages and select the New submenu. Now Java Class... menu item is unavailable.
It is not surprise that if you rename "Java Class" template to something else there is no more "Java Class" in the submenu. I tried your steps and when I renamed the Java Class template to Class1.java, it is present in Java category in the new file wizard. In the popup submenu are shown only priviledged templates and last used.
In my opinion, if a template is "privileged", it should continue being privileged after renaming. It still does the same, doesn't it?
fixed in core-main/rev/a678bf1ffb1b
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a678bf1ffb1b User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #152973: Template rename causes it to disappear
Verified
The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/7b3faa35c6e9
verified in 65patch2