Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label mapping for attribute defined in EReference
Label mapping for attribute defined in EReference [message #77510] Tue, 14 November 2006 11:18 Go to next message
Eclipse UserFriend
Originally posted by: ssinha4.covansys.com

Hello,

I am trying to do label mapping for the Node A. The Node A references R1
which has attribute called 'name'. I found that Realease 1.0.1 does not
allow such scenario. It excpects 'name' to be attribute of either Node A
or its meta class.
Is there any way to achieve this scenario? Is it fixed 2.0M2. It looks
like bug has already been filed for this problem
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138179

Regards
Sanjeev Sinha
Re: Label mapping for attribute defined in EReference [message #77643 is a reply to message #77510] Tue, 14 November 2006 15:10 Go to previous message
Eclipse UserFriend
Hello Sanjeev,

The workaround is to define transient derived volatile attribute in Node
A and put corresponding logic (navigation to R1 and getting the attribute
from there) into this method.

Another way is to modify generated code, but it's a bit tricky.

-----------------
Alex Shatalin
Previous Topic:Multiple diagrams
Next Topic:Latest Downloads of GMF
Goto Forum:
  


Current Time: Fri Jul 25 14:05:58 EDT 2025

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

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

Back to the top