RAP and Eclipse M4 [message #67406] |
Fri, 28 December 2007 08:20  |
Eclipse User |
|
|
|
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? 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> public void onStart(IExtensionRegistry registry) {<br>
super.onStart(registry);<br>
if (!(registry instanceof ExtensionRegistry))<br>
return;<br>
ExtensionRegistry theRegistry = (ExtensionRegistry) registry;<br>
<br>
// register a listener to catch new bundle
installations/resolutions.<br>
pluginBundleListener = new EclipseBundleListener(theRegistry,
token, this);<br>
Activator.getContext().addBundleListener(pluginBundleListene r); <br>
<br>
// populate the registry with all the currently installed
bundles.<br>
// There is a small window here while processBundles is being<br>
// called where the pluginBundleListener may receive a
BundleEvent <br>
// to add/remove a bundle from the registry. This is ok since<br>
// the registry is a synchronized object and will not add the<br>
// same bundle twice.<br>
if (!theRegistry.<b>filledFromCache</b>())<br>
pluginBundleListener.processBundles(Activator.getContext().g etBundles()); <br>
}</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. 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!<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 08:38  |
Eclipse User |
|
|
|
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.)
|
|
|
Powered by
FUDForum. Page generated in 1.07537 seconds