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 143108 - copy paste container widget does not work
Summary: copy paste container widget does not work
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks: 83789
  Show dependency tree
 
Reported: 2008-08-06 22:32 UTC by Yang Su
Modified: 2008-09-15 22:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
copy & paste composite state to same diagram (115.46 KB, image/png)
2008-08-29 23:56 UTC, Peter Lam
Details
copy & paste composite state to different diagram (50.54 KB, image/png)
2008-08-29 23:57 UTC, Peter Lam
Details
result of copy & paste partition (28.91 KB, image/png)
2008-08-30 00:08 UTC, Peter Lam
Details
copy/paste container - composite state (67.07 KB, image/png)
2008-09-11 22:23 UTC, Peter Lam
Details
copy/paste container - partition (71.60 KB, image/png)
2008-09-11 22:24 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Su 2008-08-06 22:32:48 UTC
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.
Comment 1 Yang Su 2008-08-14 22:26:13 UTC
container widget(package, activity group) copy/paste logic was implemented in 
http://hg.netbeans.org/uml-main/rev/bdf793319366
Comment 2 Yang Su 2008-08-26 19:48:01 UTC
changeset 7af710520e6f in uml-main
details: http://hg.netbeans.org/uml-main?cmd=changeset;node=7af710520e6f
Comment 3 Trey Spiva 2008-08-27 18:25:49 UTC
Reviewed
Comment 4 Peter Lam 2008-08-29 23:53:06 UTC
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.
Comment 5 Peter Lam 2008-08-29 23:54:53 UTC
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.
Comment 6 Peter Lam 2008-08-29 23:56:37 UTC
Created attachment 68683 [details]
copy & paste composite state to same diagram
Comment 7 Peter Lam 2008-08-29 23:57:07 UTC
Created attachment 68684 [details]
copy & paste composite state to different diagram
Comment 8 Peter Lam 2008-08-30 00:07:47 UTC
Attached is the screenshot for copy/paste result of partition. 
It seems to work ok for package though.
Comment 9 Peter Lam 2008-08-30 00:08:43 UTC
Created attachment 68686 [details]
result of copy & paste partition
Comment 10 Yang Su 2008-09-03 23:25:05 UTC
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
Comment 11 Trey Spiva 2008-09-05 18:18:34 UTC
Reviewed
Comment 12 Peter Lam 2008-09-11 22:21:12 UTC
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.
Comment 13 Peter Lam 2008-09-11 22:23:10 UTC
Created attachment 69687 [details]
copy/paste container - composite state
Comment 14 Peter Lam 2008-09-11 22:24:18 UTC
Created attachment 69688 [details]
copy/paste container - partition
Comment 15 Yang Su 2008-09-12 00:39:40 UTC
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
Comment 16 Trey Spiva 2008-09-12 18:25:09 UTC
Reviewed
Comment 17 Peter Lam 2008-09-15 22:38:27 UTC
verified in build 20080915.