Book a Demo

Author Topic: Reverse Engineering Source Code  (Read 4439 times)

mitila

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Reverse Engineering Source Code
« on: January 06, 2005, 09:49:39 am »
I am evaluation your Enterprise Architect 4.5 for my company.
 
I have been given the assignment of making class diagrams for my current Java project.  
 
I went into project/source code engineering/import source directory and it went thru a bunch of screens looking like it was importing all my java (jsp) files.  THen it came back with a blank development screen.  What do I do next, I thought I would be able to look at the class diagrams it created.
 
Please Help, this prodct could be very helpful

thomaskilian

  • Guest
Re: Reverse Engineering Source Code
« Reply #1 on: January 07, 2005, 12:34:55 am »
Actually EA tries to import .java files. If you like to have .jsp instead you have to configure Tools/Options/Generation/Java (I'm not a hacker though. Maybe jsp is not java?)

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Reverse Engineering Source Code
« Reply #2 on: January 07, 2005, 01:31:05 am »
Thomas: JSP is to Java as ASP is to VBScript/JavaScript.
« Last Edit: January 07, 2005, 07:15:56 am by mikewhit »

mitila

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse Engineering Source Code
« Reply #3 on: January 07, 2005, 04:43:01 am »
The question didn't have to do with JSP files (I put that in brackets because I wasn't sure if you also reverse engineered that as well).  My question had to with the fact that I do the reverse engineering of my java code and it goes thru the process but when it comes back, none of the reverse engineered classes show up, the directories are there but everything is blank.

Ihari

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse Engineering Source Code
« Reply #4 on: January 08, 2005, 01:16:22 am »
Quote
... it goes thru the process but when it comes back, none of the reverse engineered classes show up...


Isn't it that the diagrams just show up in a different place than expected ? I am new to EA (past hour), did import a VB.NET project a few minutes ago and, similarly, saw nothing showing up after a long and visible process.

I wanted to see the class diagrams and kept looking in the Logical View folder.

In fact EA imported the codes into the *Use Case* view and replicated there as folders and subfolders the root directory of my code and its subdirectories.

Hope this helps.

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Reverse Engineering Source Code
« Reply #5 on: January 08, 2005, 11:51:29 pm »
true, EA tend to impot diagrams to "use case" of "logical model" not selected.

after you get used to it you stop making mistakes.

also if JSP is not close enough to java (and even if it is) EA (and other java modeling tool) might not recognize all code properly.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverse Engineering Source Code
« Reply #6 on: January 13, 2005, 02:30:45 pm »
I have one idea of what could be going wrong.  If you are using the non-unicode build of EA and the files are unicode then EA will try to import them and fail very quickly.

The result would match up with what you're experiencing.

EA will import the code into the current package, whatever that package is.  It's up the user to tell EA where the imported code is wanted.  We can't assume that anyone uses the original package structure.

Simon
« Last Edit: January 13, 2005, 02:49:58 pm by simonm »