Changing a connection's source decoration dynamically [message #219520] |
Fri, 20 February 2009 08:30  |
Eclipse User |
|
|
|
Hi,
I would like to change a connection's source decoration depending on an
attribute of the transition which that connection represents. There is
an article in the GMF Wiki that explains how to do that with nodes.
(http://wiki.eclipse.org/GMF_Tips - the section 'Making figures
sensitive to attributes of semantic elements')
However, I do not know how to get access to the transition's attributes.
In the example it is done with getElement(), but connections do not have
such a method.
Do you know another way to accomplish this?
Thanks in advance,
Matthias
|
|
|
Re: [Solved] Changing a connection's source decoration dynamically [message #219568 is a reply to message #219520] |
Fri, 20 February 2009 09:55  |
Eclipse User |
|
|
|
Oh, I figured it out. I just mixed up Connections and Edges.
My bad.
Matthias Schmeling wrote:
> Hi,
>
> I would like to change a connection's source decoration depending on an
> attribute of the transition which that connection represents. There is
> an article in the GMF Wiki that explains how to do that with nodes.
>
> (http://wiki.eclipse.org/GMF_Tips - the section 'Making figures
> sensitive to attributes of semantic elements')
>
> However, I do not know how to get access to the transition's attributes.
> In the example it is done with getElement(), but connections do not have
> such a method.
>
> Do you know another way to accomplish this?
>
> Thanks in advance,
> Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.03061 seconds