Editing Templates

You can edit templates through the Templates view. To open the Templates view:

From the menubar, select Window > Show View > Templates. Or, if Templates is not a menu option, select Window > Show View > Other > Together Patterns > Templates.

Renaming a Template

To rename a template:

  1. On the Templates view, right click on the template and select Rename. This opens the Rename Template dialog.
     
  2. Enter the new name and click OK.

Modifying a Template

To modify a template

  1. In the Templates view, right click on the Template.


  2. Select Open. This opens the template editor.


  3. Make your edits as desired.

There are three separate editors: one for link templates, one for class templates, and one for package templates. Some edits are entered in a text box, others through a dialog that opens when you click "Edit."

Restoring an Altered Template

You can restore a template that you have changed to its original state:

  1. In the Templates view, right click on the template.


  2. Select Restore.

NB: This option is available only after changes to a template have been saved.

Deleting a Template

To delete a template:

  1. In the Templates view, right click on the template.


  2. Select Delete.


  3. Confirm in the Delete dialog.

Restoring Deleted Templates

You can restore templates that you have deleted. You can do this only at the category level, which means all templates deleted from the category are restored simultaneously. You cannot restore deleted templates individually.

To restore deleted templates:

  1. In the Templates view, right click on the category for the deleted template.


  2. Select Restore deleted.