Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Location of Generated Package and Factory Interfaces
Location of Generated Package and Factory Interfaces [message #378396] Tue, 05 December 2006 02:28 Go to next message
Eclipse UserFriend
Originally posted by: moore_kristy.emc.com

Hi,
The generated Package and Factory interfaces for an ecore package are by
default created in the interfaces package.

I would like these interfaces to be created in the impl package in order
to avoid circular dependencies. i.e. the impl package depends on the
interface package and the Package and Factory interfaces contain
references to the impl in the eInstance declaration.

What is the best way to change the package location of the generated
Package and Factory interfaces.

Thanks you so much for any advice.

Kristy
Re: Location of Generated Package and Factory Interfaces [message #378398 is a reply to message #378396] Tue, 05 December 2006 10:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Kristy,

This is an EMF question best asked on the EMF newsgroup. Where your put
the classes will not affect the dependencies between them so I'm not
really sure what "problem" you are trying to fix. In any case, if you
look at the properties for the GenPackage in the Generator, you'll see
it has a Metadata property that you can change to impl to have the
package and factory generated into the impl package for the model. I'm
not sure your clients will be well served to have to import the factory
from the impl package which should generally be considered internal
implementation detail rather than public API...


Kristy Moore wrote:
> Hi,
> The generated Package and Factory interfaces for an ecore package are
> by default created in the interfaces package.
> I would like these interfaces to be created in the impl package in
> order to avoid circular dependencies. i.e. the impl package depends on
> the interface package and the Package and Factory interfaces contain
> references to the impl in the eInstance declaration.
>
> What is the best way to change the package location of the generated
> Package and Factory interfaces.
> Thanks you so much for any advice.
>
> Kristy
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Location of Generated Package and Factory Interfaces [message #585212 is a reply to message #378396] Tue, 05 December 2006 10:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Kristy,

This is an EMF question best asked on the EMF newsgroup. Where your put
the classes will not affect the dependencies between them so I'm not
really sure what "problem" you are trying to fix. In any case, if you
look at the properties for the GenPackage in the Generator, you'll see
it has a Metadata property that you can change to impl to have the
package and factory generated into the impl package for the model. I'm
not sure your clients will be well served to have to import the factory
from the impl package which should generally be considered internal
implementation detail rather than public API...


Kristy Moore wrote:
> Hi,
> The generated Package and Factory interfaces for an ecore package are
> by default created in the interfaces package.
> I would like these interfaces to be created in the impl package in
> order to avoid circular dependencies. i.e. the impl package depends on
> the interface package and the Package and Factory interfaces contain
> references to the impl in the eInstance declaration.
>
> What is the best way to change the package location of the generated
> Package and Factory interfaces.
> Thanks you so much for any advice.
>
> Kristy
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Location of Generated Package and Factory Interfaces
Next Topic:Model refactoring
Goto Forum:
  


Current Time: Sat Apr 20 02:36:21 GMT 2024

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

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

Back to the top