Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label Maping for a class
Label Maping for a class [message #530425] Thu, 29 April 2010 15:44 Go to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi,

is it possible to define Label Mapping in GMF (for Link Mapping) for non-simple type (string), e.g., for some class?

--
thx, Milan
Re: Label Maping for a class [message #533331 is a reply to message #530425] Thu, 13 May 2010 12:26 Go to previous messageGo to next message
Patrick is currently offline PatrickFriend
Messages: 6
Registered: July 2009
Junior Member
hi

I would like to push this old story as I have a similar 'problem'. Is it possible to use a referenced object (non-primitive, custom object) as label (or rather one of its attributes)?

e.g.,
Class NodeGtw references to one Node object which can be used by other NodeGtws as well. Node has one value and that's the name. I would like to show the name above the NodeGtw as the NodeGtw is a placeholder of a Node, adding some additional attributes/references.

I have experimented with GMF, but it did not work.

any hints? or is is just not possible?
thx for your help!

kr,
Patrick
Re: Label Maping for a class [message #533580 is a reply to message #533331] Fri, 14 May 2010 15:45 Go to previous messageGo to next message
mestouni is currently offline mestouniFriend
Messages: 12
Registered: March 2010
Junior Member
I have exactly the same problem,
any help please?
Re: Label Maping for a class [message #535023 is a reply to message #530425] Fri, 21 May 2010 06:23 Go to previous messageGo to next message
Robert Wloch is currently offline Robert WlochFriend
Messages: 109
Registered: July 2009
Senior Member
Hi,

sorry that I didn't get to answer earlier. I wrote an example about this feature and blogged about it last night: GMF: Labels With Values Of Referenced Model Elements. Hopefully this is helping you.

Rgrds
Robert
Re: Label Maping for a class [message #535325 is a reply to message #535023] Sat, 22 May 2010 10:26 Go to previous message
Patrick is currently offline PatrickFriend
Messages: 6
Registered: July 2009
Junior Member
Thank you Robert!

I will try this out in the next few days. Thank you very much for your help and all the details specified.

br,
Patrick
Previous Topic:Diagram partitioning (double click) and intializing the sub-diagram
Next Topic:palette extension
Goto Forum:
  


Current Time: Wed Dec 04 21:50:59 GMT 2024

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

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

Back to the top