Book a Demo

Author Topic: association across packages  (Read 2507 times)

wharley

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
association across packages
« on: June 14, 2006, 03:58:20 pm »
I have a (Java) interface X in package a, and implementation class Y in b.  That is, public class b.Y implements public interface a.X.

In EA, I want to read this source code in (via source code engineering), and have it produce a diagram showing both b.Y and a.X, with the appropriate association arrow between them.

So far, I've been able to get it to draw the associations between objects in the same package, but not across different packages.  Is there some way to make this work?  (Obviously, my actual case has dozens of objects, not just one, and the inheritance hierarchy is much more complex; so I don't want to do it by hand.)

Thanks!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: association across packages
« Reply #1 on: June 18, 2006, 03:22:00 pm »
EA has probably1 created the association, but EA can't really infer what diagrams are significant enough to create.  It's simple enough in your example, but with your dozens of classes and complex inheritance hierarchy it's no longer simple.

That just means that you'll need to do some manual work.  But EA can help.  If you right click on a class on a diagram you can select Add | Insert Related Elements.  This allows you to automatically add elements to the diagram that are of interest.  The Relationships and Hierarchy windows may also help you.

1 I am only specifying probably because I haven't actually seen your model.