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 57552

Summary: Removing form events also removes user code
Product: guibuilder Reporter: gatgul <gatgul>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description gatgul 2005-04-06 15:59:56 UTC
at one time you enable property events for a corm component. you write code for
that event. 
Sometime later you want to disable the event, but not erase the user written
code for tha event. Older versions asked you if you want to keep, or erase the
user code written under the event. Netbeans 3.6 does not, and erases all user
code in the event. 
Bad News, as i now have missing pieces of code i have to now fetch from backup!
Comment 1 Tomas Pavek 2005-05-13 14:16:36 UTC
We may show a warning message. But note you can still perform undo in form editor.
Comment 2 Jan Stola 2005-10-10 09:48:52 UTC
*** Issue 66313 has been marked as a duplicate of this issue. ***
Comment 3 lmineiro 2006-10-13 19:56:12 UTC
I would suggest having an option for this.
1. Remove (As of today)
2. Keep (For people coming from other IDEs, it works this way on every other RAD IDE I've used (Delphi/
Kylix, Visual Basic, REALBasic).
3. Ask (As suggested in the mailing list)

I wouldn't even consider too much work for such an option but its value from people coming from other 
IDEs -- priceless.