Applying patterns by dragging and dropping

You must create a pattern instance as the first part of applying a pattern to your model design. Patterns that you can apply always appear in the Pattern Explorer view. You can drag the pattern to a UML model or to a model's diagram editor.

About this task

The Apply Pattern wizard is another, more structured, tool option to apply patterns and it creates the pattern instance in the UML model. You can create multiple concurrent instances of the same pattern.

You can only drag a pattern to elements that can own the type of pattern you are applying (collaboration, class, or package pattern).

To create a pattern instance:

Procedure

In the Pattern Explorer view, drag a pattern to the diagram editor owned by a UML model. A pattern instance is created both in the diagram editor and in the model.

What to do next

After a pattern instance is created, you can modify it by supplying arguments for one or more of the pattern's template parameters. The arguments depend on the pattern design and your requirements for use of the pattern.

Feedback