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.
build 20080709 Clicking on the Discover Relationship toolbar button does not restore the containment link between package and an element or class and class. - create a class diagram - create a package and a class - create a containment between the package and the class - delete the containment link from the diagram - click on the Discover Relationship toolbar button Result: nothing happens
does not restore role binding between design pattern and roles as well.
comment link is also not restored.
*** Issue 139499 has been marked as a duplicate of this issue. ***
i see the containment link is deleted from the model when it should have been deleted only from diagram. So RD doesn't find anything. For role binding i wasn't able to reproduce.
in which build do you see removal of containment from model when shouldn't? it was fixed a week ago.
Just tried on build 20080714 and I still can reproduce the 3 different things listed here. - role binding - nested/containment link - comment link For role binding, here's the scenario: - create a design pattern - create a role of any type - create a role binding between the role and design pattern - delete the role binding from the diagram only - click on Discover Relationship button As for nested/containment link, deleting the link from the diagram doesn't move the class or element out of the package from the project tree but clicking on Discover Relationship button doesn't restore the link on the diagram.
I also was not able to reproduce the design pattern/role binding issue.
fixed. http://hg.netbeans.org/uml-main/rev/acae29f27ab7 again I was not able to reproduce the binding part.
I still can reproduce the binding problem not being discovered in build 20080813 from the binding scenario in the comment.
I followed the state steps and was not able to reproduce the problem. What is selected after you delete the relationship? When the dialog appears do you check the check box?
I didn't check the checkbox. Nothing's selected after the binding was deleted. see attached video.
Created attachment 67324 [details] discover relationship on binding
As far as I can tell I am doing the same thing as you. Check out the video that I am uploading.
Created attachment 67325 [details] Using the same actions, and things are working correctly.
Created attachment 67480 [details] Relationship discovery succeeded, but unable to save the diagram.
That is strange I did not get the exception.
It is there every time for me. Maybe you need somebody to take a look on windows. Thanks, George
George your exception looks to be the same as the Issue 143995.
Reviewed
verified in build 20080815. All problem listed in this issue are now working.
Are separate issues filed for thing not working?
In this case yes. The exception had nothing to do with the relationship discovery problem. It just happen that after you did relationship discovery you did another action that uncovered the exception. It was the save all action that caused the exception not the relationship discovery. Also the exception issue was actually reported a day before it was noted in this issue. Therefore a new issue was opened for the exception reported in this issue, it was already reported because it was a more general usecase. BTW the exception issue has already been integrated.
Sorry. I misread Peter's previous comment.