Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » value of EAttribute not updated on the canvas
value of EAttribute not updated on the canvas [message #197518] Thu, 17 July 2008 06:51 Go to next message
Eclipse UserFriend
Originally posted by: quya01.yahoo.com

Hi all

I have an EAttribute named label which labeled a link between two objects.
This label is a derived attribute when user select appropriate value a
combo box. The label on the canvas is updated only after I save the
project. I want the label to be updated before save the project ie. once a
value from combo box is selected. How do I do this?

appreciate your help.
Re: value of EAttribute not updated on the canvas [message #197597 is a reply to message #197518] Thu, 17 July 2008 09:35 Go to previous messageGo to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
I think your problem is that the diagram is not refreshing after the
change is made! ...There is away to refresh the diagram after a change is
made however it is rather complicated to explain, i suggest you look it up
online! If you struggle finding it, i'll see if I can find it again,
however i'm rather busy ...jst thought i'd point you in the right
direction!
Hope this helps!
Re: value of EAttribute not updated on the canvas [message #197642 is a reply to message #197518] Thu, 17 July 2008 09:53 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello mar,

> objects. This label is a derived attribute when user select
> appropriate value a combo box. The label on the canvas is updated only
If you are using derived attribute as a label thant you have to fire appropriate
EMF notification then attribute value was changed (another attribute modified
using combobox). So, it's up to the derived attribute implementation - this
implementation have to listen for corresponding notifications from original
properties and fire "changed" notification then necessary.

-----------------
Alex Shatalin
Previous Topic:Changing connection handle icons
Next Topic:Accessing model classes/objects from their Graphical Elements
Goto Forum:
  


Current Time: Tue Apr 16 15:02:16 GMT 2024

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

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

Back to the top