Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Custom Attributes to Enum
Custom Attributes to Enum [message #1613302] Thu, 12 February 2015 15:09 Go to next message
jps90 Mising name is currently offline jps90 Mising nameFriend
Messages: 13
Registered: December 2011
Junior Member
Hello,
usually an Enum in EMF has a constructor like that:
private MyEnum(int value, String name, String literal)

Is there a possiblity to add custom attributes to it? For example I want a constructor like the following:
private MyEnum(int value, String name, String description, String clazzName)


Any Ideas?

Thanks in advance.
Re: Custom Attributes to Enum [message #1613740 is a reply to message #1613302] Thu, 12 February 2015 21:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Nothing will generate that for you, but you can modify generated code...

On 12.02.2015 16:09, jps90 Mising name wrote:
> Hello,
> usually an Enum in EMF has a constructor like that:
> private MyEnum(int value, String name, String literal)
> Is there a possiblity to add custom attributes to it? For example I want
> a constructor like the following:
> private MyEnum(int value, String name, String description, String
> clazzName)
>
> Any Ideas?
>
> Thanks in advance.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Strange behaviour of eGet-function
Next Topic:[CDO] Need help resolving query latency
Goto Forum:
  


Current Time: Thu Apr 25 01:07:23 GMT 2024

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

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

Back to the top