Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Contents |
Prev | Next |
Use a Pattern
Using a Design Pattern, you can rapidly create template solutions for code structures that perform the same type of task in other situations, and use items defined in the Pattern with the model.
Access
Use one of the methods outlined here to display the Resources window.
Within the Resources window, expand the folder 'Patterns' and expand sub-folders as necessary, until the Pattern you require is located.
- Right-click on the Pattern and select 'Add Pattern to Diagram' or
- Click and drag the Pattern from the Resources window and drop it onto a diagram
Ribbon |
Start > Explore > Resources |
Keyboard Shortcuts |
|
Use a Pattern previously imported into the model
Step |
Action |
See also |
---|---|---|
1 |
Open the diagram into which to add the Pattern. |
|
2 |
Select the Resources window. |
|
3 |
Expand the Pattern folder and find the Pattern to add. |
|
4 |
Either:
You can also view the Pattern details in read-only mode by selecting the 'View Pattern Details' context menu option. |
Add Pattern Dialog |
5 |
Once the appropriate selections have been made, click on the to import the Pattern into the model, recreating the original diagram with new GUIDs. |
Change the default of the Pattern element
Step |
Action |
See also |
---|---|---|
1 |
Ensure option 'Import as Package Fragment' is unchecked in the 'Add Pattern' dialog |
|
2 |
Select the individual element in the 'Pattern Element' panel. |
|
3 |
Click on the button to display the 'Edit' dialog. The specific method for changing the element name is dependant upon the entry in the 'Action' column of the 'Pattern Elements' panel. |
|
4 |
If the 'Action' entry for the element is 'Create', then in the 'Default' field in the 'Edit' dialog delete the existing value and type your own, user-defined value. Click on the . The element default is updated on the 'Add Pattern' dialog. |
|
5 |
If the 'Action' entry for the element is 'Merge', in the 'Edit' dialog click on the button to browse to an existing element classifier. The 'Select <Item>' dialog displays. |
|
6 |
Locate and select an existing element classifier. You can restrict the number of choices by selecting the elements from a specific namespace; to do this, click on the In Namespace drop-down arrow and select a namespace. |
Using Classifiers |
Learn more