Running multiple versions of the same plug-in at once [message #488359] |
Mon, 28 September 2009 08:10  |
Eclipse User |
|
|
|
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 #488371 is a reply to message #488365] |
Mon, 28 September 2009 09:23  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.15122 seconds