Book a Demo

Author Topic: Java Code reverse engineering  (Read 6897 times)

Patrick Ansari

  • Guest
Java Code reverse engineering
« on: April 24, 2002, 04:13:48 pm »
It would be great if I didn't have to manually select every single file I want to reverse engineer.

Could you please add a feature where all files can be recursively read in if they are under a certain root directory. Could be recursively read into a list box so we can delete the ones that may not be needed.

Also, I imported about 7 different Java source files and most relationships were not identified. Especially association.

Thanks.

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Java Code reverse engineering
« Reply #1 on: April 25, 2002, 07:09:29 am »
Hi,

There are two things which may help:

1. You can import a complete directory structure in one go. If you right click on a package in the project browser, there is a Code Engineering option named "Import Source Directory". This allows you to import a directory hierarchy and all source files in one go - creating new diagrams etc, at the same time.

2. Im not sure if you tried this, but when importing into a diagram, you can highlight and import more than one source file in one go - just multi-select all the source files of interest.

Hope this helps,

Geoff Sparks

Patrick Ansari

  • Guest
Re: Java Code reverse engineering
« Reply #2 on: April 26, 2002, 12:02:53 pm »
Thanks for your quick reply.

Jim LoVerde

  • Guest
Re: Java Code reverse engineering
« Reply #3 on: May 01, 2002, 10:37:59 am »
I have done the multi select thing in the past, but it still doesn't really help when I need to import an existing project that has 50+ packages (meaning I need to run through the import procedure 50+ times).

This is probably the single biggest complaint I have about Enterprise Architect.  Other than that, I think it is fantastic.

PatrickAnsari

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Java Code reverse engineering
« Reply #4 on: May 01, 2002, 12:24:02 pm »
Jim,

You can just import your source directory and it will create the package tree automatically. This works very well.

The thing I really don't like is that I still have to import everything one by one (or multiselect) when I actually want to create a class diagram with classes from different packages. It would be great if there was an easier way to do this.

It's probably possible to do this somehow but I haven't had much time to experiment and the help files are not very conclusive imho.

Jim LoVerde

  • Guest
Re: Java Code reverse engineering
« Reply #5 on: May 01, 2002, 12:47:29 pm »
Ahhh....so you mean I should move all of the java files into a single directory (instead of the normal package/directory structure) and then just import them all at once?  I will try that.  This at least will get me past the biggest problem.

But I agree that it would be nice if EA would automatically create a seperate UML package and class diagram for every Java package  as they are imported.

Thanks.

PatrickAnsari

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Java Code reverse engineering
« Reply #6 on: May 01, 2002, 01:02:13 pm »
Jim,

Right click on Logical Model --> Code Engineering --> Import Source Directory.

I just imported the folder which contains the packages for my project. As long as that's all in one folder there's no problem.


mushpert

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Java Code reverse engineering
« Reply #7 on: June 18, 2002, 07:14:22 am »
Hi,

 I don't have such options in my version (3.10, 496, Win2K). What can I do ?

Vlad

PhilBoyd

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • Doh!
    • View Profile
Re: Java Code reverse engineering
« Reply #8 on: June 27, 2002, 06:03:21 am »
Right-click on the Logical Model package.  Down at the bottom of the menu, should be an item for Code Engineering.  Import source directory is in the sub-menu.