Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "RCP to RAP Migration Example"

(initial draft)
 
(Replaced content with "This page was obsolete and has been deleted. Please see the history if you need to access the content.")
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== <font color="red">Under heavy developement</font> ==
+
This page was obsolete and has been deleted. Please see the history if you need to access the content.
 
+
This little tutorial will give you a little introduction in how to migrate a existing RCP application to an "ajaxified" RAP application. As RAP is a subset of the existing RCP infrastructure and trough it's nature a little but different, we will show you what you need to adapt in your application to run it as web application and why you need to do these changes.
+
 
+
But let's start with a little example which you maybe already know - RCP Mail Example
+
 
+
== Installing RAP ==
+
 
+
<font color="red">Is this needed in this tutorial? Not sure how this is done for M4 cause of the namespace problems (updatesite/target/CVS?) [[User:B.muskalla.gmx.net|B.muskalla.gmx.net]]</font>
+
 
+
== Setup of the example RCP application ==
+
 
+
{|align="right"
+
|[[Image:RAPmigration_newproject.png|right|thumb|New Project wizard]]
+
|}
+
 
+
We will use the RCP Mail Example provided by the PDE team to show you the details of such a migration.
+
To create the RCP Mail example, click on <code>File | New | Project...</code> and select <code>Plug-in Project</code>.
+
We will give it the name "org.eclipse.rap.demo.mail" but you can also choose your own. Click on <code>Next &gt;</code> to modify the existing plug-in settings.
+
Be sure to have the <code>This plug-in will make contributions to the UI</code> checkbox checked and that you <code>Would like to create a rich client application</code> (see screenshot).
+
On the next page select the "RCP Mail Template" and click the Finish button.
+
 
+
Clicking on the "Launch an Eclipse application" link of your Plugin Manifest Editor which opened immediately after project creation should result in an RCP application like this:
+
 
+
[[Image:RAPmigration_rcpmail.png|thumb|RCP Mail Example]]
+
 
+
== Migration ==
+
remove org.eclipse.ui
+
add org.eclipse.rap.ui.workbench
+
replace IApplication with IEntrypoint
+
add ICallback for MessageDialogs
+
 
+
run the thing
+

Latest revision as of 13:42, 17 November 2013

This page was obsolete and has been deleted. Please see the history if you need to access the content.

Back to the top