Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Changing a connection's source decoration dynamically
Changing a connection's source decoration dynamically [message #219520] Fri, 20 February 2009 08:30 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Model object created in wrong resource when using shortcuts
Next Topic:Event listener of GMF plug-in
Goto Forum:
  


Current Time: Mon Jul 07 12:44:42 EDT 2025

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

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

Back to the top