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 140416 - Property pane is not refreshed when new operator is selected
Summary: Property pane is not refreshed when new operator is selected
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: pvarghese
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-16 21:28 UTC by jlautz
Modified: 2008-09-16 15:44 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 jlautz 2008-07-16 21:28:36 UTC
Seen with Java CAPS 6 with patch 2 applied to NB 6.1 and IEP *.nbms from Build080711 (July 11).

1. Open a valid IEP process document in the IEP design view.

2. Open the Properties pane.

3. Select an operator (doesn't matter what), and change the name of the operator in the Properties pane.

4. Select another operator -- notice that the Properties pane contains the same values.
Comment 1 pvarghese 2008-07-28 18:00:07 UTC
Could not reproduce the behavior as outlined in the steps. The bug noticed is as below.
1. Create a new iep process.
2. Drag and drop any two operators to the canvas.
3. Click on one operator and in the properties pane change the name of the operator. Ex from "StreamInput0" to
StreamInput1". Observe the name changes in both the properties pane and in the canvas.
4. Now click on the other operator in the canvas, observe that the properties pane changes to show the properties of the
selected operator. 
5. Now click on the properties pane and notice that as soon as the properties pane is clicked it reverts back to the
other StreamInput operator's properties.
6. This is the same for any newly added operators into the canvas, clicking on the operator changes the properties pane
to the selected operator's properties, but clicking on the properties pane, changes it back to the properties of the
first changed operator namely "StremaInput" in this case.

Dev Notes:
This is due to the changes made to refersh the properties pane of an operator, after any of it properties has been
changed by the user in the operator's pop up dialog.
In the class /org/netbeans/modules/iep/editor/designer/EntityNode.java
the refreshProperties() function is called as part of the event generated when an user changes a value of the property
in the properties pane and the policy to set the node on the last active TopComponent which in this case happens to be
the properties pane (NbSheet). All subsequent clicks on the properties pane retrieves this node set on the
activatedNodes list of the NbSheet and hence reverts back to the first changed operator. 

Fix: Instead of setting the current changed node on the NbSheet as described above, will use the WindowManager to update
the UI and the properties pane would refresh with the changed values from the backing model. 
It may not be the most efficient way to do it(it is assumed that the event mechanism will refresh only if there is a
change in the backing model.).
Comment 2 pvarghese 2008-07-28 18:26:17 UTC
fixed 
Comment 3 jlautz 2008-09-16 15:44:57 UTC
Verified on Windows Vista with NB 6.1 + Patch 3 and IEP *.nbms installed from ojc build 080909.