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 218036

Summary: New File wizard showing all file templates in folder
Product: platform Reporter: kreatorye <kreatorye>
Component: TemplatesAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description kreatorye 2012-09-10 03:09:34 UTC
I have developed a new file module and registered 2 contents for template in @TemplateRegistration content={"template1","template2"}. When the module is deployed in IDE, both template1 and template2 appears in New File wizard of Netbeans 7.2. template2 doesn't appear (correct behavior) in Netbeans 7.1.2.
Comment 1 Martin Entlicher 2012-09-10 13:00:02 UTC
And is the appropriate data loader installed in NetBeans 7.2, which makes a DataObject from the two template files?
Are the "template1" and "template2" files parts of one multifile data object?
Comment 2 kreatorye 2012-09-11 10:14:42 UTC
(In reply to comment #1)
> And is the appropriate data loader installed in NetBeans 7.2, which makes a
> DataObject from the two template files?
> Are the "template1" and "template2" files parts of one multifile data object?

template1 and template2 are 2 freemarker templates which the modules uses to create 2 new files based on wizard in the module. In netbeans 7.1.2, the @TemplateRegistration behaviour is correct. It shows only template1 in new file wizard. But in netbeans 7.2, template2 also appears in new file wizard.