carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_proj_new_with_template.htm
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
       
     2 <html lang="en">
       
     3 
       
     4 <head>
       
     5 <meta http-equiv="Content-Language" content="en-us">
       
     6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       
     7 <title>Creating a project</title>
       
     8 <link rel="stylesheet" type="text/css" href="../help.css">
       
     9 </head>
       
    10 
       
    11 <body>
       
    12 
       
    13 <h1>Creating a project via a project template</h1>
       
    14 
       
    15 <p>From CDT 4.0 its possible to create projects based upon templates defined by the IDE supplier. What this means is
       
    16 that you can easily create a project which contains customized source code and is ready for use in a few clicks. Some
       
    17 aspects of the generated project may be customized by the user as part of the new project wizard.</p>
       
    18 
       
    19 <p>To create a project from a template:</p>
       
    20 
       
    21 <ol>
       
    22   
       
    23   <li>Click <b>File &gt; New &gt; C Project</b> or <b>File &gt; New &gt; C++ Project</b>.
       
    24   <br>
       
    25   <br>
       
    26   <img src="../images/cdt_t_proj_new_with_template_1.png" alt="File &gt;New &gt; C++ Project">
       
    27   <br>
       
    28   </li>
       
    29   
       
    30   <li>The wizard will open as shown below.<br>
       
    31   Expand the project type that you are interested in. For more information on project types, see <a href="cdt_t_proj_platf.htm">Selecting a 
       
    32   project type</a> This shows the template projects that you can use as a basis
       
    33   for your new project. CDT comes with some simple templates, but ISVs can add further templates by using the
       
    34   <em>org.eclipse.cdt.core.templates</em> extension point.<br>
       
    35   In the <b>Project Name</b> box, type a name. The example uses &quot;HelloWorld&quot;</li>
       
    36   <br>
       
    37   <br>
       
    38   <img src="../images/cdt_t_proj_new_with_template_2.png" alt="New Project Wizard">
       
    39   <br>
       
    40   </li>
       
    41   
       
    42   <li>Click <b>Next</b>.</li>
       
    43   <li>The next page is dependent on the type of template you selected. It will consist of a number of input fields, maybe with
       
    44   default values, that will be fed into the template you create.</li>
       
    45   <br>
       
    46   <br>
       
    47   <img src="../images/cdt_t_proj_new_with_template_3.png" alt="New Project Wizard">
       
    48   <br>
       
    49   </li>
       
    50   
       
    51   <li>This last page &quot;Select Configurations&quot; can be skipped, or allows further project configuration in the same way as non-template-based projects.
       
    52   <br>
       
    53   <br>
       
    54   <img src="../images/cdt_t_proj_new_with_template_4.png" alt="New Project Wizard"></li>
       
    55   </br>
       
    56   </li>
       
    57   <li>To create your project, click <b>Finish</b>.
       
    58   
       
    59   <li>In the Project Explorer you will see that the new project has been created. You will see that the source file has
       
    60   been customized with the values you entered earlier in the wizard.
       
    61   <br>
       
    62   <br>
       
    63   <img src="../images/cdt_t_proj_new_with_template_5.png" alt="The project created by the wizard"></li>
       
    64   </br>
       
    65   </li>
       
    66   
       
    67   <li>Sometimes values you enter into the template wizard will be remembered between sessions in order that you do not
       
    68   need enter them each time. If you want to change these you can use <b>Window &gt; Preferences &gt; C/C++ &gt; Template Default Values</b>
       
    69   <br>
       
    70   <br>
       
    71   <img src="../images/cdt_t_proj_new_with_template_6.png" alt="New Project Wizard"></li>
       
    72   </br>
       
    73   </li>
       
    74 </ol>
       
    75 
       
    76 <p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
       
    77 <br><a href="../concepts/cdt_c_projects.htm">CDT Projects</a>
       
    78 <br><a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p>
       
    79 
       
    80 <p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"> 
       
    81 <br><a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p>
       
    82 <br><a href="cdt_t_proj_new.htm">Creating a project</a></p>
       
    83 
       
    84 <p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
       
    85 <br><a href="../reference/cdt_u_properties.htm">Project properties</a>
       
    86 <br><a href="../reference/cdt_o_views.htm">Views</a></p>
       
    87 
       
    88 <img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
       
    89 </body>
       
    90 
       
    91 </html>