| mixing "Suppress Interfaces" true and false [message #401870] |
Thu, 15 June 2006 09:45  |
Eclipse User |
|
|
|
Originally posted by: philipp.kutter.credit-suisse.com
Hi.
We have a large project where we use the traditional "Suppress
Interfaces"="false", thus loading tags from interfaces, generating both
interfaces and implementation classes.
What I would need is mixing of this with the "Suppress Interfaces"="true"
style + allowing a interface="true" option for the EMF-Classes loaded from
a class!
Mixing:
If I add the @model tag to a class, and its not an enumeration, the
behavior
is as if I would use "Suppress Interfaces"="true", but it would work
together with interfaces style within the same package.
Class only with interface="true"
Although the EClass is loaded from a Java Class, the EMF would consider
this to be a kind of interface, and thus only generate the signature of
getter and setter.
These features would allow us to more easily use EMF to migrate those parts
of the code which are not yet EMFisized...
Best Regards, Philipp
|
|
|
| Re: mixing "Suppress Interfaces" true and false [message #401879 is a reply to message #401870] |
Thu, 15 June 2006 12:08  |
Eclipse User |
|
|
|
Philipp,
I'm not sure I understand. These things should be mixable. One
approach for figuring out how to do what you want is to create an Ecore
model with the structure you want along with the GenModel with the
appropriate options, and then generate it to see how the annotations
look. But maybe I'm missing some detail...
Philipp W. Kutter wrote:
> Hi.
> We have a large project where we use the traditional "Suppress
> Interfaces"="false", thus loading tags from interfaces, generating both
> interfaces and implementation classes.
>
> What I would need is mixing of this with the "Suppress
> Interfaces"="true" style + allowing a interface="true" option for the
> EMF-Classes loaded from a class!
>
> Mixing:
> If I add the @model tag to a class, and its not an enumeration, the
> behavior
> is as if I would use "Suppress Interfaces"="true", but it would work
> together with interfaces style within the same package.
>
> Class only with interface="true"
> Although the EClass is loaded from a Java Class, the EMF would consider
> this to be a kind of interface, and thus only generate the signature
> of getter and setter.
>
>
> These features would allow us to more easily use EMF to migrate those
> parts
> of the code which are not yet EMFisized...
>
> Best Regards, Philipp
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03995 seconds