Linking the source files with an analysis

You can link the source files with the analysis of your jars. For the moment this will essentially allow you to open these source files directly from XDepend; for example by clicking on a class in the class browser or the TreeMap view. In future releases this procedure will also give you access to metrics that cannot be extracted from the bytecode alone (like the percent of comment lines for example).

Attaching the source files to your analysis is a fairly straightforward procedure:

  • Go back to the Project Properties pane in XDepend.
  • Click on View Folders if necessary.
  • In the folders listing (the upper left one which should already contain at least two folders; the Java home folder and the folder containing the jar(s) you are analysing), add the folder containing your source files (something like %your_project%/src/main maybe).
  • Rerun the analysis on your project.

That's it, you can now click on classes or methods and the corresponding source file will open in the editor associated with Java files on your system.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.