Book a Demo

Author Topic: Class Diagram "Related Elements"  and Dependencies  (Read 3381 times)

ea1844

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Class Diagram "Related Elements"  and Dependencies
« on: July 02, 2010, 08:37:04 am »
Hello,

Having reverse engineered code, I notice that when working with a class diagram, there is the option to add related elements (in the context menu when a class is selected). When adding related elements, whilst I get classes that are member variables, super-classes (etc.) of the class I have selected, I don't get those that are parameters or return values of the various operations within the class (i.e. the dependencies, represented by a dotted line). Even when I bring a known dependency into the diagram (i.e. add a class that is a return value of an operation of the class for which I am importing related elements), I cannot find a way to have EA automatically draw the dependency line.

Is there a way to automatically bring in all the related elements that are dependencies and not just associations, generalizations, etc?

Thanks,

Matthew

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Diagram "Related Elements"  and Dependen
« Reply #1 on: July 02, 2010, 03:25:08 pm »
Matthew,

The short answer: NO :-/

So if you want the dependencies (from usage of types in attributes and parameters) (redundantly) documented as UML dependencies you'll have to write something to create those dependencies.

If there are not too many dependencies to add you might also consider to add them manually.
On the community site there are some model search definitions that might serve as an inspiration.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Class Diagram "Related Elements"  and Dependen
« Reply #2 on: July 14, 2010, 11:09:47 am »
There is an option to create dependencies from operation return types and operation parameter types.  EA will not determine if a type is used within a function.