@@ -27,88 +27,119 @@ <h1>
27
27
SWAG Import Wizard
28
28
</ h1 >
29
29
< p >
30
- This wizard is used to enable you import snippets from the
30
+ This wizard is used to enable you to import snippets from the
31
31
< a href ="about_swag.htm "> SWAG Database</ a > into your code snippets
32
32
database. The wizard is accessed from the < em > Snippets | Import
33
33
Snippets From SWAG</ em > menu option.
34
34
</ p >
35
35
< h2 >
36
- First page
36
+ Page 1: < em > Import snippets from SWAG </ em >
37
37
</ h2 >
38
38
< p >
39
- This page simply gives an overview of how to use the wizard. Click the
40
- < em > Next</ em > button to display the < em > Select required snippets</ em >
41
- page.
39
+ This page gives an overview of how to use the wizard.
40
+ </ p >
41
+ < p >
42
+ The wizard requires that you have a suitable copy of SWAG stored on your
43
+ computer. If you haven't yet got it then you need to download it before
44
+ continuing. The instructions shown in the box on this page of the wizard
45
+ explain how to do this.
46
+ </ p >
47
+ < p >
48
+ When you are ready, click the < em > Next</ em > button.
49
+ </ p >
50
+ < h2 >
51
+ Page 2: < em > Select SWAG database download folder</ em >
52
+ </ h2 >
53
+ < p >
54
+ On this page you need to provide the full path to the folder where you
55
+ downloaded the SWAG database. Enter the path in the edit box. You can
56
+ click the ellipsis button to the right of the edit box to display a
57
+ standard browse for folder dialogue box and choose the folder from there.
58
+ The chosen folder will be entered into the edit box for you.
59
+ </ p >
60
+ < p >
61
+ Once you have entered the path click < em > Next</ em > . The data in the folder
62
+ will then be read and, if valid, the next page of the wizard will be
63
+ displayed. A progress bar may be displayed if the process of reading the
64
+ data takes some time. If the data is invalid an error message will be
65
+ displayed and the page will not change.
42
66
</ p >
43
67
< h2 >
44
- " Select required snippets" page
68
+ Page 3: < em > Select required snippets</ em >
45
69
</ h2 >
46
70
< p >
47
- When this page is first displayed it downloads information about the
48
- available categories from the SWAG database. A list of categories is then
49
- displayed in the left hand, < em > SWAG categories </ em > , list box.
71
+ When this page is first displayed it displays all the categories of
72
+ snippets available in the SWAG database in the < em > SWAG categories</ em >
73
+ list box.
50
74
</ p >
51
75
< p >
52
76
Choose a category in the list and click the < em > Show Snippets In
53
77
Category</ em > button to display a list of its snippets in the right
54
- hand list box. The first time you choose a category the wizard will
55
- download the snippet list from the SWAG database. Note that
56
- double-clicking a category has the same effect as clicking the < em > Show
57
- Snippets In Category</ em > button.
78
+ hand list box. Alternatively just double-click the category name. The
79
+ first time you choose a category the wizard will read the list of snippets
80
+ from the database and a progress bar may be displayed while this is done.
58
81
</ p >
59
82
< p >
60
83
Select any snippets you want to import by ticking the check box next to
61
84
the snippet's name. If you want to preview the snippet before deciding
62
- whether to import it highlight the snippet and click the < em > Preview
63
- Selected Snippet</ em > button. The snippet will then be downloaded (if
64
- necessary) and displayed in a dialogue box. Note that double-clicking a
65
- snippet has the same effect as clicking the < em > Preview Selected
66
- Snippet</ em > button.
85
+ whether to import it, highlight the snippet and click the < em > Preview
86
+ Selected Snippet</ em > button. Alternatively just double click the snippet
87
+ name. The snippet will then be read from the database (if necessary) and
88
+ displayed in a dialogue box.
67
89
</ p >
68
90
< p >
69
91
Repeat this process for further categories if you wish. When you are
70
92
ready to import your chosen snippets click the < em > Next</ em > button to
71
- display the < em > Ready to import</ em > page.
93
+ display the next page. Note that you must select at least one snippet in
94
+ order to move on.
95
+ </ p >
96
+ < p >
97
+ < strong class ="warning "> Warning:</ strong > Do not select too many snippets
98
+ to be imported at one time because the import process is not very
99
+ efficient and can take a long time.
72
100
</ p >
73
101
< h2 >
74
- " Ready to import" page
102
+ Page 4: < em > Ready to import</ em >
75
103
</ h2 >
76
104
< p >
77
105
This page lists all the snippets you have selected for import along with
78
106
the unique ID (i.e. snippet name) that will be assigned to it after
79
- import. Note that snippets may be downloaded from the SWAG database when
80
- the page is displayed.
107
+ import. Note that some snippets may need to be retrieved from the SWAG
108
+ database when the page is displayed and a progress bar may be displayed
109
+ while this happens.
81
110
</ p >
82
111
< p >
83
112
You should review your selection. If you want to make any changes use the
84
- < em > Back</ em > button to go back < em > Select required snippets</ em > page.
113
+ < em > Back</ em > button to go back to the previous page and de-select any
114
+ unwanted snippets or select any snippets you may have missed.
85
115
</ p >
86
116
< p >
87
- When you are ready to import click the < em > Import</ em > button. Once
88
- < em > Import</ em > has been clicked the wizard will perform the import. A
89
- dialogue box will be displayed while the import proceeds. When the import
90
- has finished the < em > Import complete</ em > page.
117
+ When you are ready to proceed, click the < em > Import</ em > button. Once
118
+ < em > Import</ em > has been clicked the wizard will perform the import
119
+ – there is no going back. A dialogue box will be displayed while the
120
+ import proceeds. When the import has finished the final page of the wizard
121
+ will be displayed.
91
122
</ p >
92
123
< h2 >
93
- Import complete
124
+ Page 5: < em > Import complete</ em >
94
125
</ h2 >
95
126
< p >
96
127
This page simply confirms the import has completed. You should note that
97
- the snippets will have been imported into a special category named
98
- "SWAG Imports" by default .
128
+ all the snippets will have been imported into the same special category,
129
+ the name of which will be displayed .
99
130
</ p >
100
131
< p >
101
- Click the < em > Finish</ em > to close the wizard.
132
+ Click the < em > Finish</ em > button to close the wizard.
102
133
</ p >
103
134
< p >
104
135
The imported snippets are fully editable like any other user defined
105
136
snippet.
106
137
</ p >
107
138
< p >
108
139
< strong > Note:</ strong > < em > CodeSnip</ em > does not track snippets imported
109
- from SWAG, so if you import same snippet more than once it will be
140
+ from SWAG, so if you import the same snippet more than once it will be
110
141
duplicated in your local database – it will not overwrite the
111
- original.
142
+ original. You will not be warned about such duplications.
112
143
</ p >
113
144
</ body >
114
145
</ html >
0 commit comments