Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse RAP Development Guide
Previous Page Home Next Page

RAP Examples

Note: This chapter assumes that you have downloaded the latest RAP Taget Platform. The download and instructions on how to install it are available here.

There are two kinds of example types available.

  • Templates

    To create a RAP plug-in from a template, open the New Project wizard (File > New > Project) and select Plug-in Project. Type a project name (e.g. mail) and click Next. On the following page, ensure that the option This plug-in will make contributions to the UI is selected and no Rich Client Application will be created. Click Next. Now you should see a page where you can select a template. Select one of the templates with the RAP prefix (e.g. RAP Mail). Click Finish.

    The plug-in comes with a preconfigured launch configuration. Open the Run dialog (Run > Run Configurations...), select the RAP Launch Configuration that matches your project name (e.g. mail) and click Run to start.

  • Demo Plug-in

    The RAP project comes with two example applications demonstrating the features and capabilities of RAP.

    The first application provides a workbench very closely aligned to the RCP workbench. The second demo, referred to as the 'controls demo', shows what widgets there are and that they behave very similar to the SWT widgets.

    To access and run these demo applications, please open the Plug-ins view (e.g. through the Plug-in Development perspective). Select the plug-in named org.eclipse.rap.demo which contains both demo applications, right-click on this plug-in and select Import as > Source Project . This plug-in will then appear with all source files in your workspace. The demo also provides a ready-to-use Equinox Launch Configuration.

    After launching, you can access the workbench demo using the URL https://localhost:<port>/rap?startup=default. To try the controls demo enter the following URL: https://localhost:<port>/rap?startup=controls.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire