org.eclipse.emf.compare singleton bundle? [message #1053063] |
Thu, 02 May 2013 05:57  |
Eclipse User |
|
|
|
Hi EMF Compare team and Eclipse community,
during our integration of the new EMF Compare 2.0, I realized the bundle org.eclipse.emf.compare is singleton in both 1.X and 2.X stream. That makes impossible both version to coexist in the same OSGi instance. I'd like to keep our old code running EMF 1.X, and the newer code running the latest 2.0.
Which is the reason for those to be singletons? Any chance this could change?
|
|
|
|
|
Re: org.eclipse.emf.compare singleton bundle? [message #1053227 is a reply to message #1053116] |
Fri, 03 May 2013 05:01   |
Eclipse User |
|
|
|
Hi Victor,
Quote:
However, the issue still remains for me, as 1.X is singleton, and I believe it cannot be changed (right?). I guess I'll be forced to change 1.X bundle bundle name in our product to workaround this issue. Could you figure out another workaround to this?
You guess wisely, this can't be changed in 1.x. Other bundles of EMF Compare have some dependencies (through require-bundle) to the o.e.emf.compare bundle. Be careful that you may have to rebuild all of Compare 1.x. I wish we used import-package, it would have simplified the workaround.
BTW, i wish we did use import-package it too for 2.x but we did not... EMF is not a very good citizen / example regarding those concerns.
Quote:
We are currently not using .edit bundle, but if is possible, such a change should be welcome by other clients.
After deeper investigation, we are also declaring an extension point in the .edit bundle and it seems to be the good place to declare it. The singleton directive is then required.
|
|
|
Re: org.eclipse.emf.compare singleton bundle? [message #1053512 is a reply to message #1053227] |
Mon, 06 May 2013 07:00   |
Eclipse User |
|
|
|
Mikael,
Quote:
You guess wisely, this can't be changed in 1.x. Other bundles of EMF Compare have some dependencies (through require-bundle) to the o.e.emf.compare bundle. Be careful that you may have to rebuild all of Compare 1.x. I wish we used import-package, it would have simplified the workaround.
I also though I could remove the extension points so I can remove the singleton directive (as long as there are not any users of those extension point in my deployment). That should avoid rebuiliding, hopefully.
Quote:
BTW, i wish we did use import-package it too for 2.x but we did not... EMF is not a very good citizen / example regarding those concerns.
I think using import packages is an old known issue for us all, dont worry about it 
Quote:
After deeper investigation, we are also declaring an extension point in the .edit bundle and it seems to be the good place to declare it. The singleton directive is then required.
Thats how the platform works, there nothing else we can do 
Thanks for you insight,
Víctor
|
|
|
|
|
Re: org.eclipse.emf.compare singleton bundle? [message #1058820 is a reply to message #1058276] |
Wed, 15 May 2013 05:05  |
Eclipse User |
|
|
|
Laurent,
so far, I managed to let both coexist. The only changes I needed was removing singleton directives on o.e.e.compare bundles on both versions (in the case of 1.X stream, I removed contentTypePropertyTester). Fortunately enough, the rest of the bundles that I need do not share the same symbolic name. The core, at least, seems feasible to coexist. Then there is a collision with o.e.e.compare.edit, but its a bundle I dont need.
So, to sum up, it could be feasible to have both versions of the core code, at least. The there are conflicts with other components of the framework, such as .edit bundles. There could possibly be more, but I dont use all the bundles of the framework.
Cheers,
Víctor.
|
|
|
Powered by
FUDForum. Page generated in 0.60096 seconds