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 60907 - Separate generated and users code
Summary: Separate generated and users code
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 09:09 UTC by maverick192
Modified: 2012-08-19 07:48 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maverick192 2005-07-13 09:09:58 UTC
The code generated by the gui builder should be separated into one abstract
class with the listener functions as abstract methods. The users code should
then be a subclass. If you do not like inheritance in that way composition would
be equally appropriate.
There are several advantages in this approach: 1. User code can be modified
within any editor without having to worry to modify the generated comments. 2.
Smaller classes (clearer code / easier to modify) 3. Reusability of generated code