Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Setting a property that should not change afterwards
Setting a property that should not change afterwards [message #76920] Sat, 11 November 2006 21:43 Go to next message
Eclipse UserFriend
Hi folks,

I have an EClass Link in my meta-model with an attribute "kind" which EType
is an enumerated with 2 posible values: internalLink and externalLink. I
have set the value of the attribute in the different Links using a Feature
Seq Initializer in the .gmfmap and it works perfectly but... How can I avoid
that value to be changed at runtime? If I set the "changeable" atributte to
false, then the initialization doesn't work (the property is always set to
the default value, doesn't matter what I write in the Feature Seq
Initializer).

Any help will be very wellcomed ;-).

Cheers and thanks in advance!

Cristina
Re: Setting a property that should not change afterwards [message #77831 is a reply to message #76920] Wed, 15 November 2006 09:37 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

And what happens if "changeable" is true? Maybe you should just not
expose this property in property sheet?

Cristina wrote:
> Hi folks,
>
> I have an EClass Link in my meta-model with an attribute "kind" which EType
> is an enumerated with 2 posible values: internalLink and externalLink. I
> have set the value of the attribute in the different Links using a Feature
> Seq Initializer in the .gmfmap and it works perfectly but... How can I avoid
> that value to be changed at runtime? If I set the "changeable" atributte to
> false, then the initialization doesn't work (the property is always set to
> the default value, doesn't matter what I write in the Feature Seq
> Initializer).
>
> Any help will be very wellcomed ;-).
>
> Cheers and thanks in advance!
>
> Cristina
>
>
Previous Topic:enforce fixed node size on node creation
Next Topic:Relaxed dependency on GDI+ ?
Goto Forum:
  


Current Time: Tue May 06 11:53:47 EDT 2025

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

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

Back to the top