This exercise establishes the environment you need to apply a pattern.
You apply patterns to models that contain UML elements so that you can modify these elements. To do this, you need an open UML project and a UML model. For this tutorial you also need an open freeform or class diagram. Although the diagram view is not essential, using it to apply patterns makes it easier to see the pattern results.
If you are an advanced user, you can create a UML project, a UML model, and a freeform or class diagram if you are familiar with these tasks. To the model, add a UML class and a UML interface. The interface must define one or more operations. Ensure that the Modeling perspective is open. An easier option is to perform the following instructions to create these requirements for you. Advanced users can review these instructions to ensure that their results are the same as the example.
You can skip this task if the Modeling perspective is already open. If open, the word "Modeling" appears in the upper left-hand corner of the Workbench
The Modeling perspective provides ready access to the modeling tools and views needed for various functions that include applying patterns. Follow these steps to open the Modeling perspective.
Now that you know the basic requirements to create a pattern, you are ready to import the sample patterns. You will apply a sample pattern to elements in your new UML model.
You are ready to begin Exercise 2: Importing sample patterns.