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 115071 - Relationship Discovery toolbar button does not restore message between lifelines
Summary: Relationship Discovery toolbar button does not restore message between lifelines
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Sequence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 22:47 UTC by Peter Lam
Modified: 2007-09-13 22:06 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 Peter Lam 2007-09-07 22:47:11 UTC
Repro steps:
- create a sequence diagram
- create and name 2 lifelines
- create a synchronous message from lifeline1 to lifeline2
- delete lifeline2 from diagram, leaving it in the model
- drag the lifeline2 from project tree to the sequence diagram
- click on the Relationship Discovery toolbar button to restore the message
Result: nothing happens and message is not drawn.
Comment 1 Yang Su 2007-09-10 18:52:06 UTC
Workaround is to close the diagram (save it) and reopen it before invoking "Relationship Discovery".
Comment 2 Yang Su 2007-09-10 19:01:46 UTC
use element XMIID as key to find its corresponding engine. 

/cvs/uml/core/src/org/netbeans/modules/uml/ui/products/ad/diagramengines/MapElementToDrawEngine.java,v  <-- 
MapElementToDrawEngine.java
new revision: 1.3; previous revision: 1.2
Comment 3 Peter Lam 2007-09-13 22:06:48 UTC
verified in build 20070913.