Creating Patterns

Together provides an Apply Pattern Wizard to help you create patterns in your code. To use the wizard:

  1. In the UML Explorer or Diagram views, right click on a class, interface, or other element. (You can access the Apply Pattern Wizard in several ways. See Apply Pattern Wizard in the Reference section for details.)

  2. From the context menu, select Apply Pattern. This opens the Apply Pattern Wizard.



  3. A list of pattern categories displays on the left. Expand the branches in the treeview to see individual patterns.

  4. Click on the pattern you wish to use. The pattern parameters display to the right. A description is at the bottom.

  5. To change a value, click . The Selection dialog opens:



  6. The Model elements tab displays a list of your existing elements. Select the one you wish to use and click Add>>. The element now appears in the Selected tab. To remove an element from the Selected tab, click the element and choose <<Remove. To finish, click OK.

    Notice the property value in the Apply Pattern Wizard changes to match your selection.

  7. Click Finish.