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 - New File wizard showing all file templates in folder
Summary: New File wizard showing all file templates in folder
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Templates (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-10 03:09 UTC by kreatorye
Modified: 2012-09-11 10:14 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 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.