Saving Patterns

You can use the context command Save as Pattern to create a new pattern based on an existing class or interface.

  1. Right-click on a class in UML Explorer, UML Navigator, or Diagram views.


  2. Select Save as Pattern. The Create Template Wizard opens:




  3. NB: Only template-enabled projects appear in the destination list. To enable templates for a project:
    1. Open the UML Explorer or Navigator views.
    2. Right-click on the project.
    3. Select Properties.
    4. In the treeview, click Templates.
    5. Check Enable Templates.


  4. Enter a name for your pattern.


  5. Select the destination.


  6. Click Finish.

NB: If you choose to overwrite an existing pattern or template, you are prompted with a dialog box to overwrite it.

Related Topic:

Save As Pattern Wizard