Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP and Eclipse M4
RAP and Eclipse M4 [message #67406] Fri, 28 December 2007 13:20 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020507020700050407020006
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Should I be able to extract all the RAP plugins from CVS and have then
compile and run with Eclipse M4? It's obviously kind of a trick
question since I think the answer is no because filledFromCache's use in
RegistryStrategyOSGI doesn't compile:

public void onStart(IExtensionRegistry registry) {
super.onStart(registry);
if (!(registry instanceof ExtensionRegistry))
return;
ExtensionRegistry theRegistry = (ExtensionRegistry) registry;

// register a listener to catch new bundle
installations/resolutions.
pluginBundleListener = new EclipseBundleListener(theRegistry,
token, this);
Activator.getContext().addBundleListener(pluginBundleListene r);

// populate the registry with all the currently installed bundles.
// There is a small window here while processBundles is being
// called where the pluginBundleListener may receive a BundleEvent
// to add/remove a bundle from the registry. This is ok since
// the registry is a synchronized object and will not add the
// same bundle twice.
if (!theRegistry.*filledFromCache*())

pluginBundleListener.processBundles(Activator.getContext().g etBundles());
}

I was going to look into providing RAP-compatible GUI libraries for EMF
so we could generate a RAP application (similar to how we generate an
RCP application) and I have this compulsive desire to extract things
from CVS so I can totally butcher them...

Also when I tried to run this stuff, I got what seemed to be version
range errors. I had to add required plugins to the launcher. The
launcher also doesn't work well unless -Dosgi.noShutdown=true is added
to the arguments. I wonder why the demo launcher doesn't include these
things? I did get it working so at least I'm off to the races now!

I also wonder what the "reporting encoding changes" messaged are about
when I'm checking these plugins out on Windows? (But that doesn't seem
to have caused any problems.)

--------------020507020700050407020006
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Should I be able to extract all the RAP plugins from CVS and have then
compile and run with Eclipse M4?&nbsp;&nbsp; It's obviously kind of a trick
question since I think the answer is no because filledFromCache's use
in RegistryStrategyOSGI doesn't compile:<br>
<br>
<small>&nbsp;&nbsp;&nbsp; public void onStart(IExtensionRegistry registry) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; super.onStart(registry);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!(registry instanceof ExtensionRegistry))<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ExtensionRegistry theRegistry = (ExtensionRegistry) registry;<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // register a listener to catch new bundle
installations/resolutions.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pluginBundleListener = new EclipseBundleListener(theRegistry,
token, this);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Activator.getContext().addBundleListener(pluginBundleListene r); <br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // populate the registry with all the currently installed
bundles.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // There is a small window here while processBundles is being<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // called where the pluginBundleListener may receive a
BundleEvent <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // to add/remove a bundle from the registry.&nbsp; This is ok since<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // the registry is a synchronized object and will not add the<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // same bundle twice.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!theRegistry.<b>filledFromCache</b>())<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
pluginBundleListener.processBundles(Activator.getContext().g etBundles()); <br>
&nbsp;&nbsp;&nbsp; }</small><br>
<br>
I was going to look into providing RAP-compatible GUI libraries for EMF
so we could generate a RAP application (similar to how we generate an
RCP application) and I have this compulsive desire to extract things
from CVS so I can totally butcher them...<br>
<br>
Also when I tried to run this stuff, I got what seemed to be version
range
errors.&nbsp; I had to add required plugins to the launcher.&nbsp; The launcher
also doesn't work well unless -Dosgi.noShutdown=true is added to the
arguments.&nbsp; I wonder why the demo launcher doesn't include these
things?&nbsp; I did get it working so at least I'm off to the races now!<br>
<br>
I also wonder what the "reporting encoding changes" messaged are about
when I'm checking these plugins out on Windows? (But that doesn't seem
to have caused any problems.)<br>
</body>
</html>

--------------020507020700050407020006--
Re: RAP and Eclipse M4 [message #67510 is a reply to message #67406] Fri, 28 December 2007 13:38 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Ed,

I think you're talking about Eclipse 3.4M4 and RAP CVS (bundle:
org.eclipse.rap.extension.registry). That's right. The problem is that
in order to provide I18n on bundle level (plugin.xml/MANIFEST.MF) we
needed to tweak the Equinox translation mechanism a little bit so it is
multi-user capable. We stay in contact with the Equinox team to have a
common solution for this problem for 3.4 so we do not need to patch the
equinox registry. Hope that clarifies the situation a little bit.

Greets
Benny

Ed Merks wrote:
> Hi,
>
> Should I be able to extract all the RAP plugins from CVS and have then
> compile and run with Eclipse M4? It's obviously kind of a trick
> question since I think the answer is no because filledFromCache's use in
> RegistryStrategyOSGI doesn't compile:
>
> public void onStart(IExtensionRegistry registry) {
> super.onStart(registry);
> if (!(registry instanceof ExtensionRegistry))
> return;
> ExtensionRegistry theRegistry = (ExtensionRegistry) registry;
>
> // register a listener to catch new bundle
> installations/resolutions.
> pluginBundleListener = new EclipseBundleListener(theRegistry,
> token, this);
> Activator.getContext().addBundleListener(pluginBundleListene r);
>
> // populate the registry with all the currently installed bundles.
> // There is a small window here while processBundles is being
> // called where the pluginBundleListener may receive a BundleEvent
> // to add/remove a bundle from the registry. This is ok since
> // the registry is a synchronized object and will not add the
> // same bundle twice.
> if (!theRegistry.*filledFromCache*())
>
> pluginBundleListener.processBundles(Activator.getContext().g etBundles());
> }
>
> I was going to look into providing RAP-compatible GUI libraries for EMF
> so we could generate a RAP application (similar to how we generate an
> RCP application) and I have this compulsive desire to extract things
> from CVS so I can totally butcher them...
>
> Also when I tried to run this stuff, I got what seemed to be version
> range errors. I had to add required plugins to the launcher. The
> launcher also doesn't work well unless -Dosgi.noShutdown=true is added
> to the arguments. I wonder why the demo launcher doesn't include these
> things? I did get it working so at least I'm off to the races now!
>
> I also wonder what the "reporting encoding changes" messaged are about
> when I'm checking these plugins out on Windows? (But that doesn't seem
> to have caused any problems.)
Previous Topic:How to use customized JS in RAP?
Next Topic:RAP Enabling EMF
Goto Forum:
  


Current Time: Sat Oct 19 19:46:44 GMT 2024

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

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

Back to the top