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 17587

Summary: Code Generation properties do not fire changes
Product: guibuilder Reporter: Jiri Skrivanek <jskrivanek>
Component: CodeAssignee: Tomas Pavek <tpavek>
Status: CLOSED FIXED    
Severity: blocker CC: dstrupl
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2001-11-13 12:12:50 UTC
Tested in build 20011112-2214.

- open form examples/advanced/MemoryView
- open Properties window for the text JLabel
- open second Properties window for the text JLabel
- switch to Code Generation tab and change some property
- value should be changed in second window but it doesn't
Comment 1 David Strupl 2001-11-13 14:04:26 UTC
The node has to fire property change in order for the property sheet
to update (if there are two property sheets opened).
Comment 2 Tomas Pavek 2001-11-13 16:16:58 UTC
Node.firePropertyChange(null, null, null) is not enough?
Comment 3 David Strupl 2001-11-13 16:30:24 UTC
Should be enough but
1. please don't do it (it should force the property sheet to refresh
completely and it is very probable that it will blink) - please
supply at least the first parameter

2. do you really do it for properties jirka is talking about?if yes -
than it is really strange ...
Comment 4 Tomas Pavek 2001-11-13 16:38:51 UTC
Yes, currently firePropertyChange(null, null, null) is called for 
these properties. I've tried to change it for "variableName" property
(providing property name and the values) and it works then. So I can 
fix it this way, but...
Comment 5 Tomas Pavek 2001-11-13 16:44:42 UTC
Well, I have mystified you a bit. No firing method is currently 
called for variableName property. But even if I change it to call 
firePropertyChange(null, null, null), it doesn't work.
Comment 6 Tomas Pavek 2001-11-14 17:04:50 UTC
I've made the fix mentioned above.
Comment 7 Marian Mirilovic 2001-11-15 14:10:43 UTC
verified in [nb_dev](20011115)