reverse engineering with maintainj - uvicshsaad/seng426/resources/downloads/maintainj.pdf · the...

Post on 17-Mar-2020

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Reverse Engineering with MaintainJ

The e-Cheque Registration

Open eclipse and create new java project

Enter your new project name. forinstance “eCheque” , then present finish

Copy the eCheque java package to the src package inside your new project

There are some external JARs missing. To add them select the project name and right click. The from the popup menu select

properties.

In the properties window select Java Build Path. Then select Libraries tab and press “Add External JAR”

The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation folder in “platform\modules\ext\”

To install the maintainJ plug-in go to the help menu and select Install New Software

In the install window enter the maintianJ URL, then press add

In the add repository dialog enter in the name text field “maintainJ“ and in the location the enter the maintainJ URL

then press OK

Press select all and then press next

The installation window will start. Press next

Check the accept checkbox and press finish

After the installation completed restart eclipse.

After the eclipse restarted, from the project tree select the main class and right click then select Run As and from Run As

select Run Configurations

From the Run Configuration select the Java Application with MaintainJ, then right click and select New

On the main tab select you project name and your project main class

Switch to the Aspect tab and in the methods scope select all methods options. Select your package

“eCheque “. Then press Run

When the application started you will have to window the application window and the maintainJ window.

In the maintianJ window select the Browse folder and enter the pathand the file name where you want to save the trace of yourapplication. For instance “E:\mytrace\example”. Do not put a fileextension to your file name

Complete the e-Cheque registration phase.Then in the maintainJ window press stoptracing

The maintainJ will display a list of the trace files copythese files from the E:\mytrace\ folder and put theminside your eclipse project

Here I put them in the resources package. Then double click on any of the trace files to open the sequence and

the class diagram

The sequence diagram

The class diagram you can right click on thediagram to export it as an image

top related