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 184275

Summary: Too many form templates
Product: guibuilder Reporter: Jaroslav Tulach <jtulach>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Picture of the problem
The .form files are still there (with no description)

Description Jaroslav Tulach 2010-04-15 13:04:49 UTC
Created attachment 97447 [details]
Picture of the problem

While working on bug 168669 I noticed that if java.kit is enabled, but form.kit is not (and ergonomics are on), then the list of GUI related templates is long. Each entry is duplicated (one for .java, one for .form).

The fix is to assign the <attr name="template" boolvalue="true"/> to .java files only, not to .form ones.
Comment 1 Jaroslav Tulach 2010-04-15 13:31:22 UTC

*** This bug has been marked as a duplicate of bug 183516 ***
Comment 2 Jan Stola 2010-04-16 12:26:26 UTC
This issue doesn't seem to be a duplicate of issue 183516 (that doesn't seem to be about templates at all) => reopening.
Comment 3 Jan Stola 2010-04-16 12:27:31 UTC
Created attachment 97521 [details]
The .form files are still there (with no description)
Comment 4 Jan Stola 2010-04-16 12:28:26 UTC
Yardo, the fix suggested by you doesn't work. When I remove
<attr name="template" boolvalue="true"/>
from the .form files then they still appear in the New File wizard. The only difference is that no Description is shown for them (when they are selected). See the attached screenshot.

So, do you have another suggestion how to fix the issue or is the described behaviour a problem of the New File wizard?