Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's begin by creating a customization of the Company stereotype.  Using the Specification dialog, select Tag Definitions and create some attributes for the Company.  If you apply the Company stereotype to an Element, those attributes you have just created will not be visible in the Element that you have just applied the stereotype to.  However, if you create a Customization for the Company stereotype, the attributes will now be visible in the Specification dialog of the Element that the Company stereotype has been applied to. 

The MagicDraw document "MagicDraw UML Profiling & DSL User Guide.pdf" outlines the basic steps to creating a customized element.  Firstly it recommends that you create two separate projects, one for the stereotypes and the other for the customizations.  The former first.  The profile package must then be shared and not exported, there is a difference.  The latter project containing he customizations should also contain a profile package that must be shared.  It is this shared package that must used by the normal UML projects and not the project containing the stereotypes!

The steps are as follows:

Creating a new diagram type (important step)

...