Topcased

Topcased is an “integrated System/Software engineering toolkit compliant with the requirements of critical and embedded applications”.

We are mostly interested in the subproject TOPCASED-UML2 which is the only stable and free Eclipse-based UML Editor which supports UML-Profile creating and application compatible with Eclipse 3.5.

Installation Instructions

Download the latest Eclipse Modeling distribution 1).

  1. Choose the download of “Eclipse Modelling Tools” that matches your platform.
Make sure you download the right version. You need the one called Eclipse Modeling Tools. See this screenshot:

3. Open the installation dialog with “Help » Install New Software”.

4. Copy

http://topcased-mm.gforge.enseeiht.fr/release/update-site3.5/

to the Working with field and press ENTER

5. Install Topcased UML Editor and Topcased Dependencies from the Topcased Toolkit section.

Using Topcased UML Editors

Creating and applying UML Profiles

  1. To create a (profile) diagram select File→New→“New UML model with TOPCASED”
  2. Your file names must end with .profile.umldi and .profile.uml respectively.
  3. Read pages from 7-12 Topcased UML Feature Tutorial

To set the stereotype's meta-class add a meta-class element to the diagram and assign a uml classifier (e.g. Class, Association, Operation, CallBehaviourAction,…) to it. Then add an Extension connection from your stereotype:

Extend Meta Class

To add a Property2) to your stereotype, click first on the Property item in the panel and then onto the target stereotype. Assign a type to the Property. Ideally use uml::XX primitive types (e.g. uml::Integer), otherwise the property might not be available in the applying uml diagram if the type is not imported there:

Add Property to Stereotype

The properties are not visible/editable in the UML Diagrams themselves, but in the Properties view when selecting a classifier (Class, Activity,etc.). You can open the Properties view by pressing Ctrl-3 and typing “Properties”.

Set Properties

Be aware: It is not possible to edit a profile an applying model document at the same time with topcased editors. The editor for the later opened file will be opened read-only.

Pitfall: You need to reapply a UML-Profile when you changed it

  • After modifying an UML-Profile you must
    1. define the profile: right-click on the root element (<Model>) in the outline (in the latest version you are asked for re-definition on every save)
    2. re-apply the profile in all UML diagrams already using the profile: right-click on the root element (<Model>) in the outline, select apply an add the profile in question

Adding OCL constraints to UML elements

Open the editor's outline and right-click on the element to constraint. Add a Constraint child:

Add constraint child

Select the constraint, open the Properties view 3), select the Specification tab on the left and add the language OCL4). Now you can add on ocl constraint by clicking “create OCL expression”:

Add OCL constraint.

Alternatives to Topcased UML

  • The promising MDT UML2 Tools can not be considered complete, yet (Jan. 2010). Setting stereotype properties are not supported, yet. And all diagrams, except class diagrams, are only rudimentary implemented.
1) which is based on the Galileo release
2) named tagged-value in UML 1.X
3) Ctrl+3, type Properties
4) click on the ”…” button next to language, type “OCL” in the value field and click the add button
Last modified: 2014/04/07 17:46
 
*