Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can the platform manage multiple versions of a plugin at once?
Can the platform manage multiple versions of a plugin at once? [message #290463] Thu, 25 August 2005 16:13 Go to next message
Eclipse UserFriend
Originally posted by: csetera.spss.com

Let's say that I have a situation where I have two features A and B that
depend on plugins in feature C. Now, let's say that feature A is
updated and needs a newer version of plugins in feature C, while feature
B still needs the previous versions. If feature A and C are updated,
can feature B continue to use the older version of feature C and its
plugins? It seems that this should be somewhat possible given the
classloader implementation in the platform, but I'm not sure if it would
work. If it does work, how far does it go? For instance, is it
possible for the platform to manage multiple versions of SWT given that
it also has native code?

Thanks,
Craig
Re: Can the platform manage multiple versions of a plugin at once? [message #290479 is a reply to message #290463] Thu, 25 August 2005 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Craig Setera" <csetera@spss.com> wrote in message
news:dekqmp$9dr$1@news.eclipse.org...
> Let's say that I have a situation where I have two features A and B that
> depend on plugins in feature C. Now, let's say that feature A is updated
> and needs a newer version of plugins in feature C, while feature B still
> needs the previous versions. If feature A and C are updated, can feature
> B continue to use the older version of feature C and its plugins? It
> seems that this should be somewhat possible given the classloader
> implementation in the platform, but I'm not sure if it would work. If it
> does work, how far does it go? For instance, is it possible for the
> platform to manage multiple versions of SWT given that it also has native
> code?
>
You can have multiple versions of a feature installed, however only one can
be active at any given time.
---
Sunil
Re: Can the platform manage multiple versions of a plugin at once? [message #290483 is a reply to message #290463] Thu, 25 August 2005 17:11 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Craig Setera wrote:
> Let's say that I have a situation where I have two features A and B that
> depend on plugins in feature C. Now, let's say that feature A is
> updated and needs a newer version of plugins in feature C, while feature
> B still needs the previous versions. If feature A and C are updated,
> can feature B continue to use the older version of feature C and its
> plugins? It seems that this should be somewhat possible given the
> classloader implementation in the platform, but I'm not sure if it would
> work. If it does work, how far does it go? For instance, is it
> possible for the platform to manage multiple versions of SWT given that
> it also has native code?

I think there was a thread on this about 1-2 months ago ... the OSGi
runtime can run multiple Bundles, but eclipse can't.

Check out the MANIFEST.MF file, the eclipse plugins are defined like:
Bundle-SymbolicName: org.eclipse.ui.tests; singleton:=true

and singleton:=true means only one instance of the plugin can be active
(I think, although I have no proof).

Later,
PW


Re: Can the platform manage multiple versions of a plugin at once? [message #290503 is a reply to message #290463] Thu, 25 August 2005 19:05 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

Multiple versions of the same plugin can be active at once, but only if
they do not define extensions or extension points. From the runtime's
point of view, there could be two versions of SWT active at once. In
practice this isn't likely to suceed because each will create its own
display, etc. In the case of SWT, it is fully backwards compatible so
plugins based on an older version should still work with a newer release.
--

Craig Setera wrote:
> Let's say that I have a situation where I have two features A and B that
> depend on plugins in feature C. Now, let's say that feature A is
> updated and needs a newer version of plugins in feature C, while feature
> B still needs the previous versions. If feature A and C are updated,
> can feature B continue to use the older version of feature C and its
> plugins? It seems that this should be somewhat possible given the
> classloader implementation in the platform, but I'm not sure if it would
> work. If it does work, how far does it go? For instance, is it
> possible for the platform to manage multiple versions of SWT given that
> it also has native code?
>
> Thanks,
> Craig
Previous Topic:ClassNotFoundException with new .jar - but old one works???
Next Topic:How to use Session Properties for existing projects
Goto Forum:
  


Current Time: Sun Sep 01 02:16:28 GMT 2024

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

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

Back to the top