Working with Embedded Wizard: Managing templates

In the preceding chapters you have learned about the Templates window as the provider of project member templates you can simply add wherever it is appropriate to your project. Also you have seen, that Embedded Wizard Studio includes already an extensive set of such templates for various typical application cases. Until now, this set was considered as being immutable. This, however, is not the case.

If you want you are free to add to the Templates window new folders and manage there your own private templates. You can, for example, prefabricate a GUI component and store it as a template. Later, when working on another project, you can easily reuse this component implementation. Similarly, you can prepare a method containing a special algorithm or a compound of several related embedded objects particularly preconfigured.

You can imagine, that the template is nothing else as a copy of the affected project member including its actual attributes and eventually other members embedded inside it. In principle, every project member can be stored in the Templates window. As such, the Templates window can be considered as a kind of persistent clipboard where you can put project members in order to reuse them later.

Create your own folders and templates

If you intend to create your own templates, you should first add a new folder to the Templates window. In principle, you can store your templates also within the folders installed per default with Embedded Wizard Studio. However, for the sake of clarity this approach is not recommended.

Once your folder is available you can create new templates inside it. If desired, you can provide description for every template. This description appears then automatically in the Templates window. Undesired templates you can simply delete, similarly as you can delete entire folders.

Manage template files

Your templates are stored as files in the directory named AppData\Local\Embedded Wizard\Templates just below your own home directory. Knowing this you can backup the templates if desired. When you disable the write permission for a file the corresponding template will be protected against modifications.

Add icons

If desired, you can decorate your own created templates with individual icons. Please note, that you can also associate icons with classes.