Finally, we made it!
The UML assignment now has 3 versions
The UML assignment now has 3 versions
- Standalone version which is packed as a .jar file and can run without any problem in Windows and Linux (of course, JVM is required). You can get in here (Google Code link). The features are
- Build UML class diagram
- From scratch: using menu, pop-up menu, drag and drop with a bunch of forms
- From existing source code: load your Java source file(s) and modify the diagram using the same techniques as above
- Export Java source file(s) from the diagram. All methods are empty (of course)
- Save as Image
- The whole diagram
- Or this a part of it
- Easy navigation: most of the cases, the diagram will be big and it will be hard to have a good view but you can...
- Zoom in and zoom out
- Moving around
- Rearrange structures to make them more well-organized (if you mess them up, feel free to re-draw from the menu)
- Quickly find a structure in the diagram
- A more focus view in a structure by display related structures only (from the menu bar or with the pop-up menu)
- Eclipse Plugin version. Get it from Google Code and drop it into the dropins directory inside your Eclipse installation (more details). Restart Eclipse (if you are running it) and the plugin should work right away!
- You can watch a screen cast here
- With this plugin, if you enable its view (Class Diagram), the view will watch the file in your editor and display it and its related structures. You can also right click in the package view or almost anywhere in Eclipse and get a new entry under Show In which is Class Diagram, click it and you will have a diagram of that item. The killing feature (in my opinion) is you can create new structure within the view using right clicks, after that, one more right click and you can select Generate to create new class right into your project with the specified relationships, properties, methods, etc. It's really amazing! Give it a try
- Applet version. This is actually a test to see how the GUI will work inside an applet and it turned out to be pretty neat. You can check it out in an older entry of mine but it's not the latest version. You can grab our submitted .zip package here (MediaFire link) which includes sources code, tests and many other interesting thing to test the applet view
In the source code, my teammates and I tried to comment as much as possible and we even export the documents by javadoc (which is available online here or downloadable here)
Well, that's a great introduction post I think. Don't forget to svn checkout our repository to get the latest source code (currently, the head is revision 50). Our Google Code link is: http://code.google.com/p/javauml7/. Thank you for reading this
A short description in Vietnamese for the folks who will have to do this exercise next year: Bài tập lớn Lập trình hướng đối tượng (Java) của thầy Nguyễn Việt Hà (hanv) giao cho lớp K53CC, Đại học Công nghệ, Đại học Quốc gia Hà Nội. Đề 1: Xây dựng biểu đồ lớp từ mã nguồn Java: phân tích mã nguồn Java sau đó hiển thị biểu đồ lớp và các quan hệ (is_a, has_a) của các lớp. Đề 2: Sinh chương trình khung từ biểu đồ thiết kế lớp: xây dựng công cụ đồ họa thiết kế lớp và các quan hệ rồi inh tự động chương trình khung Java: lớp, thuộc tính và định nghĩa phương thức (phương thức rỗng)
Have a nice weekend!
Comments
Post a Comment