25
Reverse Engineering with MaintainJ The e-Cheque Registration

Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

Reverse Engineering with MaintainJ

The e-Cheque Registration

Page 2: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

Open eclipse and create new java project

Page 3: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 4: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 5: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

properties.

Page 6: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 7: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 8: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 9: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 10: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

then press OK

Page 11: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

Press select all and then press next

Page 12: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

The installation window will start. Press next

Page 13: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

Check the accept checkbox and press finish

Page 14: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

After the installation completed restart eclipse.

Page 15: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 16: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 17: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 18: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

“eCheque “. Then press Run

Page 19: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 20: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 21: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 22: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 23: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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

Page 24: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

The sequence diagram

Page 25: Reverse Engineering with MaintainJ - UVicshsaad/seng426/resources/downloads/MaintainJ.pdf · The missing JAR is “swing-layout-1.0.4” you can find it inside the netbeans installation

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