Sharing Patterns

By default, Together creates a Local Templates directory which it uses to store all the ready-to-use templates that come with Together.

Changes you make to these templates are only available locally, making it difficult to distribute and manage templates for your team.

But you can use the Templates view (Window > Show View > Other... > Together Patterns > Templates) to store and share your templates:

  1. In the Templates view, right click on the Local Templates node.



  2. Select New. From the submenu, select the type of template you want to create. This example uses the class template.



  3. In the Save Pattern wizard, select a save location:





  4. The list of locations contains all projects that have the templates preference enabled. By default, this preference is usually disabled. (If your project doesn't appear in the list: in the Navigator View, right click on the project, select Properties > Templates, and check the Enable Templates option.)



  5. Select your project from the list, and use the Name field to give the new template a name.



  6. This creates a .template directory within your project. When you return to the Templates view, you should be able to see your project. Under your project will be the template you have just created, grouped under the Java Class node within the Misc category.



  7. By right clicking on the Java Class node and selecting Create Category... you can create subsections for the node. Categories you create will appear in the location list under the project. You can use these to organize, manage, and share your templates: Once you have shared the project itself, use the Team command on the context menu of the Templates view to Add, Commit, and Update the templates themselves using VCS.