Connection with Labels [message #86606] |
Mon, 07 July 2003 12:39 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03317 seconds