FAQ   Search   Memberlist   Usergroups   Statistics   Register 
 Profile   Log in to check your private messages   Log in 

How do you set a default attribute value?

 
       forum-omondo.com Forum Index -> EMF Discussion
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: 200

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
Display posts from previous:   
       forum-omondo.com Forum Index -> EMF Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group