<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eclipse RCP</title>
	<atom:link href="http://eclipsercp.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsercp.org</link>
	<description>Words about the book</description>
	<lastBuildDate>Fri, 08 Oct 2010 13:46:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Chapter 3 errata</title>
		<link>http://eclipsercp.org/2010/10/chapter-3-errata/</link>
		<comments>http://eclipsercp.org/2010/10/chapter-3-errata/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 14:42:01 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=39</guid>
		<description><![CDATA[Errata for Chapter 3 of the Eclipse RCP book 2nd Edition]]></description>
			<content:encoded><![CDATA[<p><strong>Page 40</strong> &#8212; The list of steps for adding the Delta Pack to your target suggests adding the directory ${workspace_loc}/HyperbolaTarget/delta.pack to your target definition. If in fact you followed the preceding steps and imported the Delta Pack archive, you would have to add the directory ${workspace_loc}/HyperbolaTarget/delta.pack<strong>/eclipse</strong>. The &#8220;eclipse&#8221; segment is missing in the example.</p>
<p>Note however that in the target supplied with the Samples Manager we eliminated the &#8220;eclipse&#8221; folder in the Delta Pack and so, as shown in figure 3-4, the eclipse segment was not needed in this case.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/10/chapter-3-errata/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chapter 4 errata</title>
		<link>http://eclipsercp.org/2010/10/chapter-4-errata/</link>
		<comments>http://eclipsercp.org/2010/10/chapter-4-errata/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 14:35:20 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=38</guid>
		<description><![CDATA[Errata for Chapter 4 of the Eclipse RCP book 2nd Edition]]></description>
			<content:encoded><![CDATA[<p><strong>Page 52</strong> &#8212; The snippet of Application code incorrectly shows the old Eclipse application run() method. The best practice for defining applications is now to implement IApplication which requires a start() and stop() methods as shown below.</p>
<pre class="brush: java;">
public class Application implements IApplication {
	public Object start(IApplicationContext context) {
		Display display = PlatformUI.createDisplay();
		try {
			int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
			if (returnCode == PlatformUI.RETURN_RESTART) {
				return IApplication.EXIT_RESTART;
			}
			return IApplication.EXIT_OK;
		} finally {
			display.dispose();
		}
	}

	public void stop() {
		if (!PlatformUI.isWorkbenchRunning())
			return;
		final IWorkbench workbench = PlatformUI.getWorkbench();
		final Display display = workbench.getDisplay();
		display.syncExec(new Runnable() {
			public void run() {
				if (!display.isDisposed())
					workbench.close();
			}
		});
	}
}
</pre>
<p><strong>Page 60</strong> &#8212; In the description of how to get to the launch configurations (section 4.3.2) the menu path should be <strong>Run &gt; Run Configurations&#8230;</strong> and <strong>Run &gt; Debug Configurations&#8230;</strong>.  Similarly, Figure 4-12 shows an outdated view of the <strong>Run</strong> menu.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/10/chapter-4-errata/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Chapter 17 errata</title>
		<link>http://eclipsercp.org/2010/09/chapter-17-errata/</link>
		<comments>http://eclipsercp.org/2010/09/chapter-17-errata/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 14:27:45 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=37</guid>
		<description><![CDATA[Errata for Chapter 17 of the Eclipse RCP book 2nd Edition]]></description>
			<content:encoded><![CDATA[<p><strong>Page 265</strong> &#8212; Figure 17-1 includes a number of Java code lines involving String literals. It appears that a number of the &#8221; (quote) characters were converted to ? (question mark) characters during the creation of the artwork. There is also a stray ? character just before the last block of code. Obviously these should be removed or replaced  to make the Java code syntactically valid.</p>
<p><strong>Page 277</strong> &#8212; In the BrowserView code snippet the &#8220;nextAction&#8221; variable declared at the beginning of createControlPart() should be named &#8220;forwardAction&#8221; to match its use in the last line of the snippet.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/09/chapter-17-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1st Edition Samples re-released</title>
		<link>http://eclipsercp.org/2010/08/1st-edition-samples-re-released/</link>
		<comments>http://eclipsercp.org/2010/08/1st-edition-samples-re-released/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 20:13:59 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=35</guid>
		<description><![CDATA[The original RCP book samples have been re-released on the book site, http://eclipsercp.org.]]></description>
			<content:encoded><![CDATA[<p>Several people have requested that the samples for the 1st Edition of the <a href="http://eclipsercp.org">Eclipse RCP book</a> be made available.  So, by popular demand, we have put a <a href="http://eclipsercp.org/EclipseRCP_1st_Edition_Samples.zip ">zipped update site</a> on the <a href="http://eclipsercp.org/downloads">downloads</a> page. Note that the samples were tested for the Eclipse of the day and have not been tested on the latest Eclipse infrastructure. Most things should work but the samples may not reflect the current best practices or technology usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/08/1st-edition-samples-re-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chapter 9 errata</title>
		<link>http://eclipsercp.org/2010/07/chapter-9-errata/</link>
		<comments>http://eclipsercp.org/2010/07/chapter-9-errata/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:21:44 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=33</guid>
		<description><![CDATA[Errata for Chapter 9 of the Eclipse RCP book]]></description>
			<content:encoded><![CDATA[<p><strong>Page 131</strong> &#8212; In Chapter 8 we defined the Hyperbola product and set its ID. Unfortunately on page 117 of the first printing we suggested using &#8220;org.eclipsercp.hyperbola&#8221; for the product ID. In Chapter 9 when you go to export the product and use the <strong>Generate Metadata repository</strong> option in the export wizard, there is a conflict between this product id and the id of the org.eclipsercp.hyperbola bundle. The result is that the export silently fails and the output directory does not contain an executable.  To address this problem, ensure that the ID of the product in the top box of the <strong>Overview</strong> page of the product editor, is something other than org.eclipsercp.hyperbola.  For example, we suggest using org.eclispercp.hyperbola.product.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/chapter-9-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter 8 errata</title>
		<link>http://eclipsercp.org/2010/07/chapter-8-errata/</link>
		<comments>http://eclipsercp.org/2010/07/chapter-8-errata/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:15:47 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=32</guid>
		<description><![CDATA[Errata for Chapter 8 of the Eclipse RCP book]]></description>
			<content:encoded><![CDATA[<p><strong>Page 117</strong> &#8212; In Figure 8-2 the product ID (top text box) is show an &#8220;org.eclipsercp.hyperbola&#8221;. This works fine in the sample for Chapter 8 but in subsequent chapters where building with p2 metadata is involved, that id will collide with the id of the org.eclipsercp.hyperbola bundle. We suggest changing the ID here to something like org.eclipsercp.hyperbola.product to avoid ambiguity.</p>
<p><strong>Page 125</strong> &#8212; When you add translatable messages to the plugin.properties file you should ensure that the bundle&#8217;s MANIFEST.MF is updated to indicate where the translations are to be found. For example,</p>
<p>Bundle-Localization: plugin</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/chapter-8-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter 24 errata</title>
		<link>http://eclipsercp.org/2010/07/chapter-24-errata/</link>
		<comments>http://eclipsercp.org/2010/07/chapter-24-errata/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 04:56:45 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=31</guid>
		<description><![CDATA[Errata for Chapter 24 of the Eclipse RCP book]]></description>
			<content:encoded><![CDATA[<p><strong>Page 402</strong> &#8212; The Target Export wizard was added in Eclipse 3.6.  People developing for 3.5.x can move to 3.6 since you have a distinct Target definition.  That&#8217;s the point of target platforms.  Alternatively you can use a 3.6 to do the target export and continue with 3.5.2 for the book samples.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/chapter-24-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample code updated</title>
		<link>http://eclipsercp.org/2010/07/sample-code-updated/</link>
		<comments>http://eclipsercp.org/2010/07/sample-code-updated/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 01:18:39 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=29</guid>
		<description><![CDATA[New version of the Eclipse RCP book sample code is now available]]></description>
			<content:encoded><![CDATA[<p>I just uploaded a new version of the <a href="http://eclipsercp.org">Eclipse RCP book</a> second edition sample code. You can connect to the software site (http://eclipsercp.org) and updating your current Samples Manager or installing the new one if you don&#8217;t have it already installed.  We are also making available an <a href="http://eclipsercp.org/EclipseRCP_Samples.zip">archive of the software site</a> for those looking to get around firewall issues.</p>
<p>Below is a quick summary of the changes in this new version:</p>
<ul>
<li>General clean up of glitches and errata reported by readers/reviewers</li>
<li>New target platform that is smaller and more complete</li>
<li>Chapter 14 code updated to better reflect the use of p2</li>
<li>Chapter 9 product definition updated to export and produce the correct launcher on Mac</li>
<li>Fixes to avoid NPEs and other problems when login to a chat server was not possible</li>
</ul>
<p>Check out the new samples and be sure to let us know on the <a href="http://eclipsercp.org/forums">forums</a> if there are problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/sample-code-updated/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Chapter 14 errata</title>
		<link>http://eclipsercp.org/2010/07/chapter-14-errata/</link>
		<comments>http://eclipsercp.org/2010/07/chapter-14-errata/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:16:14 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=28</guid>
		<description><![CDATA[Errata for Chapter 14 of the Eclipse RCP book]]></description>
			<content:encoded><![CDATA[<p><strong>Page 203</strong> &#8212; The Multi-User Chat (MUC) feature mentioned in this discussion is an example only.  The sample code does not include such a feature.</p>
<p><strong>Page 208</strong> &#8212; The features to be included in the Hyperbola feature are part of the target platform. In Eclipse 3.5.x there is a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=288425">PDE bug</a> that prevents features from software sites from being added to the target platform. This has been resolved in 3.6. To work around this, we have manually added the required features to the HyperbolaTarget project&#8217;s misc/features directory.  Alternatively, you can use Eclipse 3.6 to do your development.</p>
<p>Note as well that the org.eclipse.equinox.p2.user.ui feature is listed as the Equinox p2 Provisioning feature in the Galileo repository and is not included in the Equinox p2 SDK feature.</p>
<p><strong>Page 210</strong> &#8212; To get a binding for %aboutText you need to tell OSGi where to find translations. Do this by adding the following header to the Hyperbola bundle manifest:</p>
<p>Bundle-Localization: plugin</p>
<p><strong>Page 21</strong><strong>1</strong> &#8211; To be able to run or test the new p2 function, you have to export Hyperbola and be running it as a normal application. You also need to have a repository to which you can point Hyperbola for updates or new function. You can do this with the following steps:</p>
<div>
<ul>
<li>Export Hyperbola with the <strong>Generate Metadata Repository</strong> box selected</li>
<li>Copy the output Hyperbola directory to some other location  (or unzip the output zip somewhere)</li>
<li>Change the version number of the Hyperbola feature or product to simulate a change</li>
<li>Re-export Hyperbola to the same location</li>
<li>Run the original Hyperbola and add the exported &#8220;repository&#8221; directory as a local software site in the p2 <strong>Available Software Sites</strong> preferences UI. This will come up automatically if you use <strong>Help &gt; Check for Updates</strong></li>
<li>After updating and restarting, confirm that the update happened using <strong>About &gt; Installation Details</strong> and look for the version number you changed</li>
<li>You can also create some new features and export them to the same repository.  They will then show up in the Install New Software UI</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/chapter-14-errata/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chapter 13 errata</title>
		<link>http://eclipsercp.org/2010/07/chapter-13-errata/</link>
		<comments>http://eclipsercp.org/2010/07/chapter-13-errata/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:01:36 +0000</pubDate>
		<dc:creator>Jeff McAffer</dc:creator>
				<category><![CDATA[errata]]></category>

		<guid isPermaLink="false">http://eclipsercp.org/?p=25</guid>
		<description><![CDATA[Errata for Chapter 13 of the Eclipse RCP book]]></description>
			<content:encoded><![CDATA[<p><strong>Page 188</strong> &#8212; The third step says to use the filter box to find the Help feature.  Due to a bug in the way PDE works, doing this can sometimes cause other, previously selected features to be unselected. We suggest that you simply turn off categorization and scroll to &#8220;Eclipse Help System&#8221; and select that feature.</p>
<p><strong>Note</strong> &#8212; The Help UI requires the UI forms bundle (org.eclipse.ui.forms).  This is not part of the standard RCP feature and so typically would not be part of your target platform. We have added it manually in the provided target definition in the <em>misc</em> folder as a convenience. As an alternative, you could add the Eclipse Platform SDK feature from the Galileo repository to your target.  This includes UI forms, in addition to many other things, some of which you may find useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsercp.org/2010/07/chapter-13-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

