carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_proj_new_with_template.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
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>Creating a project</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<h1>Creating a project via a project template</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<p>From CDT 4.0 its possible to create projects based upon templates defined by the IDE supplier. What this means is
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
that you can easily create a project which contains customized source code and is ready for use in a few clicks. Some
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
aspects of the generated project may be customized by the user as part of the new project wizard.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<p>To create a project from a template:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
  <li>Click <b>File &gt; New &gt; C Project</b> or <b>File &gt; New &gt; C++ Project</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
  <img src="../images/cdt_t_proj_new_with_template_1.png" alt="File &gt;New &gt; C++ Project">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
  <br>
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
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
  <li>The wizard will open as shown below.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    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 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
  project type</a> This shows the template projects that you can use as a basis
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
  for your new project. CDT comes with some simple templates, but ISVs can add further templates by using the
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
  <em>org.eclipse.cdt.core.templates</em> extension point.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
  In the <b>Project Name</b> box, type a name. The example uses &quot;HelloWorld&quot;</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
  <img src="../images/cdt_t_proj_new_with_template_2.png" alt="New Project Wizard">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
  <li>Click <b>Next</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    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
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
  default values, that will be fed into the template you create.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
  <br>
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
  <img src="../images/cdt_t_proj_new_with_template_3.png" alt="New Project Wizard">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    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.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
  <br>
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
  <img src="../images/cdt_t_proj_new_with_template_4.png" alt="New Project Wizard"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
  </br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
  <li>To create your project, click <b>Finish</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
  <li>In the Project Explorer you will see that the new project has been created. You will see that the source file has
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
  been customized with the values you entered earlier in the wizard.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
  <img src="../images/cdt_t_proj_new_with_template_5.png" alt="The project created by the wizard"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
  </br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
  <li>Sometimes values you enter into the template wizard will be remembered between sessions in order that you do not
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    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>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
  <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
  <img src="../images/cdt_t_proj_new_with_template_6.png" alt="New Project Wizard"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
  </br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
<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
    77
<br><a href="../concepts/cdt_c_projects.htm">CDT Projects</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
<br><a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
<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
    81
<br><a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
<br><a href="cdt_t_proj_new.htm">Creating a project</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
<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
    85
<br><a href="../reference/cdt_u_properties.htm">Project properties</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
<br><a href="../reference/cdt_o_views.htm">Views</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
</html>