carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_imp_code_temp.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<title>Importing and exporting templates</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
<h1>Importing and exporting templates</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
<p>You can import and export templates.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
<p><b>Note:</b> A template must be an .xml file formatted as follows:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
&lt;templates&gt;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
&lt;template name=&quot;author&quot; description=&quot;author name&quot; context=&quot;C&quot; enabled=&quot;true&quot;&gt;author ${user}&lt;/template&gt; 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
&lt;/templates&gt;</pre>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
<img src="../images/code_templates.png" alt="Templates Preferences">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
<p>To import a template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
  <li>Click <b>Window &gt; Preferences</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
  <li>Expand <b>C/C++</b>, expand <b>Editor</b> and click <b>Templates</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
  <li>Click <b>Import</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
  <li>Select the template file that you want to import.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
  <li>Click <b>OK</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
  The template list is updated to include the template that you imported.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
<p>To export a template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
  <li>Click <b>Window &gt; Preferences</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
  <li>Expand <b>C/C++</b>, expand <b>Editor</b> and click <b>Templates</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
  <li>Select the templates that you want to export and click the <b>Export...</b> button. The Export Templates dialog opens.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
  <li>In <b>File name</b> box, type the path&nbsp; where you want your templates file to be saved.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
  <li>Click <b>Save</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
  The templates.xml file containing the templates you exported is saved in your file system.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
<a href="../concepts/cdt_c_content_assist.htm">Content Assist</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<a href="cdt_t_contentassist.htm">Using Content Assist</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
<a href="cdt_t_add_codetemp.htm">Creating and editing templates</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
<a href="../reference/cdt_u_code_temp.htm">Templates page</a></p><p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
</html>