Skip to main content



      Home
Home » Eclipse Projects » GEF » Connection with Labels
Connection with Labels [message #86606] Mon, 07 July 2003 12:39
Eclipse UserFriend
Originally posted by: grandan.tiscali.it

I want to create a connection with two labels near the two connection
anchors.
How can I realize this?
I tried to create the labels near the figures connected by my connection,
where the anchors are located.
Now, I can take the source figure in the MyConnectionEditPart with the
code:

MyFigure sourceFigure = (MyFigure)getSourceConnectionAnchor().getOwner();

So, I tried to do the same thing with the target figure:

MyFigure targetFigure = (MyFigure)getTargetConnectionAnchor().getOwner();

but it doesn't work. Why?

Thank you in advance.

Daniele
Previous Topic:How do I trigger createActions to be called in the Editor class?
Next Topic:GEF, draw2d, and SWT widgets
Goto Forum:
  


Current Time: Thu Sep 18 17:30:17 EDT 2025

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

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

Back to the top