RAP and Eclipse M4 [message #67406] |
Fri, 28 December 2007 13: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--
|
|
|
|
Powered by
FUDForum. Page generated in 0.02822 seconds