Create Toolbox Profiles

Return to Introduction  Previous page  Next page

You can create multiple toolbox profiles within an MDG Technology. Each toolbox profile contains definitions that determine what appears in the Enterprise Architect UML Toolbox when a specific toolbox is open, either by selecting from the More tools... option in the Enterprise Architect UML Toolbox window, or by opening or creating a diagram of the type that is linked to the toolbox profile.

To create a toolbox profile, follow the steps below:

1.Create a diagram in a profile package. Give it a name by which you can refer to it later, such as MyClassDiagram. In the Notes field for the diagram give it an alias and a description in the following format:

       Alias=MyClass;Notes=Structural elements for class diagrams;

2.On the diagram, create a Class, name it ToolboxPage and give it the «metaclass» stereotype.
3.Create a «stereotype» element for each of the toolbox pages to create within your toolbox, such as MyClassElements and MyClassRelationships. Set their Alias to the text to display in the title bar of each toolbox page, such as My Class Elements and My Class Relationships respectively. Use the Notes field to define the tool-tip for each toolbox page; that is, Elements for Class Diagrams and Relationships for Class Diagrams. Use the «extends» connector to set the stereotype elements to extend ToolboxPage. See also: Toolbox Page Attributes.
4.In the «stereotype» elements, create an attribute for each toolbox item. The name of the attribute should be the name of the element to be dropped, including namespace, e.g. UML::Package, UML::Class and UML::Interface. The toolbox items display in the same order as the attributes in the Class, so make use of the attribute ordering buttons to define the order of your toolbox.

       To name an attribute for an item from your own technology, precede it with your profile name as the namespace, and then follow it in brackets with the element type that you are extending (so that Enterprise Architect knows what element to create). For example, a SysML block element would appear as SysML::Block(UML::Class). See also: complete list of elements that can be extended.

       You might prefer not to use names such as UML::Package or UML::Class in your toolbox, so give the attributes an Initial Value of, for example, Package and Class.

5.To save the toolbox profile, right-click the diagram and select the Save as Profile context menu option.