|
Re: How do I inherit from an EDataType [message #423192 is a reply to message #423189] |
Wed, 24 September 2008 16:09 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Alexander,
You can use an EClass just like an EDataType in that you can set the
instance class name to some existing Java interface. You can mark the
EClass with isInterface and isAbstract true, so you don't end up with a
generated Impl class that implements that interface. This EClass can
then be used as a super type for your modeled classes.
Alexander Dotor wrote:
> Hello,
>
> if I read the ecore-Metamodel right there is currently no
> straightforward way to inherit from a EDataType. What do I do if I
> want to have an EClass that inherits from an already existing (non-E)
> class?
>
> Is there a reason why this is prohibited?
>
> Cheers,
> Alexander Dotor
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04248 seconds