Saturday, August 30, 2008

Installing And developing RAP Application...

1. Downloading RAP Plug-in (Eclipse 3.3)

With Eclipse up and running, go to

Help-> software updates->Find and Install.

Click on the Search for new features to install radio button and then click next.

Click on the New Remote Site button, the New Update Site dialog will appear.

Enter a name for the update site, such as "RAP Update Site" and then enter the URL http://download.eclipse.org/technology/rap/update-site, click OK to create the new update site entry.

The entry you just created now appears in the update site list and is selected. Ensure it is the only site selected and click Finish.

The update manager will now connect to the site and display the feature available on the site. Check the update site and click Next to continue the selection process.

Accept the terms in the license agreement and click the Next button.

A list with the feature to install will be displayed. Click Finish to start the installation process.

The feature and plug-ins will now be downloaded from the site and installed locally. Note that, the location of RAP plug-in should not be the location of Eclipse. Confirm the following prompt to restart Eclipse.

2: Configuring Target Platform

After restart Eclipse, press Ctrl + 3 type Install RAP Target Platform and select that command.


The Target Platform Installation wizard will appear. Here we have to select the destination for the target i.e. selects the location of RAP Plug-in from which location we have installed before.



3. Developing RAP Application

Step 1: Create a New project

Create a new Project by right-clicking in the pac

kage explorer and select New -> Project. In the upcoming "New Project"-wizard, select Plug-in Project from the section Plug-in Development.

In the upcoming New Plug-in Project wizard, fill the first two steps as in plug-in development and finally select the RAP Hello World in the template page and then click Finish.


Now you just right click on the Project and select Run as->RAP Application.



After running the application, the perspective will appear on the Browser.



4: Executing a RCP project as RAP Application

Step 1: Import your plug-in project

Now just import your plug-in project (for example org.ancit.database.proj) into RAP Application Workspace.

After importing the project, we need to add this plug-in into RAP Application. So go to plugin.xml from RAP Hello World Project.


Then click Add button for get the required plug-in. In the upcoming “Plug-in selection” wizard, select the your Plug-in and click OK. Then save the plugin.xml.



Then go to ApplicationWorkbenchAdvisor.java from testRAP i.e. RAP Hello World Project.



Here we need to give PERSPECTIVE_ID of your project if you have a perspective.

Step 2: Run the RAP Application

After that go to Run->Open Run Dialog. In the upcoming Run Wizard we need to select the existing RAP Run configuration to launch the Application. In this wizard select the Bundles and click the check box for your Plugin.



After that click the Run Button. Now we can get your project in the Browser. Now the running the RCP application as a RAP application is completed


.Regards

Vinoth


0 comments: