Book a Demo

Author Topic: C# enumeration source generation  (Read 3084 times)

zaknixon

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
C# enumeration source generation
« on: April 12, 2008, 12:33:09 am »
Does EA support the generation of C# enumeration values ? If so, can someone point me to describe how to set the enum values appropriately to allow this to happen? I currently have enum "classes" with enum stereotyped values, but when generated no values are shown.

Thanks,

Zak :-?

zaknixon

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: C# enumeration source generation
« Reply #1 on: April 12, 2008, 02:29:07 pm »
I am supposing that EA does not have this capability. Would be nice to know before I buy the product.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: C# enumeration source generation
« Reply #2 on: April 14, 2008, 08:46:27 am »
Drag an enumeration from the toolbox. (This is a class with the stereotype «enumeration»).
Open the attributes dialog.
Give a name and optional default value for you list of values.
Generate.

zaknixon

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: C# enumeration source generation
« Reply #3 on: April 14, 2008, 12:21:53 pm »
Thank you very much. It seems like if I generated the code, by default, it generated Java source, which would not update the enumeration values. Once I cleared out the original source directory and regenerated, everything was good.