Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Label for Connection
Label for Connection [message #200827] Thu, 27 October 2005 19:26 Go to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I was wondering what the proper way is to add a user-moveable label to a
connection.
Can I just return the label as a model child of the connection? And does it
make sense to use a ConnectionEndPointLocator to provide a default location
for the label?
Re: Label for Connection [message #200835 is a reply to message #200827] Thu, 27 October 2005 20:12 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
please check the QVT diagrammer code, ConnTextMovePolicy.java at http://qvtp.org/downloads/qvtp-eclipse/
You will have to download the sources there.
Re: Label for Connection [message #201007 is a reply to message #200835] Fri, 28 October 2005 16:36 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Thanks, that is helpful.

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:1872862.1130443985455.JavaMail.root@cp1.javalobby.org...
> please check the QVT diagrammer code, ConnTextMovePolicy.java at
> http://qvtp.org/downloads/qvtp-eclipse/
> You will have to download the sources there.
Re: Label for Connection [message #201371 is a reply to message #200835] Mon, 31 October 2005 20:29 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
This looks nearly like my code, and I have changed my code slightly to make
it the same.
But still my connection label does not get drawn. I put breakpoints into
Label.paintFigure(Graphics) and ConnectionEndpointLocator.relocate(IFigure),
but they are not reached. How come those methods are not executed?

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:1872862.1130443985455.JavaMail.root@cp1.javalobby.org...
> please check the QVT diagrammer code, ConnTextMovePolicy.java at
> http://qvtp.org/downloads/qvtp-eclipse/
> You will have to download the sources there.
Re: Label for Connection [message #201407 is a reply to message #201371] Mon, 31 October 2005 21:44 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
Hope your Connection-Editpart is returning the model-children as those Connection-Child model objects (for which Label is the created figure).

Thanks
Venkat
Re: Label for Connection [message #201414 is a reply to message #201407] Mon, 31 October 2005 22:09 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Oh yes, it does that. Also createFigure() and refreshVisuals() are called on
the EditParts for the labels, but it never gets to paintFigure() on the
Label (which is the relevant Figure).

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:23585437.1130795121774.JavaMail.root@cp1.javalobby.org...
> Hope your Connection-Editpart is returning the model-children as those
> Connection-Child model objects (for which Label is the created figure).
>
> Thanks
> Venkat
Previous Topic:Advice on a tab implementation in GEF/draw2d
Next Topic:there isn't focus board on my figures, what can I do?
Goto Forum:
  


Current Time: Fri Dec 13 22:57:54 GMT 2024

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

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

Back to the top