SWAG Import Wizard

This wizard is used to enable you import snippets from the SWAG Database into your code snippets database. The wizard is accessed from the Snippets | Import Snippets From SWAG menu option.

First page

This page simply gives an overview of how to use the wizard. Click the Next button to display the Select required snippets page.

"Select required snippets" page

When this page is first displayed it downloads information about the available categories from the SWAG database. A list of categories is then displayed in the left hand, SWAG categories, list box.

Choose a category in the list and click the Show Snippets In Category button to display a list of its snippets in the right hand list box. The first time you choose a category the wizard will download the snippet list from the SWAG database. Note that double-clicking a category has the same effect as clicking the Show Snippets In Category button.

Select any snippets you want to import by ticking the check box next to the snippet's name. If you want to preview the snippet before deciding whether to import it highlight the snippet and click the Preview Selected Snippet button. The snippet will then be downloaded (if necessary) and displayed in a dialogue box. Note that double-clicking a snippet has the same effect as clicking the Preview Selected Snippet button.

Repeat this process for further categories if you wish. When you are ready to import your chosen snippets click the Next button to display the Ready to import page.

"Ready to import" page

This page lists all the snippets you have selected for import along with the unique ID (i.e. snippet name) that will be assigned to it after import. Note that snippets may be downloaded from the SWAG database when the page is displayed.

You should review your selection. If you want to make any changes use the Back button to go back Select required snippets page.

When you are ready to import click the Import button. Once Import has been clicked the wizard will perform the import. A dialogue box will be displayed while the import proceeds. When the import has finished the Import complete page.

Import complete

This page simply confirms the import has completed. You should note that the snippets will have been imported into a special category named "SWAG Imports" by default.

Click the Finish to close the wizard.

The imported snippets are fully editable like any other user defined snippet.

Note: CodeSnip does not track snippets imported from SWAG, so if you import same snippet more than once it will be duplicated in your local database – it will not overwrite the original.