Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » constraint based mapping
constraint based mapping [message #93683] Wed, 17 January 2007 12:40 Go to next message
Eclipse UserFriend
Originally posted by: pramsohl.in.tum.de

Hello

I want to change the appearance of a graphical element based on a
boolean attribute of the DomainModel (selected{true,false})
Changing the Backgroundcolor would be enough.

http://wiki.eclipse.org/index.php/GMF_Archived_Newsgroup_Q&a mp;A#How_can_I_change_the_appearance_of_an_element_based_on_ its_domain_element.27s_attributes.3F

I red this wiki-entry and wondered how such a Constraint to select
between mappings would look like...
If that doesn't work maybe someone could give me a hint to find some
other solution.

thanks
Thomas
Re: constraint based mapping [message #94028 is a reply to message #93683] Thu, 18 January 2007 06:54 Go to previous message
Eclipse UserFriend
Hello Thomas,

> Hello
>
> I want to change the appearance of a graphical element based on a
> boolean attribute of the DomainModel (selected{true,false}) Changing
> the Backgroundcolor would be enough.

> I red this wiki-entry and wondered how such a Constraint to select
> between mappings would look like...
It should be: "self.selected" and "not self.selected" :-) But. currently
your diagram will not be updated on changing this attribute in the domain
model. So, I suggest you to stick to the second solution proposed in this
wiki page.

-----------------
Alex Shatalin
Previous Topic:GMF Bug?
Next Topic:initialize model file in wizard without transaction
Goto Forum:
  


Current Time: Sun May 04 00:12:57 EDT 2025

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

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

Back to the top