Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Good idea to inherit from ENamedElement and EModelElement?
Good idea to inherit from ENamedElement and EModelElement? [message #634301] Thu, 21 October 2010 07:58 Go to next message
Bernd Vogt is currently offline Bernd VogtFriend
Messages: 34
Registered: July 2009
Member
Hello,

I want exactly the same concepts like ENamedElement and EModelElement in
my own model (e.g. my elements should be also annotatable).

Is it a good idea to inherit directly from the ecore elements or is it
better to model (exactly the same) for my own?

Kind regards,
Bernd
Re: Good idea to inherit from ENamedElement and EModelElement? [message #634356 is a reply to message #634301] Thu, 21 October 2010 11:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Bernd,

No, it's not a good idea to inherit from Ecore. We don't guarantee
binary compatibly for the implementation classes and we don't promise
not to add methods in the future.


Bernd Vogt wrote:
> Hello,
>
> I want exactly the same concepts like ENamedElement and EModelElement
> in my own model (e.g. my elements should be also annotatable).
>
> Is it a good idea to inherit directly from the ecore elements or is it
> better to model (exactly the same) for my own?
>
> Kind regards,
> Bernd


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Good idea to inherit from ENamedElement and EModelElement? [message #634462 is a reply to message #634356] Thu, 21 October 2010 19:48 Go to previous message
Bernd is currently offline BerndFriend
Messages: 3
Registered: July 2009
Junior Member
Ok, thanks for your statement. It will help a lot for future design
decisions.
Previous Topic:Persistent feature of type EJavaObject (i.e. storing a plain java obj in an EMF model)
Next Topic:Teneo
Goto Forum:
  


Current Time: Thu Apr 18 23:11:35 GMT 2024

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

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

Back to the top