Java Code reverse engineering generates UML

Source: Internet
Author: User
Tags argouml

Today is looking at a simulator of the source code, a package has multiple classes, a class has a number of properties and methods, if in order to look down, not only can not be a general understanding of the framework of the simulator, and will only see the more chaotic, so, Think of any tools that can translate these classes and their dependencies into UML diagrams so that you can see them at a glance. Immediately searched, did not expect such a large pile of tools, the following list of the most classic 6 models. Reference: Http://www.csdn.net/article/2012-09-12/2809862-6-java-to-uml-tools

1.Eclipse MDT

The Model development tool (MDT) provides some exemplary tools for developing patterns based on meta-models. It supports the creation of UML diagrams, from reverse engineering of code to UML diagrams and so on.

2,ArgoUML

ARGOUML is a leading open source UML Model tool that supports all of the UML 1.4 standards and can be run on any Java platform.

3,Modelgoon

Modelgoon is a Java package dependency analysis Eclipse plugin that shows dependencies between Java packages and packages in a project, as shown in:

4.Green

Green is a plug-in for Eclipse and is an advanced and simple UML Class diagram tool that major students develop and use. It is the live round-tripping editor, so it's easy to generate Java code from a UML class diagram. It has very good extensibility.

5,Minjava

Minjava is a Java reverse engineering software that helps to understand the architecture and behavior of some Java software that already exists.

6,amaterasuml

AMATERASUML can support large projects, some of the plugins listed above like green, seemingly do not support large projects, if there is large engineering documents, often crashes, and the formation of the entire UML diagram appears chaotic.

Since I'm looking at the source code on Eclipse, I've installed two plugins for Eclipse, Green and amaterasuml, and briefly talk about installation and usage.

1. Green Installation and use

See: http://wenku.baidu.com/view/7ec0b519ff00bed5b9f31d1b.html

Installed online and offline installation, offline is to download the green installation package, and then copy the plug-in into the Eclipse plug-in folder can be, this method is now no longer applicable, its official website said:

Green'll now is distributed via update site instead of direct download. The latest build of green can found at the following update site:
http://www.cse.buffalo.edu/faculty/alphonce/green
To install or update green, go to help->install New software ... Type in (or Copy/paste) the above site URL and click Add. After the update site have been added, you can install from that same dialog.

So, according to it, using the online installation is good, note: Before installing the GEF plug-in, the new version of Eclipse appears to have been installed, before the 4.0 version requires manual installation.

After installation, restart, right-click on any class name to see the relevant options: Green UML, click to get the UML diagram of the relevant class: The following display effect:

2, AMATERASUML installed in the use

If a small project, that is, a class or interface contains not many methods and properties, with Green is the best choice, but for large projects, the plug-in either can not load the various classes, sometimes crash, or load but very chaotic, need to manually adjust their own, very troublesome, so, after comparison, Find AMATERASUML is the most suitable, Modelgoon is also very good, but the installation needs to use the agent, this can be done on Linux, the specific method can be consulted: http://blog.sina.com.cn/s/blog_6e10ddff0101eixf.html. But on Windows seems to not work, from the above can be seen, this plug-in is better than AMATERASUML, it can show the dependencies between the packages, perhaps amaterasuml can, but I have not yet found that the specific installation and green there are two ways, And how to use it, please see its official website: Http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUML

Below is its display effect, can be directly dragged, how to drag and drop, between the above website link.

The following is a netizen encountered problems, perhaps you will also encounter, first note:

I just downloaded the 3.4 version of green UML, and configured it to Eclipse 3.4 plug-in, when the UML model transformation of the Code, found that the graph is only a graph of each class, and there is no relationship between the class (dependency, generalization, implementation, etc.), and the selection board is also only classes, interfaces, enumerations, Note this kind of, there is no dependency, generalization, implementation, and so on, and I see the introduction of the Internet should be able to show the relationship, do you know this is how it?

Green UML 3.4 is to be used in conjunction with GEF. Did you just install green without GEF?
And the trouble is that the versions of Green and GEF must also match. Like Green3.5 with GEF3.4.
This is GEF3.4 's link.
http://archive.eclipse.org/tools/gef/downloads/drops/R-3.4.0-200806091334/

Java Code reverse engineering generates UML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.