Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to run expression of expression label mapping by code
How to run expression of expression label mapping by code [message #647295] Wed, 05 January 2011 15:33
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

i have a ocl expressen which is looking this:

Quote:

if (self.reference.attributeA) then
'A'
else
'B'
endif



The label is not updated when attributeA of the reference changes. So I added code into the handleNotificationEvent() of reference's EditPart. This code I try to update the label which contains the expression by code. But I cannot find a way to re-run the expression. repaint(), revalidate(), etc. on the EditPart and it's Figures to not show any effect. How can I run that expression by code?

Thanks,

Ralph
Previous Topic:Expression Label Mapping
Next Topic:Create a fugure automatically
Goto Forum:
  


Current Time: Fri Apr 26 03:26:40 GMT 2024

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

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

Back to the top