Open main menu

CDOT Wiki β

RCP : Install Eclipse Plugins Fedora

Installing Eclipse onto Fedora 14 - X86_64

  1. Start with a clean install of Fedora 14, preferably from a live CD. For my examples I used the 64 bit edition.
  2. When the install is complete, open a terminal window and run yum update to bring your system up to date. You may have to reboot once this is done.
  3. Install Eclipse (Helios 3.6.1) with the command yum groupinstall "Fedora Eclipse".
  4. That's it! You can now use Eclipse to build C, C++ or Java programs.

What's RCP?

RCP stands for "Rich Client Platform" which defines the minimal set of plugins required to build rich clients. So, what are "rich clients"? Well, rich clients are the compliment to thin clients. Recall that thin clients refer to web-based applications where most of the work is done on the server. Rich clients then are highly interactive, graphical applications that are deployed to the client machine.

The two components of the Rich Client Platform we'll be using in this course are the Standard Widget Toolkit (SWT) and JFace. JFace is a UI toolkit with classes for handling many common UI programming tasks.

Checking What's Already Installed

SWT (Standard Widget Toolkit) should now be installed. If you look in the directory /usr/lib64/eclipse you should see links to several SWT libraries. Here's what I get when I do a directory listing:

[selmys@f14 eclipse]$ ls
about_files        notice.html
about.html        p2
artifacts.xml      plugins
buildscripts        readme
configuration      startup.jar
dropins            swt-gtk-3.6.1.jar
eclipse         swt-gtk-3.6.jar
eclipse.ini  swt.jar
features       links
[selmys@f14 eclipse]$

JFace should also be installed. You can verify this by listing the /usr/lib64/eclipse/plugins directory. Here you'll see the jface JAR files.


Installing SWT Examples

There are many SWT examples which you can examine and run. These are not already installed. You can install them from inside Eclipse Helios by doing the following.

  1. Open the main update manager by clicking Help > Install New Software.... This opens the Install Wizard.
  2. Select The Eclipse Project Updates site.
  3. Ensure Group items by category is unchecked.
  4. Type "Eclipse SDK Examples" in the search field.
  5. Select "Eclipse SDK Examples" and click Next.
  6. Review the items being installed, and click Next.
  7. Review and accept the license terms, and click Finish.

You can run any of the examples by doing the following:

  1. From Eclipse's Window menu, select Show View > Other
  2. In the Show View dialog, expand SWT Examples and select the SWT Example Launcher view
  3. Select an example from the list and click on the Run button.