Skip to main content



      Home
Home » Eclipse Projects » GEF » refresh the label's content on connection
refresh the label's content on connection [message #118784] Sat, 21 February 2004 07:56 Go to next message
Eclipse UserFriend
Originally posted by: liziwen.yahoo.com

Hi
I want to add the label to my connection with
ConnectionEndpointLocator.But I can not refresh the label's content when I
edit its value. I have tried the refreshChildren and
refreshSourceConnections method?
How can I do it?
Another I want to place two connection on an anchor.In logic examples I
cannot find these details.Can someone give me some suggestions
Thanks
Daniel
Re: refresh the label's content on connection [message #118901 is a reply to message #118784] Mon, 23 February 2004 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"daniel" <liziwen@yahoo.com> wrote in message
news:c17ki4$ge3$1@eclipse.org...
> Hi
> I want to add the label to my connection with
> ConnectionEndpointLocator.But I can not refresh the label's content when I
> edit its value. I have tried the refreshChildren and
> refreshSourceConnections method?
> How can I do it?


Where is the code which initially set the label's text? Now call that code
when the label changes.


> Another I want to place two connection on an anchor.In logic examples I
> cannot find these details.Can someone give me some suggestions

Are you talking about the model, or the draw2d connection anchor? If you
want to share the anchor in your model, that's your model's problem. If you
want to share the connection anchor in draw2d, this should work, but you
could also use separate instances if you wanted.

> Thanks
> Daniel
>
Re: refresh the label's content on connection [message #119108 is a reply to message #118784] Mon, 23 February 2004 14:27 Go to previous message
Eclipse UserFriend
Originally posted by: brianv.phreaker.net

Hi Daniel,

Similar questions have been asked quite a few times before - search through
the previous posts.

I recently answered a similar question - 20th Feb 2004 "Two input
connectoins on one connectionanchor". Have a look. May help you a bit.

All the best,
Brian.
Previous Topic:Enabling Undo of GEF commands from a view
Next Topic:Drawing straight edges
Goto Forum:
  


Current Time: Thu Jul 17 13:36:32 EDT 2025

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

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

Back to the top