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 95855 - Generated DataNode Code is Invalid (Cannot Instantiate Template)
Summary: Generated DataNode Code is Invalid (Cannot Instantiate Template)
Status: RESOLVED DUPLICATE of bug 91521
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 22:47 UTC by tomwheeler
Modified: 2007-02-19 19:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch to change visibility of constructor in generated DataNode (896 bytes, patch)
2007-02-16 22:49 UTC, tomwheeler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tomwheeler 2007-02-16 22:47:14 UTC
Using the wizards in NetBeans 6.0 milestone 6 IDE, I added support for a new
file type to a module in my suite.  I found that I was unable to create a new
file based on the template in the generated code; specifically the Next button
in the New File Wizard was disabled.

You can reproduce this in NB6 M6 IDE as follows:

1.  Create a new suite built on the NB6m6 IDE as a platform

2.  Create a new module

3.  Follow the 'New File Type' wizard to add support for "Foo" files
with a .foo extension

4.  Run the suite and create some type of project

5.  In that new project, try to create a new Foo file using the
template created in step 3.  The "next" button doesn't work.

I found the problem by using the New File Wizard in NB 5.5 and comparing the
generated code.  The DataNode generated in the NB6 version has an extra
constructor, but this has default visibility.  Changing that constructor to
public solves the problem.
Comment 1 tomwheeler 2007-02-16 22:49:03 UTC
Created attachment 38635 [details]
patch to change visibility of constructor in generated DataNode
Comment 2 Jesse Glick 2007-02-19 19:58:05 UTC
Actually not a problem with the template. BTW before reporting bugs it is a good
idea to check against a current development build.

*** This issue has been marked as a duplicate of 91521 ***