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 125192 - Add PropertyChangeSupport support
Summary: Add PropertyChangeSupport support
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 3 votes (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-14 08:09 UTC by rcasha
Modified: 2010-11-18 12:16 UTC (History)
0 users

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 rcasha 2008-01-14 08:09:47 UTC
When adding setters (either via Encapsulate Field or Generate Setter), optionally add a call to firePropertyChange.
Possibly add the call commented out, then the user can uncomment it if desired.
Comment 1 rcasha 2008-06-25 14:38:32 UTC
fixed in 6.1
Comment 2 gwampach 2008-06-26 08:56:57 UTC
I'm using NetBeans IDE 6.1 (Build 200804211638) and using 'Insert code...' -> 'Generate Setter...' doesn't allow me to
choose to add a call to firePropertyChange.  It's the same using 'Refactor' -> 'Encapsulate Field...'.

However using 'Insert code...' -> 'Add property...' allow me to add a call to firePropertyChange.

I think it should be possible to have this option in 'Generate Setter...' and in 'Encapsulate Field...' too.

Comment 3 exhuma.twn 2010-11-18 12:16:21 UTC
The same would be useful for "Create Entity Classes from Database". When creating a default DB application using the wizard, the propertychangesupport is generated. However, later adding a new table with entity to the project will not create the required code and it has to be entered manually.