Import a Pattern

Before using a previously created Design Pattern file in a model, you must first import it into the model; it is then available from the Resources window and optionally from the Toolbox.

How to

To import a Design Pattern you have previously saved

Step

Action

1

Select the Resources window.

 

2

Right-click on the UML Patterns node and select the Import UML Pattern context menu option.

The Select UML Pattern Import Filename dialog displays.

 

3

Locate the XML file to import.

 

4

Click on the Open button to import the Pattern.

The imported Pattern is placed in the appropriate category as defined in the XML file; if the category does not already exist under UML Patterns, a new one is created.

 

Gang of Four patterns are integrated with Enterprise Architect in the EABase.eap file; however, if you create your model in a DBMS repository (or you inadvertently delete the patterns from your model .eap file) you can use the above procedure to download examples of the Gang of Four patterns from the GoF Patterns zip file on the Sparx Systems website.

Learn more

Learning Center topics

(Alt+F1) | Modeling Languages | Patterns | Import a Pattern