Chapter 4 Reverse Engineering

Reverse engineering Java files from a source directory

Reverse engineering .java source files from a source directory requires that you follow the same procedure as when you reverse engineer independent

.java files, the only difference being that you select a directory in which several .java files are located and not individual files. This gives you the advantage of reversing groups of files that belong to the same model or package.

Often Java library files are interdependent as they belong to the same model and are therefore located in the same directory. In this case, if you do not reverse engineer all the library files located in the directory, your model may be incomplete.

When you reverse engineer a directory, all the sub-directories and the Java files contained in them are reversed. In this case, each sub-directory becomes a package within the model.

ϖTo reverse engineer Java files from a source directory:

1Select LanguageReverse Engineer Java. The Reverse Java dialog box appears.

2Select the Directory radio button.

161

Page 171
Image 171
Sybase 7.5 Reverse engineering Java files from a source directory, To reverse engineer Java files from a source directory