Location of Generated Package and Factory Interfaces [message #378396] |
Tue, 05 December 2006 02:28 |
Eclipse User |
|
|
|
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 |
Ed Merks 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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02986 seconds