Book a Demo

Author Topic: Merge elements  (Read 3834 times)

Torsten Binias

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Merge elements
« on: June 13, 2008, 12:58:52 am »
Hi there,

does EA offer a function to merge two classes?
By mistake I modeled the same class two times. So in some diagrams I used the one class and in other diagrams the other class. Now I want EA to merge these two classes and to replace the original classes with the merged class in all diagrams.

Best regards,
Torsten

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Merge elements
« Reply #1 on: June 14, 2008, 12:16:01 am »
I do not know about such a feature. There is a workaround:
1. Put both classes in a temporary diagram, from context menu of one element (lets call is "old") chose Add | Related elements...
2. Relink all connectors to the other class.
3. For the  old class use Find | In diagrams... (Ctrl+U)
4. Put new class in all diagrams listed.
5. Delete old class from repository.
Jan 'Bary' Glas

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Merge elements
« Reply #2 on: June 16, 2008, 08:39:01 am »
You also need to check all instances of the classes.

When you have sequence diagrams containing the class you are removing it becomes more complex.  Because connectors on sequence diagrams only occur on the one diagram.  In that case you'll need to move the connectors for each diagram.

I believe that communication diagrams may move the communication messages anyway when you move the containing association.