Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Refer to Enumerators in the ecore (not EEnums)
Refer to Enumerators in the ecore (not EEnums) [message #495832] Fri, 06 November 2009 10:51 Go to next message
Eclipse UserFriend
Originally posted by: a.ogorman.pilz.ie

Hi

I am currently working within an existing, well-established code base
and introducing an EMF model to it - transforming the existing objects
into EMF objects. There are alot of existing enums and within the EMF
model the same enums have been described as EEnums. Is there a way to
refer to the existing Enums within the EMF model to avoid the duplicate
declarations and unnecessary code?

Thanks for your help
Aisling
Re: Refer to Enumerators in the ecore (not EEnums) [message #495846 is a reply to message #495832] Fri, 06 November 2009 11:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Aisling,

Comments below.

Aisling wrote:
> Hi
>
> I am currently working within an existing, well-established code base
> and introducing an EMF model to it - transforming the existing objects
> into EMF objects.
Cool. :-)
> There are alot of existing enums and within the EMF model the same
> enums have been described as EEnums.
Hmmm. EMF enums need to support more API...
> Is there a way to refer to the existing Enums within the EMF model to
> avoid the duplicate declarations and unnecessary code?
I'm not sure specifically what you're referring to. All by itself EMF
doesn't generate duplicates or unnecessary code. Perhaps you shouldn't
describe them as EEnums but simply as EDataTypes.
>
> Thanks for your help
> Aisling


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Initialize by loading & copied packages
Next Topic:XSD ID Attribute Validation
Goto Forum:
  


Current Time: Fri Apr 26 14:49:35 GMT 2024

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

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

Back to the top