Book a Demo

Author Topic: reverse engineer diagrams not only classes  (Read 4468 times)

m1m1

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
reverse engineer diagrams not only classes
« on: April 26, 2005, 08:31:05 am »
hi,

is it possible to reverse engineer diagrams instead of classes only from java (via eclipse link)?
i know this is not trivial but it should be possible to generate, e.g., class diagrams from the java inheritance hierarchy or sequence diagrams by analyzing the call sequence trees.
does anybody know if this is or will be implemented in EA?
(other tools do this to varying extent...)

thanks a lot
matthias

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: reverse engineer diagrams not only classes
« Reply #1 on: April 26, 2005, 11:48:31 am »
You can add classes from source code by right clicking a blank spot in your diagram and selecting:  Import from source file(s)->Java

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: reverse engineer diagrams not only classes
« Reply #2 on: April 26, 2005, 03:29:11 pm »
Depending on your import method EA will create class diagrams when importing java source code.  As was pointed out, selecting "Import from source file(s)->Java" will add them to a diagram.

The other alternative is to do the directory level import that I assumed you did.  There is an option there to add the classes to diagrams.  If you do that then EA will create a diagram for each package and add classes to it.  Those diagrams will then be closed though and you will need to open them from the project browser (View | Project Browser or Alt+0) to look at them again.

If you want diagrams that show relationships between different packages you will have to create them yourself.  A useful feature for this is "Insert Related Elements" from the context menu of a class on a diagram.

No other diagrams can be created at this stage though.

Simon

rafassmail

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: reverse engineer diagrams not only classes
« Reply #3 on: October 07, 2005, 01:55:17 am »
Hi,

simonm said...
"If you want diagrams that show relationships between different packages you will have to create them yourself.  A useful feature for this is "Insert Related Elements" from the context menu of a class on a diagram. "
Is not possible the automaticaly creation of relationships between imported packages?.
???

Thanks
Rafa
« Last Edit: October 07, 2005, 01:56:40 am by rafassmail »

thomaskilian

  • Guest
Re: reverse engineer diagrams not only classes
« Reply #4 on: October 07, 2005, 03:37:15 am »
Possible indeed - in theory. But in practice EA won't do so. You might opt for a that feature in Suggestions.

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: reverse engineer diagrams not only classes
« Reply #5 on: October 13, 2005, 01:44:52 pm »
I think that the relationships ARE created, only that the diagram is not automatically created. But if you create a diagram and drag-and-drop two packages on it, the relationship between them will be shown.

Bruno

Quote
Hi,

simonm said...
 "If you want diagrams that show relationships between different packages you will have to create them yourself.  A useful feature for this is "Insert Related Elements" from the context menu of a class on a diagram. "
Is not possible the automaticaly creation of relationships between imported packages?.
 ???

Thanks
Rafa


thomaskilian

  • Guest
Re: reverse engineer diagrams not only classes
« Reply #6 on: October 14, 2005, 12:09:50 am »
Bruno,
I think this is related to this thread. You are right with your statement in resepect to not showing relations. But obviously the dependency is not created during import (pretty sure that Paolo proofed that).
« Last Edit: October 14, 2005, 12:11:46 am by thomaskilian »

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: reverse engineer diagrams not only classes
« Reply #7 on: October 14, 2005, 06:17:19 am »
Ouch, sorry! Apparently the couple of months I have been away managed to purge my memory :-(

Quote
Bruno,
I think this is related to this thread. You are right with your statement in resepect to not showing relations. But obviously the dependency is not created during import (pretty sure that Paolo proofed that).