The Class Diagram Editor provides you with the ability to model your system using a diagram similar to the Object Management Group (OMG) UML specification's Class Diagram. The current release of the Class Diagram Editor supports a set of features similar to those supported in the UML2.0 specification. Refer to, the full UML2.0 specification at the OMG UML Resource Page).
Once you create a new diagram using the New Tigerstripe Diagram dialog box, the Class Diagram Editor opens. For more information about the New Tigerstripe Diagram dialog box, refer to Creating a Tigerstripe Diagram. The Class Diagram Editor looks similar to the following image:
The Class Diagram Editor is fully integrated with Tigerstripe Workbench including the Tigerstripe Explorer ( in the Class Diagram Editor). The Class Diagram Editor consists of the following sets of controls.
- The first part of the Class Diagram Editor is the main window (usually referred to as the Class Diagram Editor window or the Class Diagram Editor). You use the Class Diagram Editor to graphically represent your service contract.
- The second part of the editor is the standard Eclipse Properties tab ( in the Class Diagram Editor). You use the Properties tab to modify the properties associated with your diagram and with any Artifacts, Features, or Relationships in the Class Diagram Editor.
- Finally, there is a Tool Palette ( in the Class Diagram Editor). The Tool Palette typically displays on the right side of the Class Diagram Editor, however you can move (or hide) the Tool Pallete if you prefer. The Tool Palette includes options for selecting objects in your diagram, zooming in and out in the diagram window, adding notes to your diagram, creating new Artifacts, or creating new Features (Attributes, Methods, and Literals) within an Artifact in your diagram.
Any action that you take in the Class Diagram Editor (such as the creation of Artifacts or the renaming of Features) is reflected by changes in the underlying Tigerstripe object model. These changes are also reflected in the Tigerstripe Explorer).
You can create the same Artifact types using the available Class Diagram Editor tools as you can with the tools located on the toolbar of Tigerstripe Workbench. The supported Artifact types are:
- Managed Entities
- Named Queries
- Update Procedures
- Session Facades
There are a number of relationship types that you can construct between Artifacts. The procedure for defining relationships between objects are covered later in this document. For now, all of the relationship types defined in the UML2.0 standard (Associations, Association Classes, Dependencies, and References) are supported by the Class Diagram Editor as are a number of type-specific relationships (For example, relationships that are only available between specific types of Artifacts).
There are four types of tools available to create new Artifacts:
- The Tool Palette ( in the Class Diagram Editor).
- The Tool Tray ( in the Class Diagram Editor).
- The Create new Tigerstripe Artifacts button on the Tigerstripe Workbench toolbar ( in the Class Diagram Editor).
- The Context Menu that appears when you right-click on a Tigerstripe project folder in the Tigerstripe Explorer ( in the Class Diagram Editor).
Both the Create new Tigerstripe Artifacts button and the Context Menu allow you to create Artifacts directly in your Tigerstripe object model. You can add these objects to any diagram by dragging them from the Tigerstripe Explorer into the Class Diagram Editor.
The Tool Palette and the Tool Tray allow you to create Artifacts directly in the Class Diagram Editor.
You can create Artifacts in the Class Diagram Editor using either the Tool Pallete or the Tool Tray. Complete the following procedure to create a new Artifact using the Class Diagram Editor.
To create a new Artifact using the Tool Palette:
- Select the tool option that corresponds to the type of Artifact that you want to create.
- Click anywhere in the Class Diagram Editor. A new Artifact of the selected type, with a unique default name, displays. The Artifact is also visible in the Tigerstripe Explorer.
Creating Artifacts using the Tool Tray is even easier. Complete the following procedure to create an Artifact using the Tool Tray.
To create a new Artifact using the Tool Tray:
- Rest your cursor in the Class Diagram Editor. The Tool Tray displays.
Note: Your cursor MUST be completely still before the Tool Tray will appear.
- Select the option that corresponds to the type of Artifact that you want to create. The Artifact is created at the position in the diagram just below where the Tool Tray displayed.
In this section, the basic features of the Class Diagram Editor were discussed along with the number of ways that you can create Artifacts using the Class Diagram Editor. In the next section (Working with Tigerstripe Artifacts), we further discuss working with Artifacts in the Class Diagram Editor and explain how to edit and configure your Artifacts.
Working with Tigerstripe Artifacts
© copyright 2005, 2006, 2007 Cisco Systems, Inc. - All rights reserved