Book a Demo

Author Topic: How do I make a Top-Level Class Diagram?  (Read 5043 times)

KevM

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How do I make a Top-Level Class Diagram?
« on: March 13, 2008, 02:27:23 am »
I'm new to EA. I can import my code, but EA makes seperate and distinct class diagrams on a per package basis. I want the relationships between packages to be shown. for a structure:
+--Application
|
+-- GUI
|
+-- Events

A class diagram for Application, GUI, Events is made. How do I make a class diagram that shows all three on the same diagram?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How do I make a Top-Level Class Diagram?
« Reply #1 on: March 13, 2008, 12:42:04 pm »
EA won't do it for you.  (This kind of diagram quickly becomes unwieldy on non-trivial projects)

You can either do it manually or write an automation client/addin to do it for you.

Matt

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Solutions Reality
Re: How do I make a Top-Level Class Diagram?
« Reply #2 on: March 13, 2008, 10:06:19 pm »
Can I suggest that you have a look at TimeArchitect http://www.timearchitect.net ?

TA offers a lot more features than Time and Project management extensions to EA.  One of the features is the ability to move elements around EA very easily or just copy them to a different diagram!

The way I would do what you are trying to do is as follows:
  • Create a top level package where you will do your import to.
  • Import your code into this package
  • Add a diagram to this package called 'All Classes' or whatever you prefer
  • Select this top level package in Project Browser
  • Right Click on the Package
  • Select Add-In > Time Architect > Draw Gantt Chart
  • Check 'Include Child Packages'
  • Click 'Get Gantt Chart - Element View'
  • TA will draw a fairly uninteresting Gantt chart at this point (that's OK, you want the data behind it...)
  • Click on Grid Mode (this is the icon to the left of the Help (?) Icon
  • Click the filter in the Type Column and select Class
  • Click Select all (left most icon under the grid)
  • Click Move Icon (last but 1 icon under the grid (blue 4 way arrow)
  • Now find your import package in the tree view
  • Click on it
  • In the Copy to diagram list check 'All Classes' (or whatever you called it)
  • Check copy to diagram only
  • Optionally check auto layout diagram
  • click OK
  • TA will now copy all your elements onto that 1 diagram!


It may seem like a number of steps - but is actually really quick once you have done it a couple of times!

There is a fully functional 30 day trial - so give it ago - it will do what you need it to do and much more!

[/list]

KevM

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How do I make a Top-Level Class Diagram?
« Reply #3 on: March 14, 2008, 02:19:00 am »
Yes, that did exactly what I wanted!  Thank you so much.

As you said, there are a lot of steps, but they are very simple steps. You instructions were flawless. I really appreciate your help.

Kind regards,
Kevin