Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to use EReferences as label?
How to use EReferences as label? [message #512006] Wed, 03 February 2010 11:24 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

i want to use attributes of a referenced class as part of my label, like
it is done in UML with operations where the signature is concated like
the following:

opName() : returnType

The return type is a reference of the operation element, where
op.type.name is selected. I tried to find such capabilities in GMF, but
with no success.

Can anyone give me a hint how to achieve such label constructions?

Thanks a lot
Timothy
Re: How to use EReferences as label? [message #512442 is a reply to message #512006] Fri, 05 February 2010 02:44 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Timothy,

How about using a derived attribute?

Cheers,
Dimitris

Timothy Marc wrote:
> Hi all,
>
> i want to use attributes of a referenced class as part of my label, like
> it is done in UML with operations where the signature is concated like
> the following:
>
> opName() : returnType
>
> The return type is a reference of the operation element, where
> op.type.name is selected. I tried to find such capabilities in GMF, but
> with no success.
>
> Can anyone give me a hint how to achieve such label constructions?
>
> Thanks a lot
> Timothy


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: How to use EReferences as label? [message #512482 is a reply to message #512442] Fri, 05 February 2010 09:31 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi Dimitris,

Yes, but that would allways polute my domain model with derived
attributes i really didn't need. I can't imagine that it is note
possible to use navigation expressions like op.type.name in a GMF model
as label.

Thanks Timothy


Dimitris Kolovos schrieb:
> Hi Timothy,
>
> How about using a derived attribute?
>
> Cheers,
> Dimitris
>
> Timothy Marc wrote:
>> Hi all,
>>
>> i want to use attributes of a referenced class as part of my label, like
>> it is done in UML with operations where the signature is concated like
>> the following:
>>
>> opName() : returnType
>>
>> The return type is a reference of the operation element, where
>> op.type.name is selected. I tried to find such capabilities in GMF, but
>> with no success.
>>
>> Can anyone give me a hint how to achieve such label constructions?
>>
>> Thanks a lot
>> Timothy
>
>
Re: How to use EReferences as label? [message #512659 is a reply to message #512482] Fri, 05 February 2010 15:52 Go to previous message
Christoph Wienands is currently offline Christoph WienandsFriend
Messages: 55
Registered: July 2009
Member
Hello Timothy,

> Yes, but that would allways polute my domain model with derived attributes
> i really didn't need. I can't imagine that it is note possible to use
> navigation expressions like op.type.name in a GMF model as label.

This article might help:
http://www.jevon.org/wiki/Adding_a_Custom_Label_in_GMF?sid=4 01da3ebdcbac4e1ae64517668cb7d71

Christoph
Previous Topic:paletteProviders not used?
Next Topic:Handle notifications on initialized feature
Goto Forum:
  


Current Time: Tue Mar 19 04:18:43 GMT 2024

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

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

Back to the top