Book a Demo

Author Topic: Package diagram  (Read 5604 times)

bherd

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Package diagram
« on: November 26, 2004, 06:38:19 am »
Hello,

i have a big class diagram and I would like to split it into several smaller parts because of clarity. So I want to create a package diagram, which contains packages of classes belonging together (but the relations from package to package should still be visible).  I already tried to do this but without any success. i created a package within my class diagram and copied the classes into it, but now all relations are gone ... Is there any tutorial or thread concerning this topic or can anybody give me some advice?

Thank you very much!

thomaskilian

  • Guest
Re: Package diagram
« Reply #1 on: November 26, 2004, 08:00:13 am »
If you say "copy" then the behaviour is obvious. A copied object does not have the relations from it parent. Instead you should move the original classes to packages. In that case all relations are preserved and will be seen in diagrams.

bherd

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Package diagram
« Reply #2 on: November 29, 2004, 02:11:49 am »
Thank you for your reply. I tried to do so but without success. Within my class diagram I created packages and moved the classes into them. Now I have a package containing the classes, but the original classes are still visible at their  original places. How can I define that the classes now shall be replaced by the package symbol?

Thank you!

thomaskilian

  • Guest
Re: Package diagram
« Reply #3 on: November 29, 2004, 07:26:35 am »
You can't.  The diagrams still contain the classes but with an additional informtion about the different source package. If you want to show the package, just drag it onto the diagram. The package contents (your classes) will then be shown as package icon in a concise  format.  You have to delete the classes from the diagram explicitly (this will not delete the classes themself).

bherd

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Package diagram
« Reply #4 on: November 30, 2004, 05:39:12 am »
OK, thank you very much, now it works really well!