Book a Demo

Author Topic: Connector between class and package  (Read 5762 times)

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Connector between class and package
« on: May 15, 2008, 06:40:32 pm »
Hey,
I have a package, which has a class "test" and imports a package "p1". The package "p1" has class "c1". Now I want to model, that "test" extends "c1". I found no proper connector.
E.g. if I try "Generalize"-connector: there is a field with alternatives "import", "dependency", "trace" or "information flow".
If I choose any one, there is no field to choose the class "c1" ("p1" has more than class "c1").
Another way is to link "p1" in my package and connect the classes. But I would have the first way, is there a chance?

Thanks,
leene
« Last Edit: May 15, 2008, 07:01:13 pm by leene »

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Connector between class and package
« Reply #1 on: May 15, 2008, 09:26:02 pm »
In order to establish relation between test and c1 elements you have to connect these two elements directly. Do not connect test with the package containing c1.

In order to connect two elements with generalization connector place them both on a diagram and connect. You can delete them from this diagram afterwards.
Alternatively select an element on a diagram and use Ctrl+I (Set Parents and Interfaces).
Peter