View previous topic :: View next topic |
Author |
Message |
eisakson
Joined: 23 Jan 2005
Posts: 1
Location: Raleigh, NC
|
Posted: Sun Jan 23, 2005 4:39 pm Post subject: How do you set a default attribute value?
|
|
|
I added an EInt attribute to one of my classes and I want to set a default value of 10.
In annotated interfaces, I add default="10" to my @model tag
I tried adding the value to the generated interface code and turning off its generation with @generated NOT...that didn't work.
I can go edit the Impl file where the default is declared and change the @generated to @generated NOT.. this works.
It seems like this is something I should be able to do in the diagram editor. Did I just miss how this is done or is it not there?
|
|
Back to top |
|
|
julien
Site Admin
Joined: 16 Mar 2003
Posts: 201
|
Posted: Sun Jan 23, 2005 5:19 pm Post subject: Re: How do you set a default attribute value?
|
|
|
You have asked a pure question about EMF. I'd better post it in EMF new groups.
I think you need just remove @generated.
regards
julien
|
|
Back to top |
|
|
|