eRCP Plug-in Project Wizard

In order to use Eclipse SWT, JFace and RCP components, you need to make sure that all of the appropriate SWT, JFace and RCP jar files are on your classpath. The eRCP Plug-in Project wizard creates a standard eRCP Plug-in project which has all of the needed libraries added. The wizard can be selected from the drop down WindowBuilder wizard menu or from the Eclipse New or New Project wizards.

To use the wizard, enter the project name and specify where the project should be located. Choose whether to create some initial sample content and hit the Finish button.

 

The wizard creates a plug-in project and generates content for the MANIFEST.MF file similar to the following.

Manifest-Version: 1.0
Bundle-ManifestVersion
: 2
Bundle-Name
: eRCP Plug-in
Bundle-SymbolicName
: eRCP;singleton:=true
Bundle-Version
: 1.0.0
Bundle-Activator
: ercp.Activator
Require-Bundle
: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ercp.eworkbench,
org.eclipse.ercp.ui.workbench

Eclipse-LazyStart
: true

Note that before you can create an eRCP Plugin Project, you need to download and install a eRCP distribution from Eclipse.org and configure Eclipse to use it as your target platform:

  1. Download the Eclipse eRCP runtime.
  2. Install the Eclipse eRCP runtime by unzipping it. e.g., C:\eRCP-v20070801-0820.
    Do not unzip this into your Eclipse directory (keep it separate).
  3. Copy the eswt-converged.dll file from:
        \eRCP-v20070801-0820\win32\eRCP\plugins\org.eclipse.ercp.swt.win32_1.0.2\os \win32\x86
    to:
        C:\Windows\System32
  4. Select \eRCP-v20070801-0820\win32\eRCP in your Eclipse Plug-in Development > Target Platform preferences.


     
  5. To run the app, you can click the Launch an Eclipse application link in the plugin.xml/manifest editor. This will fail initially, so you will need to access the launch configuration and select the org.eclipse.ercp.eworkbench.eWorkbench application.