[EMF] Consuming org.eclipse.emf.ecore.generated_package [message #1386412] |
Tue, 17 June 2014 08:09  |
Eclipse User |
|
|
|
Hi,
So when an EMF project is generated, the extension is created in the
plugin: Consuming org.eclipse.emf.ecore.generated_package
Now my code usually imports the generated packages as a dependency of
the plugin, to be able to use them.
Now I wonder if someone has a solution to make this dynamic, preferably
through an OSGI Service. What I can imagine is a plugin which reads the
extension registry and advertises the registered EPackages. A Consumer
service would process the registered information and load the EPackage.
Anyone done this? It seems this could work.
Thanks Christophe
|
|
|
Re: [EMF] Consuming org.eclipse.emf.ecore.generated_package [message #1386425 is a reply to message #1386412] |
Tue, 17 June 2014 09:14  |
Eclipse User |
|
|
|
On 17-06-14 14:09, Christophe Bouhier wrote:
> Hi,
>
> So when an EMF project is generated, the extension is created in the
> plugin: Consuming org.eclipse.emf.ecore.generated_package
>
> Now my code usually imports the generated packages as a dependency of
> the plugin, to be able to use them.
>
> Now I wonder if someone has a solution to make this dynamic, preferably
> through an OSGI Service. What I can imagine is a plugin which reads the
> extension registry and advertises the registered EPackages. A Consumer
> service would process the registered information and load the EPackage.
> Anyone done this? It seems this could work.
>
> Thanks Christophe
>
never mind, in a moment of oblivion I forgot about this:
EPackage.Registry.INSTANCE
|
|
|
Powered by
FUDForum. Page generated in 0.04375 seconds