How to Visualize Models
Quick introduction on alternative ways to visualize UML models.
Use the hyperModel perspective in Eclipse for quick access to all of these features, although these views are available in any Eclipse perspective.
Menu: Window > Open Perspective > hyperModel
- Project Explorer
- Dynamic Class Diagrams (dynagrams)
- Class Diagram Editor (only hyperModel 3.1)
- UML Table Editor
- Message Hierarchy View
- (Related Content links)
Project Explorer
To open a UML model, double-click on a .uml file in the Project Explorer view, or right-click and select Open With > UML Table editor. This will open the UML Table Editor as the default editor and will also expand a tree navigator of the model content within the Project Explorer.
|
The Properties view displays editable detail for selections in most UML editors and views: |
Dynamic Class Diagrams (dynagrams)
To open a dynamic class diagram created from any model classes:
- select one or more classes in the Project Explorer, then right-click and choose Open With > Class Dynagram
In this example screenshot, two classes were selected from the FpML model: Bond and Cash. A UML class diagram will be created on-the-fly using the selected classes as the root nodes and expanding the related classes via associations for the (configurable) number of steps away from these root classes.
You can drill-down into a new class diagram created from one class within this diagram. Just double-click on one of the class names in this diagram (you must click on the class name, not elsewhere in the class box). Right-click on the class name for a context menu of other actions and alternative views, as shown in this screenshot.
Use the window toolbar for other dynagram commands that zoom in/out or change the depth/breadth of diagram expansion.
Note that the identical dynagram functionality is available if you install hyperModel plugins into IBM's Rational Software Modeler/Architect®. Just use RSM/A's Project Explorer view to open the dynagram for selected classes.
Class Diagram Editor
This feature is only available in hyperModel 3.1. This is a pre-release build of work-in-progress, so please read the Release Notes!!
- In either the Project Explorer view or the UML Table editor, right click on a model package and select: Add Diagram > Class diagram
- Choose the folder where you want the diagram file created (it must remain in the same relative folder location with the .uml model file).
- The new diagram contains all classes defined in this package, plus shortcuts for other classes outside of this package that are referenced by class properties.
- You must select the "Arrange All" command from the diagram context menu to relayout the new diagram.
UML Table Editor
The UML Table Editor provides an excellent tool for viewing and editing class properties, or for adding new model content. When creating models that are planned for generation to XSD, you can quickly reorder the properties using drag/drop to design the sequence of XSD complexType element content. The table editor is also an intuitive overview of message content.
To open this editor:
- Select one or more packages or classes in the Project Explorer
- Right-click, and choose Open With > UML Table
- You can also open this editor for the selected class in the class dynagram by using its context menu.
Note that the identical table editor is available if you install hyperModel plugins into IBM's Rational Software Modeler/Architect®. Just use RSM/A's Project Explorer view, and choose Open With > UML Table for the selected package(s) or class(es).
Message Hierarchy View
When working on UML models that are planned for generation to XSD, many modelers find it helpful to visualize the ultimate structure of XML messages using a hierarchical tree of XML elements and attributes. The hyperModel Message Hierarchly View allows you to quickly see the message structure while working directly on the UML information model.
To open this view
- select one class in the Project Explorer, right-click, and choose Open With > Message Hierarchy
- You can also open this view from the selected class in the class dynagram by using its context menu.