Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] Consuming org.eclipse.emf.ecore.generated_package
[EMF] Consuming org.eclipse.emf.ecore.generated_package [message #1386412] Tue, 17 June 2014 12:09 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
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 13:14 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
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
Previous Topic:[CDO/Hibernate] Query withing one resource
Next Topic:[CDO] Increase prepared statement fetch size in DB Store
Goto Forum:
  


Current Time: Thu Apr 18 09:56:59 GMT 2024

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

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

Back to the top