Prev | Next |
Create Toolbox Profiles using the Profile Helpers
Within an MDG Technology you can create multiple Toolbox Profiles. Each Toolbox Profile defines a single Toolbox. A Toolbox consists of one or more expandable/collapsible regions, referred to as Toolbox Pages.
Create a Toolbox Profile
Step |
Action |
See also |
---|---|---|
1 |
If a group of Packages for defining Profiles has not been created, use the Model Wizard's 'MDG Technology Builder' Perspective to create this group. In the Browser window, locate the Package with the <<toolbox profile>> stereotype and open its child diagram. |
Using the Profile Helpers |
2 |
Drag the 'Create Custom Toolbox' item from the 'Profile Helpers' Toolbox Page onto the diagram. The 'Select a Toolbox Profile Package' dialog displays. |
|
3 |
Select the Package with the <<toolbox profile>> stereotype referred to in step 1. Click on the . The 'Create Toolbox Page' dialog displays. |
|
4 |
In the 'Toolbox Name' field type the name for your Toolbox page. This is the name that will be displayed for the Toolbox page when using the item search facilities in the Diagram Toolbox. |
|
5 |
In the 'Description' field type a description for the Toolbox. This description acts as a default tool-tip for your Toolbox, unless you define a specific tool-tip for a Toolbox Page as mentioned in step 10. |
|
6 |
Click on the . The diagram that you will use to define your Toolbox is created and displayed. |
|
7 |
(Optional) When dragging an item from a Toolbox onto a diagram, the item will typically create an element or a connector. It is also possible to have a single Toolbox item that, when dragged onto a diagram, will provide a selection of items to choose from. This is referred to as a hidden sub-menu. If you want your Toolbox to contain one or more hidden sub-menus you should define these before proceeding with the steps on this page. |
Create Hidden Sub-Menus using the Profile Helpers |
8 |
You can now define one or more Toolbox Pages that will appear on the Toolbox. Drag the 'Add Toolbox Page' item from the 'Profile Helpers' Toolbox page onto the diagram. The 'Add Toolbox Page' dialog displays. |
|
9 |
In the 'Name' field, type a name for the Toolbox Page. This is text that will display in the title bar of the corresponding Toolbox Page. |
|
10 |
In the 'Tool Tip' field, type the tool-tip for the corresponding Toolbox Page. |
|
11 |
The 'Icon' field in this case will be disabled. This field is only used when defining hidden sub-menu toolboxes. |
Create Hidden Sub-Menus using the Profile Helpers |
12 |
These options can be used to determine the appearance and functionality of the Toolbox Page. When enabled:
|
|
13 |
You can now define items to be added to the Toolbox. Click on the down arrow on the right of the . Select one of these options:
Clicking on the Add button, and not on the drop-down arrow, is the same as selecting the 'Add Stereotype' option. |
|
14 |
(Optional) Define a Toolbox item that will create an item from an external MDG Technology. For example, adding a Toolbox item that creates a SysML1.3 Block element.
All non-UML objects in Enterprise Architect are an extension of a UML Type. You can reveal an element's base UML type by deleting its Stereotypes. For example, create a SysML1.3 Block and then, using the Properties window, delete the Block element's Stereotype. The element type will change from Block to Class. |
Modify Tagged Values Elements Used in Toolboxes Connectors Used in Toolboxes |
15 |
(Optional) Create a Toolbox item that will drop a Pattern onto a diagram.
|
Design Patterns Create MDG Technology File Publish a Pattern |
16 |
After you add the Toolbox item it will appear in the 'Toolbox Items' list. You can optionally add a custom icon image for a Toolbox item. The icon image must be a 16x16 pixel bitmap file; for a transparent background use light gray - RGB(192,192,192). To set the icon for a Toolbox item:
|
|
17 |
Repeat steps 13 to 16 for each item you want to add to the Toolbox Page. To remove a Toolbox item, select it in the 'Toolbox Items' list and click on the . Once all the appropriate Toolbox items have been added, click on the . A Stereotype element will be added to your Toolbox Profile diagram. |
|
18 |
Repeat steps 8 to 17 for each Toolbox Page you want to include in the Toolbox. |
|
19 |
Save the Toolbox Profile by clicking on the background of the open diagram and selecting either of the ribbon options:
|
Export a Profile |
20 |
Incorporate the Profile into an MDG Technology. |
Add a Toolbox Profile Create MDG Technology File |
Notes
- A Toolbox Page can by modified by right-clicking the appropriate Stereotype element on the Toolbox Profile diagram and selecting the 'Edit with Profile Helper' option
- When assigning a name for a Toolbox Page, be aware that 'elements' is a reserved word; if the word 'elements' is used, it will not appear in the title bar of the corresponding Toolbox Page
- The sequence of Toolbox Pages in the Toolbox is determined by the sequence of their Stereotype elements in the Profile diagram or Profile Package; if you create and save the Profile from a:
- Diagram, the Toolbox Page sequence is determined by the Z-order of the Stereotype elements on
the diagram - the higher the Z-order number of the Stereotype element, the further down the
Toolbox its Toolbox Page is placed; if you change the Z-order of a Stereotype element in the
diagram it changes the position of the element's page on the Toolbox
- Package in the Browser window, the Toolbox Page sequence is determined by the list order of the
Stereotype elements in the Package - the Toolbox Page for the first listed element is at the top of
the Toolbox; if you re-order the elements in the Browser window, you produce the same
re-ordering of pages in the Toolbox