分享

AmaterasUML

 软件团队头目 2007-08-14

AmaterasUML is an Eclipse plug-in for drawing UML class-diagram, and UML sequence-diagram.

  • Class diagram
  • Sequence diagram

License

Eclipse Public License 1.0

Download

AmaterasUML

AmaterasUML works with Eclipse 3.1 (not support Eclipse 3.0), and AmaterasUML also requires GEF.

  1. Please download AmaterasUML.x.x.x.zip from here.
  2. Unzip that and put all jar files into ECLIPSE_HOME/plugins.

AmaterasUML Extension

AmaterasUML Extension is a component of XMI import/export. This extension requires EMF, and UML2

  1. Before install the extension, please install the EMF and UML2 (I tested on EMF2.2.0 and UML2 2.0.0)
  2. Please download AmaterasUMLExtension.x.x.x.zip from here.
  3. Unzip that and put all jar files into ECLIPSE_HOME/plugins.

How to Use

 Class diagram editor

  • Please select "File"->"New"->"Other"->"AmaterasUML"->"Class diagram". Then class diagram file (*.cld) was created.
  • Opened Class diagam editor, and you can edit diagram using pallete. Then fields/methods can add from a context menu.
  • Some properties (ex class name) are edit directry in diagram. but some property(is abstract class or concrete class) are edit only property view.
  • If you want import/export Java, choose "Java" from a context menu.

Edit directry

AmaterasUML automaticaly parse field/methods when edit directry.

  • edit directy
  • parse your input

 Sequence diagram editor

  • Please select "File"->"New"->"Other"->"AmaterasUML"->"Class diagram". Then class diagram file (*.sqd) was created.
  • Opened Sequence diagram editor, and you can edit diagram using pallete.
  • If you want add a Message, choose "Message". Then select source "Lifeline" or "Activation" and target "Lifeline" or "Activation"
  • If you want add a Creation message, choose "Message". Then select source "Lifeline" or "Activation" and target "Instance" (Target instance must be none of imcoming/outgoing message)
  • If you want add a Self-call message, choose "Message". Then select source "Activation" and same "Activation" by target.
  • You can select a class of Instance. Select the instance and choose "Import and Assign Class model" from a context menu. Then you can code assist on diagram or property view. Please hit CTRL + SPACE(limitation: can‘t use mouse when select the proposal, and if you escape the edit on diagram, hit esc key 2 times...)

Add Creation message

Please connect Lifeline/Activation to Instance.

Add Self-call message

Please connect same Activation.

Message completion

Please hit CTRL+SPACE on message.

Sequence API example

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.

  • Sample code
//Add net.java.amateras.umleditor plugin in your plugin dependency.
//instanciate builder.
SequenceModelBuilder builder = new SequenceModelBuilder();
// create instances
InstanceModel start = builder.createInstance("Start");
InstanceModel next = builder.createInstance("Next");
InstanceModel last = builder.createInstance("Last");
InstanceModel instanciated = builder.createInstance("NewObject");
// ready to create message
builder.init(start);
// create message from Start to Next
MessageModel msg = builder.createMessage("Message to Next", next);
// create message from Next to Last
builder.createCreationMessage("Message to Last", last);
// create message from Last to Start
builder.createMessage("Return to Start", start);
// create self-call message on Start
builder.createSelfCallMessage("Self-Call");
// back to pointer
builder.back(msg);
// create message from Start to Last on next to first message.
builder.createMessage("Message to Last", last);
// add creation message.
builder.createCreationMessage("create", instanciated);
// convert to xml
System.out.println(builder.toXML());
  • generated sequence diagram

 Usecase diagram editor

  • Please select "File"->"New"->"Other"->"AmaterasUML"->"Usecase diagram". Then class diagram file (*.ucd) was created.
  • Opened Usecase diagram editor, and you can edit diagram using pallete.
  • You can change the Actor image using property.
  • You can also attach any file to Usecase using property.
  • If you double click the Usecase, attached file will open in Eclipse.

 Activity diagram editor

  • Please select "File"->"New"->"Other"->"AmaterasUML"->"Activity diagram". Then class diagram file (*.acd) was created.
  • Opened Usecase diagram editor, and you can edit diagram using pallete.

 Common

  • You can swtich the hide/show grid by using "AmaterasUML" file menu

History

 2007/04/22 - Version 1.2.2

  • Activity diagram is available.
  • Connection routers which exclude BendpoinConnectionRouter are not supported.
  • Bendpoint moves according to the entity dragging.
  • Note: This version hasn‘t compatibility with old versions.

See details here about new features.

 2006/8/31 - Version 1.2.1

  • Class Diagram
    • Enable to drag two or more classes at a time.
    • Enable auto connect to Generalization/Realization connection.
    • Enable to drop the classes in jar entry.
  • Extension
    • XMI import/export extension is available.

See details here about new features.

 2006/6/10 - Version 1.2.0

  • Common
    • Enable to switch show/hide diagram grid.
  • Class Diagram
    • Enable to hide fields/methods by context menu.
  • Usecase Diagram
    • New feature

 2006/5/13 - Version 1.1.2

  • Common
    • Enable to hide icons.
    • Enable to change background/foreground color.
  • Class Diagram
    • Enable to align diagram element.
    • Add new connection router.
  • Sequence Diagram
    • Change presentation of instance.
    • Add Sequence API and sample plugin.
  • Java support
    • Enable to open Java editor from class diagram.
  • Limitation
    • Sorry, Sequence diagram editor can‘t edit *.sqd files created by older version.

 2006/4/22 - Version 1.1.1

  • Add drag-and-drop
    • both class and sequence
    • drap Java file in package exploler view.
  • Enable to delete and create Return message.
    • Auto return message creation swtich in AmaterasUML preference
  • Add code compiletion feature to edit message.

 2006/4/9 - Version 1.1.0

  • Add sequence diagram editor.
  • Add Note for class diagram editor

 2005/12/31 - Version 1.0.0

  • This is the initial public release.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多