Book a Demo

Author Topic: Deep & Shallow Diagram Copy  (Read 5609 times)

jvogt

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • software engr in training
    • View Profile
Deep & Shallow Diagram Copy
« on: September 29, 2003, 10:00:01 am »
I know I have seen this topic floating around and I thought I understood it but in practice I am having a hard time seeing the difference if I paste a diagram using a shallow copy or deep copy. Both instances seem to create exact duplicates of the diagram and create all new elements.

Specifically, I am working on a sequence diagram and, using 'Copy Diagram to Clipboard,' copy a diagram to a different package, using deep or shallow seem to produce identical results.

I am using EA 3.6.644

What am I missing?

Regards,
Jesse

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Deep & Shallow Diagram Copy
« Reply #1 on: October 01, 2003, 11:17:49 pm »
Hi Jesse,

EA copies objects as new, regardless of whether shallow or deep copy is used. So you won't see a difference if your sequence diagram only contains objects.

Elements such as actors and classes however, are either copied as:
1. Links to the original element (shallow copy) or;
2. New (duplicates) of the original element (deep copy)

I hope this explains.

Note: Currently there is no way to copy the objects from one diagram as links to the original object.

Regards,
Ben

jvogt

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • software engr in training
    • View Profile
Re: Deep & Shallow Diagram Copy
« Reply #2 on: October 02, 2003, 09:57:45 am »
Thank you. I finally noticed this once I realize everything on the sequence diagrams were objects.

Regards,
Jesse