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.
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".
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)
User: Jiri Rechtacek <email@example.com>
Log: #152973: Template rename causes it to disappear
The fix has been ported into the release65_fixes repository.
verified in 65patch2