carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/cheatsheets/cs_cdt_import_project.xml
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <cheatsheet title="Importing C/C++ Projects">
       
     3    <intro>
       
     4       <description>
       
     5          This guide walks you though the process of importing a C/C++ project into CDT.
       
     6       </description>
       
     7    </intro>
       
     8    <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
       
     9       <description>
       
    10          Start by setting up the CDT development environment.
       
    11       </description>
       
    12       <subitem label="Open C/C++ perspective." skip="true">
       
    13          <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.cdt.ui.CPerspective)" confirm="false">
       
    14          </command>
       
    15       </subitem>
       
    16    </item>
       
    17    <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
       
    18       <description>
       
    19          Create a C++ or C project by choosing one of the following wizards.
       
    20       </description>
       
    21       <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
       
    22          <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
       
    23          </command>
       
    24       </subitem>
       
    25       <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
       
    26          <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
       
    27          </command>
       
    28       </subitem>
       
    29       <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
       
    30       </subitem>
       
    31       <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
       
    32       </subitem>
       
    33       <subitem label="Enter Basic Project information, then click Next." skip="true">
       
    34       </subitem>
       
    35       <subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
       
    36       </subitem>
       
    37    </item>
       
    38    <item title="Importing files to the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-53.xhtml">
       
    39       <description>
       
    40          For a project to work it needs files. In this step you import your old project files into your new C/C++ project.
       
    41       </description>
       
    42       <subitem label="Click File &gt; Import and then use one of the following import methods." skip="true">
       
    43 		<!--
       
    44          <command serialization="org.eclipse.ui.file.import" confirm="false">
       
    45          </command>
       
    46 		-->
       
    47       </subitem>
       
    48       <subitem label="To import files from another project, click General &gt; Existing Projects into Workspace." skip="true">
       
    49       </subitem>
       
    50       <subitem label="To import files from the file system, click General &gt; File System." skip="true">
       
    51       </subitem>
       
    52    </item>
       
    53    <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
       
    54       <description>
       
    55          Build the program to create a binary and examine it in Outline and C/C++ Project views.
       
    56       </description>
       
    57       <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
       
    58 		<!--
       
    59          <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
       
    60          </command>
       
    61 		-->
       
    62       </subitem>
       
    63       <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
       
    64       </subitem>
       
    65       <subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
       
    66 		<!--
       
    67          <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
       
    68          </command>
       
    69 		-->
       
    70       </subitem>
       
    71    </item>
       
    72    <item title="Setup project properties" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_prop_general_idx.htm">
       
    73       <description>
       
    74          With the project imported and able to build, its time now to reset some project properties for easier development.
       
    75       </description>
       
    76       <subitem label="Right-click the project name in the Project Explorer view, then click Properties." skip="true">
       
    77       </subitem>
       
    78       <subitem label="Click C/C++ Indexer, then select Full C/C++ Indexer from the Select Indexer list." skip="true">
       
    79       </subitem>
       
    80    </item>
       
    81    <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
       
    82       <description>
       
    83          Create a run configuration that defines how the program is launched. Note you can define multiple run configurations if desired, each with its own settings.
       
    84       </description>
       
    85       <subitem label="Select the project and click Run As &gt; Open Run Dialog... to launch the program." skip="false">
       
    86 		<!--
       
    87 		  <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
       
    88          </command>
       
    89 		-->
       
    90       </subitem>
       
    91       <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
       
    92       </subitem>
       
    93       <subitem label="Type a configuration name in the Name box." skip="true">
       
    94       </subitem>
       
    95       <subitem label="If no binary name appears in the C/C++ Application box, click Search Project to select one in the Program Selection dialog." skip="true">
       
    96       </subitem>
       
    97       <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
       
    98          <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
       
    99          </command>
       
   100       </subitem>
       
   101    </item>
       
   102 </cheatsheet>