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 115117

Summary: newly created messages are not displayed on project tree if Messages/Interaction node are already expanded to create message
Product: uml Reporter: Peter Lam <petersl>
Component: Diagram SequenceAssignee: Thuy.d Nguyen <thuydn>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 110808    

Description Peter Lam 2007-09-10 06:47:55 UTC
Repro steps:
Scenario #1:
- create a sequence diagram
- expand the sequence diagram interaction node
- create and name 2 lifelines
- create a message between the 2 lifelines
Results: the Messages node under the sequence diagram interaction node does not show up

Scenario #2:
- create a sequence diagram
- create and name 2 lifelines
- create a message between the 2 lifelines
- expand the sequence diagram interaction node
Result: the Messages node is there under the sequence diagram interaction node
- expand the Messages node and the message created from the previous step is there
- create another message between the 2 lifelines
Results: the 2nd message just created is not displayed in the Messages node
Comment 1 Thuy.d Nguyen 2007-09-11 22:47:54 UTC
Just tested this issue on coco and griffin, and the issue is reproducible on both of the releases.
Comment 2 Thuy.d Nguyen 2007-09-13 21:30:17 UTC
Cause:  All the events are blocked during the creation process of a message; hence the project tree is not notified of
any message addition or change in the model.

Fix: Modified code to fire a relationCreated event after a message has been processed to notify all the listeners of the
change.
Comment 3 Thuy.d Nguyen 2007-09-13 21:38:45 UTC
The integration fixes both of the scenarios described above.  Please verify.
Comment 4 Peter Lam 2007-09-15 00:32:52 UTC
I did not include all scenarios in the issue because the general issue here was the refreshing. Now that I verified in
the latest trunk build 20070914 that at least the scanerios listed are working. I tried creating the "Message to Self"
and this message is still now showing up in the Messages node until a refresh.
Comment 5 Thuy.d Nguyen 2007-09-20 18:54:32 UTC
Message To Self is implemented in a separate class; thus the fix for other messages does not apply for Message to Self.
I've added logic to fire relation-created event when Message to Self is added.
Comment 6 Peter Lam 2007-09-25 19:19:40 UTC
verified in instrumented trunk build 200709232115.