1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 185657, fix cheatsheets.

This commit is contained in:
Ken Ryall 2007-05-15 17:21:24 +00:00
parent 1c3c08ff84
commit 10323d137c
3 changed files with 50 additions and 59 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title="Creating a C/C++ Managed Make project"> <cheatsheet title="Creating C/C++ projects">
<intro href="/org.eclipse.cdt.doc.user/concepts/cdt_c_projects.htm"> <intro href="/org.eclipse.cdt.doc.user/concepts/cdt_c_projects.htm">
<description> <description>
This guide will walk you though the process of creating a simple Managed &quot;Hello World&quot; application using the CDT. This guide will walk you though the process of creating a simple &quot;Hello World&quot; C/C++ application using the CDT.
</description> </description>
</intro> </intro>
<item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm"> <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
@ -16,69 +16,56 @@
</item> </item>
<item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm"> <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
<description> <description>
Choose one type of C/C++ project from the list. Then type a project name and type of project. Create a C++ or C project by choosing one of the following wizards.
</description> </description>
<subitem label="Click File &gt; New &gt; CDT Project." skip="true"> <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard3)" confirm="false"> <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Click File &gt; New &gt; C++ Project." skip="true"> <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard1)" confirm="false"> <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Click File &gt; New &gt; C Project." skip="true"> <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard2)" confirm="false">
</command>
</subitem> </subitem>
</item> <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
<item title="Creating files in the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-44.htm">
<description>
For a project to work it needs files. In this step you add one or more files to your project.
</description>
<subitem label="Click File &gt; New &gt; File to create a new source file." skip="true">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewFileCreationWizard)" confirm="false">
</command>
</subitem> </subitem>
<subitem label="Type a name for the new file. For example main.c for a C project." skip="true"> <subitem label="Enter Basic Project information, then click Next." skip="true">
</subitem> </subitem>
<subitem label="Type some code into the main.c file. For example: #include &lt;stdio.h&gt; int main(int argc, char **argv) { printf (&quot;Hello\n&quot;); return (0); }" skip="true"> <subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
</subitem>
<subitem label="Click File &gt; Save to save your new file." skip="true">
<command serialization="org.eclipse.ui.file.save" confirm="false">
</command>
</subitem> </subitem>
</item> </item>
<item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm"> <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
<description> <description>
In this step you build the program to create a binary and examine it in a couple of C/C++ perspective views. Build the program to create a binary and examine it in Outline and C/C++ Project views.
</description> </description>
<subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true"> <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
<command serialization="org.eclipse.ui.project.buildAll" confirm="false"> <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Examine the Outline view." skip="true"> <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
</subitem>
<subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
<command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false"> <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Examine the program&apos;s binary." skip="true">
</subitem>
</item> </item>
<item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm"> <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
<description> <description>
The final step is to 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. The final step is to 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.
</description> </description>
<subitem label="Click Run &gt; Run.. to run the program." skip="true"> <subitem label="Select the project and click Run &gt; Run.. to launch the program." skip="false">
<command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false"> <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="true"> <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
</subitem> </subitem>
<subitem label="In the Main tab, click Search Program to select the binary to run." skip="true"> <subitem label="Type a configuration name in the Name box." skip="true">
</subitem> </subitem>
<subitem label="In the Program Selection dialog box, select the binary to run with this run configuration, then click OK." skip="true"> <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">
</subitem> </subitem>
<subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true"> <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
<command serialization="org.eclipse.ui.console.ConsoleView" confirm="false"> <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
</command> </command>
</subitem> </subitem>
</item> </item>

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title="Importing a C/C++ Managed Make Project"> <cheatsheet title="Importing C/C++ Projects">
<intro> <intro>
<description> <description>
This guide walks you though the process of importing a Managed Make project into CDT. A managed make project is one where the makefile is managed by the tool, not by manually editing it. This guide walks you though the process of importing a C/C++ project into CDT.
</description> </description>
</intro> </intro>
<item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm"> <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
@ -14,26 +14,30 @@
</command> </command>
</subitem> </subitem>
</item> </item>
<item title="Creating a C/C++ Managed Make project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm"> <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
<description> <description>
Choose one type of C/C++ project from the list. Then type a project name, the type of project, and the No Indexer setting. Create a C++ or C project by choosing one of the following wizards.
</description> </description>
<subitem label="Click File &gt; New &gt; CDT Project." skip="true"> <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard1)" confirm="false"> <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Click File &gt; New &gt; C++ Project." skip="true"> <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard1)" confirm="false"> <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Click File &gt; New &gt; C Project." skip="true"> <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard2)" confirm="false"> </subitem>
</command> <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
</subitem>
<subitem label="Enter Basic Project information, then click Next." skip="true">
</subitem>
<subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
</subitem> </subitem>
</item> </item>
<item title="Importing files to the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-53.xhtml"> <item title="Importing files to the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-53.xhtml">
<description> <description>
For a project to work it needs files. In this step you import your old project files into your new Managed Make project. For a project to work it needs files. In this step you import your old project files into your new C/C++ project.
</description> </description>
<subitem label="Click File &gt; Import and then use one of the following import methods." skip="true"> <subitem label="Click File &gt; Import and then use one of the following import methods." skip="true">
<command serialization="org.eclipse.ui.file.import" confirm="false"> <command serialization="org.eclipse.ui.file.import" confirm="false">
@ -46,44 +50,44 @@
</item> </item>
<item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm"> <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
<description> <description>
In this step you build the program to create a binary and examine it in a couple of C/C++ views. Build the program to create a binary and examine it in Outline and C/C++ Project views.
</description> </description>
<subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true"> <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
<command serialization="org.eclipse.ui.project.buildAll" confirm="false"> <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Examine the Outline view." skip="true"> <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
</subitem>
<subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
<command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false"> <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Examine the program&apos;s binary." skip="true">
</subitem>
</item> </item>
<item title="Setup project properties" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_sprop_indexer.htm"> <item title="Setup project properties" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_sprop_indexer.htm">
<description> <description>
With the project imported and able to build, its time now to reset some project properties for easier development. With the project imported and able to build, its time now to reset some project properties for easier development.
</description> </description>
<subitem label="Right-click the project name in the C/C++ Projects view, then click Properties." skip="true"> <subitem label="Right-click the project name in the Project Explorer view, then click Properties." skip="true">
</subitem> </subitem>
<subitem label="Click C/C++ Indexer, then select Full C/C++ Indexer from the Select Indexer list." skip="true"> <subitem label="Click C/C++ Indexer, then select Full C/C++ Indexer from the Select Indexer list." skip="true">
</subitem> </subitem>
</item> </item>
<item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm"> <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
<description> <description>
The final step is to 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. 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.
</description> </description>
<subitem label="Click Run &gt; Run.. to run the program." skip="true"> <subitem label="Select the project and click Run &gt; Run.. to launch the program." skip="false">
<command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false"> <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
</command> </command>
</subitem> </subitem>
<subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="true"> <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
</subitem> </subitem>
<subitem label="In the Main tab, click Search Program to select the binary to run." skip="true"> <subitem label="Type a configuration name in the Name box." skip="true">
</subitem> </subitem>
<subitem label="In the Program Selection dialog box, select the binary to run with this run configuration, then click OK." skip="true"> <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">
</subitem> </subitem>
<subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true"> <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
<command serialization="org.eclipse.ui.console.ConsoleView" confirm="false"> <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
</command> </command>
</subitem> </subitem>
</item> </item>

View file

@ -98,9 +98,9 @@
composite="false" composite="false"
contentFile="$nl$/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml" contentFile="$nl$/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml"
id="org.eclipse.cdt-doc.cheatsheet.cdt_basic" id="org.eclipse.cdt-doc.cheatsheet.cdt_basic"
name="Creating a C/C++ Managed Make project"> name="Creating C/C++ Projects">
<description> <description>
Use this tutorial to learn how to create a simple C/C++ project that uses the Managed Make system. Use this tutorial to learn how to create a simple C/C++ project.
</description> </description>
</cheatsheet> </cheatsheet>
<cheatsheet <cheatsheet
@ -108,7 +108,7 @@
composite="false" composite="false"
contentFile="$nl$/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_import_project.xml" contentFile="$nl$/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_import_project.xml"
id="org.eclipse.cdt-doc.cheatsheet.cdt_basic" id="org.eclipse.cdt-doc.cheatsheet.cdt_basic"
name="Importing a C/C++ Managed Make Project"> name="Importing C/C++ Projects">
<description> <description>
Use this tutorial to learn how to successfully import a CDT project. Use this tutorial to learn how to successfully import a CDT project.
</description> </description>