Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to edit a label mapped by ExpressionLabelMapping?
How to edit a label mapped by ExpressionLabelMapping? [message #1036083] Sun, 07 April 2013 19:39 Go to next message
Eclipse UserFriend
Hi,

I would like to use Expression Label Mapping as it gives me the flexibility needed to constuct my label from two fields using OCL. However, when editing I only need to set one of the fields. Actually, I don't understand how editing with the Expression Label Mapping should work at all. There is no documentation and no explanation of what are the edit expression, edit constraint etc. Could you please give some information on it?

Cheers,
Vitaly
Re: How to edit a label mapped by ExpressionLabelMapping? [message #1036093 is a reply to message #1036083] Sun, 07 April 2013 19:58 Go to previous message
Eclipse UserFriend
Ok, I have found a little hint in the release notes http://wiki.eclipse.org/GMF_2.3_New_and_Noteworthy#2.3_M6.
For those who are interested: apparently, the edit expression just defines the static text visible when you press F2 to edit a label. The editing mechanism is not defined through the mapping, but by customising the generated updateValues() method in the corresponding XXXExpressionLabelParser class.

It's a bit shame that information on the new features of GMF is either missing or scattered all over the Internet, instead of being part of the API documentation:(

Cheers,
Vitaly

[Updated on: Sun, 07 April 2013 20:00] by Moderator

Previous Topic:Scrolling diagram nodes into view
Next Topic:Empty runtime Outline
Goto Forum:
  


Current Time: Fri Jul 25 05:54:44 EDT 2025

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

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

Back to the top