Add this URL to your Eclipse Installation to reach this solution's update site.
In a complicated java project, having a visual image of dependencies between classes or between Java packages is very useful. Architects and senior developers can review the dependencies to make sure the project is implemented following the design.
Install plugin: - Use Update site URL: https://dl.bintray.com/tha/eclipserepo/ - Or download offline: download plugin from https://dl.bintray.com/tha/eclipserepo/plugins/org.freejava.dependencyvi... and save it to eclipse/dropins/ folder
Usage: Select some classes or Java packages, right click and choose "Dependency Viewer/View Package Dependency" or "Dependency Viewer/View Outbound Package Dependency" or "Dependency Viewer/View Class Dependency" or "Dependency Viewer/View Outbound Class Dependency". A dependency graph will be displayed for the selected packages/classes. You can arrange nodes in the graph with your mouse or select nodes and use Delete key to delete unwanted nodes from the graph.
Compatibility: Tested with Eclipse 3.6 to 4.6.2 but it should run well on older/newer versions of Eclipse.
Notes: You might need to install manually Zest features from this Update Site (http://download.eclipse.org/tools/gef/updates/releases ) if Eclipse cannot install it automatically
You might also like the plugins: - Java Source Attacher to find source code for open source Java libraries. - Java Examples Search to find example code from Eclipse.
Unsuccessful Installs in the last 7 Days: 0
By adding the following code below to your website you will be able to add an install button for Java Dependency Viewer.HTML Code:
Submitted by Christian Klemke on Fri, 2019-03-08 08:38
Dear Thai Ha, would you be willing to make your source available code somewhere ?
Submitted by Thai Ha on Tue, 2019-03-12 11:28
Sure, it is at https://github.com/tha2015/free-plugins/tree/master/org.freejava.depende...
Submitted by John Garrett on Wed, 2018-10-03 11:42
Receiving these errors when installing:
No repository found containing: osgi.bundle,org.eclipse.zest.core,126.96.36.199408150207
No repository found containing: osgi.bundle,org.eclipse.zest.layouts,188.8.131.52408150207
Submitted by Thai Ha on Tue, 2018-10-16 19:06
Please try to install Zest from this Update Site (http://download.eclipse.org/tools/gef/updates/releases) and try again. I checked with Eclipse SimRel release and it worked without any issue.
Submitted by Tim Dugan on Wed, 2018-03-21 14:49
I selected a class and ask for a dependency analysis, but I just get a blank page. No info at all.
what can I do?
Submitted by Thai Ha on Thu, 2018-03-22 18:05
"View Class Dependency" menu item is to show dependencies between *selected* classes. So if you select only one class, there is nothing to be displayed. Try one of the following options:
1. To view dependencies between specific classes: select all those classes and right click and choose "View Class Dependency" to see how those classes are related
2. To view dependent classes of a specific class (i.e. which classes are being used by this class): Right click on the class, select "View Outbound Class Dependency". Note that the Java standard classes are excluded automatically from the view.
If you suspect that the result is not correct, close the "Dependency View" view manually (using the X icon on top right corner) then try again.
Please let me know if you still have problems with it.
Thanks for trying the plugin.
Submitted by Juan Moreno Oto on Sun, 2017-12-10 06:01
A very very useful tool. Great idea. Thanks
It would we more useful if having these features:
- Save the layout, so the work of arrangong the boxes is not lost each time you call the viewer
- An automatic cascading layout
Submitted by Fabio Ricci on Thu, 2016-12-15 10:14
No repository found at svn.codespot.com/a/eclipselabs.org/free-plugins/trunk/site/.
Submitted by Thai Ha on Sat, 2016-12-31 00:50
Thanks for the feedback. I have updated the URL. Please try again.
Submitted by Premysl Stastny on Fri, 2016-07-15 02:04
I am getting the error, that no repository found at ****
Submitted by Thai Ha on Thu, 2017-03-30 01:53
Issue has been fixed.
Submitted by Aida Hota on Wed, 2014-05-07 09:01
Installed, tried, Eclipse hangs. Waste of time
Submitted by Thai Ha on Thu, 2017-03-30 01:54
It does work. Please check the documents.
Submitted by Mark Rozhin on Fri, 2014-04-04 13:43
Don't bother. Installed OK, but no output and no indication of why.
Submitted by Tim Dugan on Wed, 2018-03-21 14:55
that's what i see, too.
Submitted by Thai Ha on Thu, 2017-03-30 01:55
It works, please follow the guidelines.
Submitted by Sam Mising name on Thu, 2014-02-27 06:01
I have installed plug ins mentioned here.
But still in eclipse i am not able to enable View Class Dependancy.
Please send me all possible solutions.
Submitted by Eli K on Tue, 2013-10-08 10:13
I've just installed the pluging on eclipse Juno using the marketplace install.
Clicked 'view package dependencies' on one of the packages - blank window
Clicked 'view package dependencies' on a project - eclipse hangs for a few minutes (spinning wheel), then becomes unresponsive
This is a rather large project, but I cannot wait minutes for this to happen without eclipse
The issue with slow performance has been fixed with latest version.
Submitted by Stuart Clayton on Sun, 2012-06-17 03:08
This version of the tool has two serious weaknesses that make it impossible to use effectively.
One weakness is that the menu actions ("View class dependency" and "View package dependency") are executed in the eclipse UI thread. The workspace hangs for several minutes until the results have been calculated - or until it crashes because the heap has been exhausted, which just now happened as I was writing these comments.
Another weakness is that the initial layout algorithm chosen seems to be "show all nodes jumbled together". The user gets one layout, and that's it.
This tool is a *viewer*. Its usefulness depends entirely on whether it helps the user to find some presentation for hist graph that he can interpret. It is not enough to show just any layout and leave the user with no options to continue.
Submitted by Thai Ha on Thu, 2017-03-30 01:58
The issue with slow performance has been fixed.
The initial layout is fixed, but you can drag/drop to move the nodes and using "Delete" key to delete unwanted nodes. So it is not "just" a viewer.
Submitted by Tim Dugan on Wed, 2018-03-21 14:56
it seems to not work at all for a lot of folks...me included
Submitted by Gabor Markon on Tue, 2019-05-07 04:00
Hi Tim, do you have this error as well?
Plug-in "org.freejava.dependencyviewer" was unable to instantiate class "org.freejava.tools.handlers.dependency.DependencyView"
Have you found an alternative in the meanwhile?
Get the latest version of the Eclipse IDE.