Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to set boolean attribute value
How to set boolean attribute value [message #148472] Thu, 30 August 2007 04:44 Go to next message
Eclipse UserFriend
Originally posted by: elena.renzi.gmail.com

Hi,
I should set a boolean attribute to true, its default value is false. I
tried to use "Feature Seq Initializer" under "Node Mapping" for node
representing the object with his attribut set to true, then I add "Feature
Value Spec" but I don't know how to specify this property in the body...I
thought I should use java as language, but which expression should I use?

Thanks in advance!

Elena
Re: How to set boolean attribute value [message #148487 is a reply to message #148472] Thu, 30 August 2007 04:59 Go to previous messageGo to next message
Eclipse UserFriend
Do you want to set it to true as initial value? Then you can set the Default
Value Literal to true in the property view of the attribute for it.

Greetings,
Alexander

"Elena" <elena.renzi@gmail.com> schrieb im Newsbeitrag
news:c74eb2791b3a7504eedb007eeebd34b1$1@www.eclipse.org...
> Hi,
> I should set a boolean attribute to true, its default value is false. I
> tried to use "Feature Seq Initializer" under "Node Mapping" for node
> representing the object with his attribut set to true, then I add "Feature
> Value Spec" but I don't know how to specify this property in the body...I
> thought I should use java as language, but which expression should I use?
>
> Thanks in advance!
>
> Elena
>
>
>
Re: How to set boolean attribute value [message #148495 is a reply to message #148487] Thu, 30 August 2007 05:33 Go to previous message
Eclipse UserFriend
Originally posted by: elena.renzi.gmail.com

No, I don't want to set true as his initial value. I have an Eclass in my
Ecore model with an EAttribute, which initial value is false. Now I want
to map this EClass in two different Node, the first one, with the
attribute set to its default value(false), the second with the attribute
set to true...
Thanks for your help!
Previous Topic:sketch and tooling
Next Topic:Adding EStructuralfeature
Goto Forum:
  


Current Time: Tue May 13 10:01:33 EDT 2025

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

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

Back to the top