bug 280125 - new and noteworthy for CDT 6.0
diff --git a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm
index f277cf6..d0d8008 100644
--- a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm
+++ b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm
@@ -42,6 +42,23 @@
<p><img src="../images/60/RenameInFile.png" alt="Rename in File">
</td>
</tr>
+
+ <tr>
+ <td>
+ <p align="right"><b>Refactoring</b></p>
+ </td>
+ <td>"Extract local variable" is added via editor context menu.
+ Select an expression in the editor and select Refactor > Extract local variable
+ from the context menu.
+ <p><img src="../images/60/refactor_before.png" alt="refactor"></p>
+ <p><img src="../images/60/refactorExtractLocalVar.png" alt="refactoring context menu highlighting 'extract local variable'">
+ <p>Give the new local variable a name</p>
+ <p><p><img src="../images/60/refactor_varname.png" alt="refactor"></p></p>
+ A local variable is created from the expression and its
+ use is inserted in the original expression.
+ <p><img src="../images/60/refactor_after.png" alt="refactor"></p>
+ </td>
+ </tr>
<tr>
<td>
<p align="right"><b>Add Include </b></p>
@@ -58,7 +75,7 @@
</li>
</ul>
- <!-- <p><img src="../images/60/image.png" alt="alternate text for image for accessibilty"> -->
+ <!-- <p><img src="../images/60/image.png" alt="alternate text for image for accessibility"> -->
</td>
</tr>
<tr>
@@ -113,7 +130,7 @@
<p align="right"><b>C style block commenting</b></p>
</td>
<td>C style block commenting (Ctrl-Shift-/) improved
- <!-- <p><img src="../images/60/image.png" alt="alternate text for image for accessibilty"> -->
+ <!-- <p><img src="../images/60/image.png" alt="alternate text for image for accessibility"> -->
</td>
</tr>
@@ -189,20 +206,7 @@
<p><img src="../images/60/CDT6.0_open_declaration.png" alt="Improved open declaration for unresolved symbols">
</td>
</tr>
- <!-- ******************** Refactoring ********************** -->
- <tr>
- <td colspan="2"><a name="refactoring"></a>
- <div style="font-size: 20px; font-weight: bold;">Refactoring</div>
- </td>
- </tr>
- <tr>
- <td>
- <p align="right"><b>Extract local variable</b></p>
- </td>
- <td>Extract local variable
- <!-- <p><img src="../images/60/image.png" alt="alternate text for image for accessibilty"> -->
- </td>
- </tr>
+
<!-- ******************** Project and Build ********************** -->
<tr>
<td colspan="2"><a name="projAndBuild"></a>
@@ -357,7 +361,7 @@
<p align="right"><b>texthere</b></p>
</td>
<td>text here.
- <p><img src="../images/image.png" alt="alternate text for image for accessibilty">
+ <p><img src="../images/image.png" alt="alternate text for image for accessibility">
</td>
</tr>
-->
diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_basic.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_basic.htm
index 7914bc4..c5d157f 100644
--- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_basic.htm
+++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_basic.htm
@@ -74,6 +74,7 @@
<h3>Step 2: Reviewing the code and building the project</h3>
<ol>
<li>From the Project Explorer in the C++ Projects View, double-click the .cpp file that was created for your project, for example, <tt>Hello World.cpp</tt>.
+ <p>Note that the file may be within a folder inside the project, e.g. the "src" folder.</p>
<p>This file opens in a default editor. It contains C++ template code for the Hello World example project you selected earlier.</p>
<br>
<p><b>Note:</b> You can specify a different editor, and add or modify existing code templates in <b>Window > Preferences</b>.</p><p>In addition, the <b>Outline</b> view has also been populated
@@ -97,8 +98,8 @@
<p>To run your application:</p>
<ol>
- <li>Within the C/C++ Perspective, click <b>Run > Run</b>.<p><br></p></li>
- <li>Select <b>C/C++ Local Application</b>.<p><br></p></li>
+ <li>Within the C/C++ Perspective, click <b>Run > Run Configurations...</b>.<p><br></p></li>
+ <li>Select <b>C/C++ Application</b>.<p><br></p></li>
<li>Click <b>New</b>.<p><br></p></li>
<p>A new Run Configuration is created. Its name and path to the executable are provided by the project ('Hello World' in our case).
diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm
index 6961d0e..8584641 100644
--- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm
+++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm
@@ -17,13 +17,14 @@
examining the contents of variables.</p>
<p>To debug a project:</p>
<ol>
- <li>Click <b>Run > Debug</b>.<p>The Debug window opens.</li>
- <li>Double-click <b>C++ Local Application</b>.</li>
+ <li>Click <b>Run > Debug Configurations...</b>.<p>The Debug Configurations dialog opens.</li>
+ <li>Double-click <b>C++ Application</b>.</li>
<li>In the <b>Name</b> field, type <b>Hello World</b>.</li>
<p>You can now select this debug launch configuration by name the next time
that you debug this project.</p>
- <li>In the <b>Project</b> box, type <b>hello.exe</b>.</li>
+ <li>In the <b>Project</b> box, type <b>hello.exe</b>. [???????]</li>
<li>Click <b>Debug</b>.</li>
+ <p>You will be prompted to switch to the Debug Perspective. Click <b>Yes</b></p>
<p>You will now see the debug perspective with the hello.exe application window open.
The C/C++ editor repositions in the perspective.</p>
<li>In the left margin of the main.cpp window, double-click to set a
diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_newproj.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_newproj.htm
index 9a21a53..24c3dbd 100644
--- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_newproj.htm
+++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_newproj.htm
@@ -61,6 +61,7 @@
<li>Click <b>Advanced Settings</b>.
<li>Click the <b>Binary Parser</b> tab.
<p><br><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_binparser01.png')">Click here to see an illustration.</a></p><br>
+</p>
</li>
<li>In the <b>Binary Parser</b> list, select <b>PE Windows Parser</b>.</li>
<p>To ensure the accuracy of the C/C++ Projects view and the ability to successfully
diff --git a/doc/org.eclipse.cdt.doc.user/images/60/refactorExtractLocalVar.png b/doc/org.eclipse.cdt.doc.user/images/60/refactorExtractLocalVar.png
new file mode 100644
index 0000000..cabb23f
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/60/refactorExtractLocalVar.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/60/refactor_after.png b/doc/org.eclipse.cdt.doc.user/images/60/refactor_after.png
new file mode 100644
index 0000000..22941e2
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/60/refactor_after.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/60/refactor_before.png b/doc/org.eclipse.cdt.doc.user/images/60/refactor_before.png
new file mode 100644
index 0000000..365c137
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/60/refactor_before.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/60/refactor_varname.png b/doc/org.eclipse.cdt.doc.user/images/60/refactor_varname.png
new file mode 100644
index 0000000..e940001
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/60/refactor_varname.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/intro/cdtWhatsnew.xml b/doc/org.eclipse.cdt.doc.user/intro/cdtWhatsnew.xml
index 343f003..90a708a 100644
--- a/doc/org.eclipse.cdt.doc.user/intro/cdtWhatsnew.xml
+++ b/doc/org.eclipse.cdt.doc.user/intro/cdtWhatsnew.xml
@@ -7,7 +7,7 @@
<link label="C/C++ Development"
url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm"
id="orgeclipsecdtdocuserwelcome-introLink" style-id="content-link">
- <text>Learn about what's new in CDT 5.0</text>
+ <text>Learn about what's new in CDT 6.0</text>
</link>
</group>
</extensionContent>
diff --git a/doc/org.eclipse.cdt.doc.user/toc.xml b/doc/org.eclipse.cdt.doc.user/toc.xml
index 3ce6191..4387cf4 100644
--- a/doc/org.eclipse.cdt.doc.user/toc.xml
+++ b/doc/org.eclipse.cdt.doc.user/toc.xml
@@ -22,7 +22,7 @@
<link toc="topics_Reference.xml" />
</topic>
- <topic label="What's new in CDT 5.0" href="concepts/cdt_c_whatsnew.htm"/>
+ <topic label="What's new in CDT 6.0" href="concepts/cdt_c_whatsnew.htm"/>
<topic label="Legal" href="notices.html"/>