Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Running multiple versions of the same plug-in at once
Running multiple versions of the same plug-in at once [message #488359] Mon, 28 September 2009 12:10 Go to next message
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009
Member
Hi,

I have the following problem:

I want to compare models (emf).
Therefore I have to load a model with the classes it was created from.
But over the time those classes (which represent the meta model) have
changed.

So if I want to compare an old model with a newer one, I have to be able
to load the old model with the respective plug-in it was created from,
and the newer model with the newer version of that plug-in. Therefore I
have to run multiple versions of a plug-in at once and also be able to
decide with which version of that plug-in the model should be loaded.

Is this approach possible, and if so, where do I find information how to
implement it?

Thanks for your help

Daniel
Re: Running multiple versions of the same plug-in at once [message #488365 is a reply to message #488359] Mon, 28 September 2009 12:44 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can use your Bundle and BundleContext to load or activate or access specific versions of a Bundle, and Bundle has a loadClass(*) method.

This works won't work for a bundle that is marked as a singleton:
Bundle-SymbolicName: org.eclipse.equinox.p2.director.app;singleton:=true

which includes all bundles that use the plugin.xml

I would post to the EMF group ... the ability to upgrade from an older version of a model to a newer one (read in an old one as a new one) is an important feature of modeling, and I'm pretty sure EMF has a "best practice" for this.

That would allow your old model to be compared to your new model both in terms of your new model.

PW


Re: Running multiple versions of the same plug-in at once [message #488371 is a reply to message #488365] Mon, 28 September 2009 13:23 Go to previous message
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009
Member
Paul Webster schrieb:
> You can use your Bundle and BundleContext to load or activate or access
> specific versions of a Bundle, and Bundle has a loadClass(*) method.
>
> This works won't work for a bundle that is marked as a singleton:
> Bundle-SymbolicName: org.eclipse.equinox.p2.director.app;singleton:=true
>
> which includes all bundles that use the plugin.xml
>
> I would post to the EMF group ... the ability to upgrade from an older
> version of a model to a newer one (read in an old one as a new one) is
> an important feature of modeling, and I'm pretty sure EMF has a "best
> practice" for this.
>
> That would allow your old model to be compared to your new model both in
> terms of your new model.
>
> PW
>
Thanks Paul for your answer,
Unfortunately the Bundle is a singleton and I think this couldn't be
changed.

Is there any other solution to this problem?

There is indeed a project to handle changing metamodels (edapt), but by
now it's just a proposal.

regards
Daniel
Previous Topic:Tracking down a package uses conflict.
Next Topic:How to import plugins that have been exported as "Deployable plug-ins and fragments"?
Goto Forum:
  


Current Time: Thu Apr 25 12:43:58 GMT 2024

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

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

Back to the top