Visit eclipse.org for more Eclipse RCP fun!

Eclipse Rich Client Platform

Designing, Coding, and Packaging Java Applications

Sample Code and Companion CD

For those readers who purchased a soft-copy of the book or lost the companion CD, don't worry, this site has everything you need (and cannot get elsewhere). Below is a list of the original CD contents and instructions on where to get find the elements on the web.

  1. Readme from the CD
  2. Eclipse Platform SDKs, version 3.1 or 3.2.1 for Windows, Mac OS, and Linux
  3. Eclipse RCP SDK, version 3.1 or 3.2.1 for Windows, Mac OS, and Linux
  4. Eclipse Delta-Pack, version 3.1 or 3.2.1
  5. Sun JDK 1.4.2_08 for Windows and Linux
  6. Samples and tools (see below)

Samples and Tools

To access the samples and tools referenced throughout the book, follow the installation instructions in the readme but ignore the section on installing the sample code itself. Next, run the Eclipse 3.1 or 3.2.1.

  • Start the Update Manager from Help > Software Updates > Find and Install...
  • Select Search for new features to install.
  • Select New Remote Site and enter http://eclipsercp.org/updates in the URL field.
  • Click Finish and soon after you should see the RCP Book > RCP Book Tools 1.0.1 or RCP Book > RCP Book Tools 1.2.0 feature in the Search Results dialog.
  • Select 1.0.1 if you are running Eclipse 3.1 and 1.2.0 if you are running 3.2.1.
  • Check the feature and continue through the wizard to install the sample manager and all of the sample code (approx. a 16MB download).

Once the samples are installed, ensure that you follow the setup instructions in Chapter 3 of the book and start reading!

For your convenience we have also made the samples and tools available as a 3.1 standalone archive (38MB). For 3.2.1, please use our update site to access the new samples.

3.2 Updates

The code changes between the 1.0.1 and 1.2.0 samples are minimal. Here is a list of the changes that were made, we left as much of the code as is so that it doesn't diverge from the book contents. For example, we didn't migrate off deprecated extension points or use new Eclipse features.

  • Samples Manager initialization was updated, it used to NPE in 3.2.
  • Eclipse-AutoStart property in MANIFEST.MF is deprecated. You'll see a warning.
  • ListenerList deprecated and replaced with core.runtime.ListenerList
  • The screen shots of the plugin.xml file pages are a bit different, namely, on the Overview page the new "Execution Environment" has displaced "Testing" to the right. Testing is important because it is where you could easily launch your RCP application.
  • Chapter 8: need to reconfigure the hyperbola.product file. In the "Configuration" page, select "Add Required Plug-ins".
  • Chapter 8: .ico file is missing 24x24.
  • Chapter 8: When you run the window image is not branded. Added a 16x16 gif file.
  • Chapter 11: configure shell NPE, command action id not found