Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » OCL Expression Labels not automatically updating
OCL Expression Labels not automatically updating [message #651997] Wed, 02 February 2011 11:42 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi all,

I have two nodes (A and B). In A I have a expression label that displays a value of B. Something like self.ReferenceToB.name . This works when setting the reference in A, opening the diagram etc. But if I change the value in B, the label in A does not get updated. I need to close/open the diagram or move node a to get the label update. How can I force A to update on changes of B?

Ralph
Re: OCL Expression Labels not automatically updating [message #652004 is a reply to message #651997] Wed, 02 February 2011 12:09 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Ralph,

put the following code in the handleNotificationEvent of B:

Request refreshRequest = new Request(RequestConstants.REQ_REFRESH);
aEditPart.performRequest(refreshRequest);

Ralph
Previous Topic:Model Validation
Next Topic:How to layout a diagram at initialisation?
Goto Forum:
  


Current Time: Thu Apr 25 22:59:50 GMT 2024

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

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

Back to the top