Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Generate RAP from RCP application
Generate RAP from RCP application [message #62788] Sun, 25 November 2007 05:37 Go to next message
Eclipse UserFriend
Dear All


Am new in RAP and I want to know exactly what I have to modify
within my RCP application to generate RAP application of it. Also, when I
implement RAP application how I can build the dependency between my
plug-ins as what we are doing with RCP.

Regards
Salwa
Re: Generate RAP from RCP application [message #62805 is a reply to message #62788] Sun, 25 November 2007 05:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I can not tell u exactly what u have to change :) but maybe this movie
will help
http://eclipsenuggets.blogspot.com/2007/09/see-how-you-can-m ake-rcp-application.html
The dependency between plugins is specified in the plugin.xml in the
dependencies tab (like RCP if I remember).

Regards,
Val

Salwa wrote:
> Dear All
>
>
> Am new in RAP and I want to know exactly what I have to modify
> within my RCP application to generate RAP application of it. Also, when
> I implement RAP application how I can build the dependency between my
> plug-ins as what we are doing with RCP.
>
> Regards
> Salwa
>
>
Re: Generate RAP from RCP application [message #63100 is a reply to message #62805] Sun, 25 November 2007 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

for a surprisingly large amount of code, you dont have to change anything!
What really worked well for us is considering the following points:

Multithreading in Combination with UI-Changes is a Problem, since RAP
deals with several scopes.

The Dependency-Management works exactly the same as in RCP because you
have an underlying Implementation of Equinox running, you should consider
working with optional dependancies, this made it quite easy for us to
migrate the applications, like this:
org.eclipse.ui.forms;resolution:=optional,
org.eclipse.rap.ui.forms;resolution:=optional,
org.eclipse.ui;resolution:=optional,
org.eclipse.rap.ui;resolution:=optional

So your plugin takes the one which is reachable, but there is no strict
dependency on a Plugin, thatŽs a problem, but we think this can be
forgotten.

Martin
Re: Generate RAP from RCP application [message #63380 is a reply to message #63100] Tue, 27 November 2007 11:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi
Thankx for your replies guys
But I think I still confuse about some stuff:

1.
What is the purpose of adding required plugin such as org.eclispse.ui as
optional, for example I try to do same with org.eclipse.swt plugin but it
not helping to resolve the problem I have with ImageData class. This class
is found within SWT plugin , but not found on rwt.swt plugin . Not only
this issue, there is some defined variable in org.eclipse.swt classes not
found within rwt.swt classes. How to resolve this problem

2.
What is foo.ui.base, foo.ui.rap and foo.ui.rcp , is it new plug-ins ? or
an example for how the architecture of plug-ins in my workspace have to
look like.


3.
What is the benefit behind having rap.ui.view if I still can use
org.eclipse.ui.view.


Regards
Salwa
Re: Generate RAP from RCP application [message #63424 is a reply to message #63380] Wed, 28 November 2007 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Salwa,

1.
What is the purpose of adding required plugin such as org.eclispse.ui as
optional, for example I try to do same with org.eclipse.swt plugin but it
not helping to resolve the problem I have with ImageData class. This class
is found within SWT plugin , but not found on rwt.swt plugin . Not only
this issue, there is some defined variable in org.eclipse.swt classes not
found within rwt.swt classes. How to resolve this problem

The namespaces of rcp and rap differ in some cases, so is the if the
org.eclipse.ui in rap org.eclipse.rap.ui, so if you want to use your
plugin in both environments, you must add optinal dependencies, so that
your plugin chooses the right plugins and no compiler-errors are thrown.
To add optional-dependency to your swt-plugin might fail because this is
propably not an issue of different namespaces rather than functionality
which is available in rcp but not in rap. Rememeber, rap does not offer
all functionality from rcp!

2.
What is foo.ui.base, foo.ui.rap and foo.ui.rcp , is it new plug-ins ? or
an example for how the architecture of plug-ins in my workspace have to
look like.

This was just an example of how to structure your application, the idea is
to put as much functionality as possible in so called base-plugins, which
are accessible from both platforms, the plattform specific functionality
is put into an rcp- and a rap application, this makes it possible to
develop for both platforms.

Hope this makes it clearer.

Martin
Re: Generate RAP from RCP application [message #63470 is a reply to message #63424] Wed, 28 November 2007 06:16 Go to previous messageGo to next message
Eclipse UserFriend
thankx alot ... it is really help.

Just one more thing, should I have for each plugin within my workspace
these three base, rap, and rcp plugins.

Also, I have rewrite some classes within .eclipse.ui.workbench plugin,
which I have it as a project in my workspace.My question is:
* On my RCP application i was adding .eclipse.ui.workbench in
the building path, so all org.eclipse.ui will referances to this plugin.
However, in ur org.eclipse.rap.ui , you have .eclipse.rap.ui.workbench
which point directly to org.eclipse.ui. So how can i still use my
org.eclipse.ui.workbench plugin "modified one" .



salwa
Re: Generate RAP from RCP application [message #63560 is a reply to message #63470] Fri, 30 November 2007 02:57 Go to previous message
Eclipse UserFriend
Hi Salwa,

no, you donŽt have to do this for all of your plugins, only for the plugins
which have different functionalities for the different platforms, for your
other question. I donŽt really understand what you did in your setup, you
put the Source-Code for org.eclipse.ui.workbench into your classpath,
changed it and now you work on this changed workbench-plugin?
Well, when you changed the source-code, I see no way of achieving this,
you must then also change the source-code of the rap-classes. Perhaps you
could explain a bit more what you did.

Martin
Previous Topic:List listener problem
Next Topic:Problem
Goto Forum:
  


Current Time: Fri May 09 11:46:26 EDT 2025

Powered by FUDForum. Page generated in 0.05526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top