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.
<!-- ACTUAL CHANGES BEGIN HERE: -->
<changes>
<change id="org.netbeans.api.templates.TemplateRegistration.targetName">
<api name="loaders"/>
<summary>Introduce targetName for templates.</summary>
<version major="7" minor="56"/>
<date day="21" month="1" year="2014"/>
<author login="jhavlin"/>
<compatibility addition="yes" binary="compatible" source="compatible"
semantic="compatible" deprecation="no" deletion="no"
modification="no"/>
<description>
<p>
By default, files creates from templates have name
preinitialized to "new" + template name.
TemplateRegistration.targetName can be used to customize how
the file name will be preinitialized.
</p>
</description>
<class package="org.netbeans.api.templates" name="TemplateRegistration"/>
<issue number="239028"/>
</change>
<change id="org.openide.loaders.DataFolder.SortMode.EXTENSIONS">
<summary>Introduces SortMode for sorting by file extension.</summary>
Manifest-Version: 1.0
OpenIDE-Module: org.openide.loaders
OpenIDE-Module-Specification-Version: 7.55
OpenIDE-Module-Specification-Version: 7.56
OpenIDE-Module-Localizing-Bundle: org/openide/loaders/Bundle.properties
OpenIDE-Module-Provides: org.netbeans.modules.templates.v1_0
OpenIDE-Module-Layer: org/netbeans/modules/openide/loaders/layer.xml
* @since 7.46
*/
boolean requireProject() default true;
/**
* Default (pre-filled) target name for the template, without extension. May
* use the usual {@code #key} syntax for localization or branding.
*
* @since 7.56
String targetName() default "";
}
f.stringvalue("templateCategory", sb.toString());
f.boolvalue("requireProject", t.requireProject());
if (!t.targetName().trim().isEmpty()) {
f.bundlevalue("targetName", t.targetName()); //NOI18N
f.write();