Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:30 Go to next message
No real name is currently offline No real nameFriend
Messages: 62
Registered: July 2009
Member
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 14:55 Go to previous message
No real name is currently offline No real nameFriend
Messages: 62
Registered: July 2009
Member
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: Sat Apr 27 04:15:46 GMT 2024

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

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

Back to the top