Generate RAP from RCP application [message #62788] |
Sun, 25 November 2007 05:37  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #63424 is a reply to message #63380] |
Wed, 28 November 2007 03:14   |
Eclipse User |
|
|
|
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 #63560 is a reply to message #63470] |
Fri, 30 November 2007 02:57  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05239 seconds