Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Patrick Ansari 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.
-
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
-
Thanks for your quick reply.
-
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.
-
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.
-
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.
-
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.
-
Hi,
I don't have such options in my version (3.10, 496, Win2K). What can I do ?
Vlad
-
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.