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.
In the latest 6.5 build, 1. copy pasting package widget with contained elements does not duplicate inner contained widgets. 2. copy pasting activity partition or composite state widget does not preserve swimming lane orientation, inner widget properties such as size, position, color, font etc.
container widget(package, activity group) copy/paste logic was implemented in http://hg.netbeans.org/uml-main/rev/bdf793319366
changeset 7af710520e6f in uml-main details: http://hg.netbeans.org/uml-main?cmd=changeset;node=7af710520e6f
Reviewed
verified in build 20080829. not sure if this issue is about copy/paste containers to the same diagram. copied and pasted the composite state container results in that the contained element get's displayed outside the container. See attached screenshot.
Pasting to a different diagram shows a clearer picture about the result. The region orientation was changed from horizontal to vertical, the 2nd region is not showing but the region label is there. See the 2nd screenshot.
Created attachment 68683 [details] copy & paste composite state to same diagram
Created attachment 68684 [details] copy & paste composite state to different diagram
Attached is the screenshot for copy/paste result of partition. It seems to work ok for package though.
Created attachment 68686 [details] result of copy & paste partition
missed the case of cloning composite widget with non-default layout orientation (vertical layout of compartments) changeset 77816d1eb3a5 in uml-main details: http://hg.netbeans.org/uml-main?cmd=changeset;node=77816d1eb3a5
verified in build 20080911. Content, orientation, properties, etc. seem to be copied and pasted properly to the same diagram for both partition and composite. However, when pasting to a different diagram, extra links pointing from/to no where are in the diagram as well. See attached screenshots for both partition and composite state.
Created attachment 69687 [details] copy/paste container - composite state
Created attachment 69688 [details] copy/paste container - partition
good catch. some more logic to take care of edges during cloning. changeset 5a48aa522443 in uml-main details: http://hg.netbeans.org/uml-main?cmd=changeset;node=5a48aa522443
verified in build 20080915.