Eclipse中UML插件的安装(AmaterasUML)
AmaterasUML is an Eclipse plug-in for drawing UML class-diagram, and UML sequence-diagram.
- Class diagram
- Sequence diagram
官网介绍 :http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUML
安装步骤:
1.在安装AmaterasUML之前,首先要按照GEF(Graphic Editing Framework)。eclipse->help->install new software ->add http://download.eclipse.org/tools/gef/updates/releases/
2.安装好GEF之后,在下载AmaterasUML的压缩包。其下载地址是:http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUML
解压缩之后,将其jar包拷贝到Eclipse目录下的plugins文件夹中保存。
重启Eclipse,然后在File->New->Other下面就可以看见AmaterasUML的标志了。
其中有一个很强大的功能就是能够java stack trace生成时序图。具体操作如下:
Please select "Window"->"Show View"->"Other"->"AmaterasUML"->"Stack Trace Sample".Then paste Java stack trace to opened view, and execute action. New stacktrace.sqd file is created on selected project/folder.
- paste stack trace.
- generated stack trace sequence diagram.
If you use Sequence API, you can create such plugin easily. This is a sample code, how to use Sequence API.