Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add a label to an edge during a refresh?
Add a label to an edge during a refresh? [message #665605] Fri, 15 April 2011 09:00 Go to next message
Xavier Seignard is currently offline Xavier Seignard
Messages: 52
Registered: June 2010
Member
Hello,
I would like to dynamically add a label on my edge during the refresh of the given edit part.

I have no clue on how to do it, any idea?

Regards,

Xavier
Re: Add a label to an edge during a refresh? [message #666192 is a reply to message #665605] Tue, 19 April 2011 12:38 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

define the label in the gmfgraph set it to invisible (use ViewProvider) and the set it to visible at refresh (e.g. in handleNotification or overriden refresh method).

Ralph
Re: Add a label to an edge during a refresh? [message #666205 is a reply to message #665605] Tue, 19 April 2011 13:22 Go to previous message
Xavier Seignard is currently offline Xavier Seignard
Messages: 52
Registered: June 2010
Member
Thanks,
Actually I would like to do it programmatically.

Regards,

Xavier
Previous Topic:centered labels in ellipse figure
Next Topic:[SOLVED]Connection Anchor
Goto Forum:
  


Current Time: Thu Oct 23 15:15:01 GMT 2014

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

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