Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Question about using plug-in fragments
Question about using plug-in fragments [message #634755] Sat, 23 October 2010 06:05 Go to next message
Ralf Zahn is currently offline Ralf ZahnFriend
Messages: 32
Registered: July 2009
Member
Hi,

I use plug-in fragments for interface implementations. I have a plug-in defining a public API with interfaces, and a fragment that implements these interfaces. Instances are created using Java reflection.

What I need is to provide a fragment to the users that contains a simple implementation first. Later, I have to implement my interfaces by another way, so I'd create another fragment. Then, I need to exchange the fragments using the Eclipse Update Mechanism.

And there's my question: Is it possible to provide an Update Site with a feature that instructs the platform to uninstall the old fragment and to install the new one? (If so, how? If not, what should I do instead?)

I cannot have both fragments in the same platform because of classloader issues.

Thanks!
Re: Question about using plug-in fragments [message #634939 is a reply to message #634755] Mon, 25 October 2010 07:44 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

I think that using versionning of fragments can do the trick. Simply create an update site containing your fragment in a higher version, and once installed, this one should be used by your host bundle.

Le 23/10/2010 08:05, Ralf Zahn a écrit :
> Hi,
>
> I use plug-in fragments for interface implementations. I have a plug-in
> defining a public API with interfaces, and a fragment that implements
> these interfaces. Instances are created using Java reflection.
>
> What I need is to provide a fragment to the users that contains a simple
> implementation first. Later, I have to implement my interfaces by
> another way, so I'd create another fragment. Then, I need to exchange
> the fragments using the Eclipse Update Mechanism.
>
> And there's my question: Is it possible to provide an Update Site with a
> feature that instructs the platform to uninstall the old fragment and to
> install the new one? (If so, how? If not, what should I do instead?)
>
> I cannot have both fragments in the same platform because of classloader
> issues.
>
> Thanks!


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Previous Topic:Splash screen doesn't appear in the exported product
Next Topic:OSGi debug - updating saved resources and refreshing bundles
Goto Forum:
  


Current Time: Fri Apr 26 23:56:45 GMT 2024

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

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

Back to the top