< Previous | Next >

Lesson 2: Import sample patterns

This lesson shows how to import the sample patterns. The samples are imported to a pattern samples repository and not to your workspace. Patterns only appear in your workspace if you select and apply them.
Before you begin, you must have created the UML project as detailed in Lesson 1: Create the model environment.
You will select a sample pattern in this tutorial. After you complete this tutorial, you can get additional practice applying the other sample patterns. After import, the sample patterns remain listed in your Pattern Explorer view unless you choose to remove them.

Patterns are accessible in the Pattern Explorer view. You can use the Pattern Explorer view to organize, select, and apply patterns. You can see the pattern samples immediately after you import them, if the Pattern Explorer view is open.

If you would like to view this lesson before you perform the steps, click:

To import sample patterns:

  1. Open the Pattern Explorer view.
    1. Click Window > Show View > Modeling > Pattern Explorer. The Pattern Explorer view opens with a group of advanced patterns already installed, the Design Patterns.
    You can apply any patterns that are listed in the Pattern Explorer view. If the Pattern Explorer is already open, skip this step.
  2. Import the pattern samples.
    1. Check the Pattern Explorer view to see if the sample patterns group, Sample Patterns, has already been imported. If they are imported, skip performing the following import instructions but do read the instructions for general knowledge about the samples.
    2. Open Help > Help Contents > Samples section.
    3. Expand Technology samples, expand Patterns, and click Patterns to apply.
    4. Click Import the sample. The Sample Patterns window opens.
    5. Accept the default project name and click Finish. The samples group, named Sample Patterns, appears in the Pattern Explorer view.
    6. Expand Sample Patterns to see the subgroups organized into folders. Each folder represents a pattern.
The Sample Patterns is a group of pattern samples that you can use to practice applying patterns. You cannot apply a pattern from the Project Explorer view.
< Previous | Next >

Feedback