The ObjectAid UML Sequence Diagram
The ObjectAid UML Sequence Diagram allows the quick and easy
creation of sequence diagrams from existing code, be it source or compiled
code. Like the ObjectAid UML Class Diagram it is fully integrated
into the Eclipse Workbench.
- New sequence diagrams are created with a wizard.
- In the Java perspective, drag and drop is supported from any view
that provides suitable input, i.e. the Package Explorer, the Type
Hierarchy, the Search view, the Call Hierarchy and the sequence diagram's
Outline view.
- In general, dropped Java types turn into new objects while Java methods
turn into messages between objects. However, when a method is dropped
from the Call Hierarchy view in Caller mode, then all called methods up
to the root are included; this is intended to be used in conjunction with
the 'Open Call Hierarchy' context menu item on messages.
- A button in the Java Stack Trace Console converts either an entire
stack trace or the currently selected text into a call sequence. The
target sequence diagram needs to be the active editor for the button
to become enabled.
- A context menu item in the Debug view converts Java stack trace elements
and entire threads into call sequences. The relevant threads must be
paused for that to work. Note that Eclipse does not support dragging
from the Debug view. The target sequence diagram needs to be the active
editor for the context menu item to become enabled. Therefore you need
to be be careful not to left-click on items in the Debug view as this
would activate the corresponding source editor.
- You can also simply draw a message from one object to another one (or
the same). To associate the new message with a method, right-click on it
and select it from the context menu.
- The 'Add Called Operations' context menu item appears on messages that
are associated with a method. It adds all directly called methods to the
diagram, except for those that match an ignored pattern in the sequence
diagram preferences.
- An object's name can be changed by editing it in-place.