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 57015 - Opening form saved with main-class listener style makes it uncompilable
Summary: Opening form saved with main-class listener style makes it uncompilable
Status: RESOLVED DUPLICATE of bug 41009
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 16:10 UTC by _ tboudreau
Modified: 2005-03-29 09:29 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 _ tboudreau 2005-03-25 16:10:45 UTC
Check out contrib/packager
Open org.netbeans.modules.packager.ui.PackagerCustomizer and make some change
Try to compile the module

The problem is, the form was generated with the listener generation style set to main-class.  When it is 
reopened in the form editor, the code is regenerated as inner-class listeners - but the class definition still 
has it implementing the listener interfaces it formerly had.

Probably the listener generation style the form was generated with should be encoded in the form data 
somewhere...
Comment 1 Jan Stola 2005-03-29 09:29:20 UTC
It is already fixed - the listener generation style is stored in .form file.
Unfortunately old forms don't contain this information - you have to open
the file and change Listener Generation Style property of the form root node.
The listener generation style will be stored in the .form file then.

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